From mboxrd@z Thu Jan 1 00:00:00 1970 From: emanuel.charpentier@gmail.com Subject: Re: Possible bug in org-mode (MELPA version as of 1018-11-25) : #+language: is not (fully) honored. Date: Thu, 29 Nov 2018 08:21:06 +0100 Message-ID: References: <7ecc5c8e82316b99d6a55b77a29f1a8d1e77ca5b.camel@gmail.com> <87sgzmk3fn.fsf@gmail.com> <87pnuqtggf.fsf@nicolasgoaziou.fr> <070afa36c50daaec4016356bbb36d2167f358616.camel@gmail.com> <87pnuqrsw4.fsf@nicolasgoaziou.fr> <875zwhs3dr.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSGjZ-0003m8-OK for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 02:27:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSGdK-00038F-TE for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 02:21:15 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]:40343) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gSGdK-00036S-F0 for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 02:21:10 -0500 Received: by mail-wr1-x435.google.com with SMTP id p4so739462wrt.7 for ; Wed, 28 Nov 2018 23:21:09 -0800 (PST) In-Reply-To: <875zwhs3dr.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org TL;DR : your fix works, but I disagree with the absence od documentation and default. See below : Le mercredi 28 novembre 2018 à 15:06 +0100, Nicolas Goaziou a écrit : > Hello, > > Emmanuel Charpentier writes: > > > Close, but no cigar : > > > > I used the `customize' interface to add it to `org-latex-default- > > packages-alist' (because the package to load is compiler- > > dependent), > > This has nothing to do with compiler. You can add it to `org-latex- > packages-alist'. AFAICT, polyglossia is to be preferred to babel for use with xelatex or lualatex. I'll see if this can be accomodated. > [ Snip... ] I'll do that. > See `org-latex-classes' docstring: > it should be ("AUTO" "babel" t). OK. That's much clearer. And does what is intended, BTW. Shouldn't that be default ?(No, I don't (yet) know *how* to do that..). > > * If this setup is necessary to get #+langiage: honored fot LaTeX > > export, this should be done by default (i. e. in org's source > > code). > > AFAIR, there is no clean way to handle that, so we let users decide > what > they want. Thus introducing a serious problem : exporting to text or ODT works as described, whereas export to latex needs (undocumented) supplementary steps. At the very minimum, this need for further config should be mentioned in the docs ; preferably, a default should be proposed. > > > * One might wish to allow to fully use babel's (and > > polyglossia's) > > abilities by specifying a set of possible #+language:s (first > > call) or switch to another language (further calls down the > > file...). > > See `org-latex-classes' docstring. Thanks for the tip ! Now, I begin to understand... > > > * concerning french: I understand that "frenchb" is obsolete and > > that one should use "french" instead (better compatibility with > > ispell and flyspell-babel, among others)... > > I didn't know that. I'll fix it in master. > > > * I suggest a '(#1# "fontspec" t '(xelatex lualatex)), and > > possibly > > an '(#1# "mathspec" t '(xetex luatex)) or '(#1# "unicode-math" > > t > > '(xetex luatex)) > > entry(ies) to be added to the default : xetex is more and more > > used, and luatex is officially the successor to pdftex... > > I use neither xetex or luatex so I cannot comment of this. I'll try to whip up a proposal. Sincerely, -- Emmanuel Charpentier > However note that default packages should be very limited. It is easy > enough to add more of them to standard packages. > > Regards, >