Max Nikulin writes: >> Subject: [PATCH] * lisp/ox-latex.el: New variable `org-latex-language-alist' > Writing the previous message I forgot that currently there is no > default option for the fontenc package (PdfLaTeX), e.g. T2A for > Cyrillic. As a result it is not enough to specify just language to > generate PDF file. From my point of view it is better to have single > map from language code to various localization options (babel, > polyglossia, fontenc). Unfortunately plain list > `org-latex-language-alist' does not allow further extensions. Property > list would make initialization not so concise, but it would make the > map more flexible.
Sorry, I hadn't seen your other message and I ignored it... What you say makes sense. If I'm not mistaken, there is now nothing like an hypothetical 'org-latex-guess-fontenc', and org defaults to the T1 option. If I remember correctly (because I haven't used pdfLaTeX in ages), the fontenc option for Greek is LGR. And I imagine there will be many more cases. If you or anyone wants to implement that on top of my patch, that's fine with me. I don't have much time to do it right now. However, my opinion is the following: I think we should focus our efforts on finding a satisfactory solution for luatex, according to everything that has been commented in the different sub-threads on the subject of fonts and fallback fonts. And leave the related to pdfLaTeX in second place, if in the end LuaTeX is going to be set as the default engine. In any case, I personally think that org-latex-language-alist, as it is now in this patch, is sufficient. Best regards, Juan Manuel