Hi again

As stated, this was only a PoC. If you find it useful, I would give it a go in the free window. I'm also playing with org-latex-default-packages-alist, refining it to use fontspec in lualatex and xetex and restricting inputenc and fontenc to pdflatex only.

Best, /PA

On 24/1/24 17:25, Ihor Radchenko wrote:
Pedro Andres Aranda Gutierrez <paag...@gmail.com> writes:

Attached is a _proof of concept_ for supporting AUTO in
\usepackage{fontenc}. Just an idea of how things could evolve.
This only uses a variable you can define as directory or file local to
control what is generated in the LaTeX file.
Could be expanded in the future to check #+language:
Thanks!

+(defcustom org-latex-fontenc "T1"
+  "The fontenc for the file. Customise to LGR,T1 when including
+Greek, etc."
+  :group 'org-export-latex
+  :type 'string
+  :safe #'stringp)
Is there a list of available values somewhere?
https://latexref.xyz/fontenc-package.html only lists OT1, OMS, OML, T1,
and TS1. However, many more are clearly available.


Reply via email to