emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] ox-latex: default packages cleaning


From: Rasmus
Subject: Re: [O] ox-latex: default packages cleaning
Date: Wed, 08 Jul 2015 18:06:30 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Hi,

Suvayu Ali <address@hidden> writes:

>> +(defun org-latex-guess-polyglossia-language (header info)
>> +  "Set the Polyglossia language according to the LANGUAGE keyword.
>
> I'm in two-minds about this.  On the one had it is a nice thing, but on
> the other hand, it prevents the more fine grained control offered by
> polyglossia.  For example, I used this in my setup before:
>
>   \setdefaultlanguage[variant=british]{english}

It's a shame that Polyglossia is so much different from babel....  For
babel we translate en-gb to "british" which is a valid babel language.
But your example shows that org-latex-babel-language-alist does not work
for polyglossia.  Which means that somebody has to come up with a mapping
from language codes (en-gb) to (language . variant) pairs (your example).

Also, some mechanism needs to be in place to convey random options like
spelling={new, old} for German...  Unless polyglossia options can be set
afterwards via latex_headers.

> I don't see an easy way of passing the optional argument.  But on the
> other hand
>
>   \setmainlanguage{english}
>
> is plain, simple, and works in most (almost all) cases.

The only limitation here is whether somebody wants to contribute
org-latex-polyglossia-language-alist (≡ go through the manual and map all
pairs).  Conveying language-specific options in Org is what I worry about.

Rasmus

-- 
ツ




reply via email to

[Prev in Thread] Current Thread [Next in Thread]