From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Possible bug in org-mode (MELPA version as of 1018-11-25) : #+language: is not (fully) honored. Date: Thu, 29 Nov 2018 20:12:50 +0100 Message-ID: <87h8fzr93h.fsf@nicolasgoaziou.fr> 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> <87tvk0q8op.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSRjH-0002LD-Js for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 14:12:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSRjB-00070p-9F for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 14:12:01 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:39267) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSRjB-00070S-0Z for emacs-orgmode@gnu.org; Thu, 29 Nov 2018 14:11:57 -0500 In-Reply-To: (Emmanuel Charpentier's message of "Thu, 29 Nov 2018 18:31:00 +0100") 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: Emmanuel Charpentier Cc: emacs-orgmode@gnu.org Emmanuel Charpentier writes: > This is *not* *documented* (not even in the `org-latex-packages-alist''s > docstring). I know. I fixed `org-latex-packages-alist''s docstring two days ago. > Also agreed, with the reservation that "invasive" didn't mean the same > thing in the 1980s (when the core size of computers was measured in > kilobytes) and in the 2010s (the current core measurement unit is the > /giga/byte...). Not invasive by its sheer size, but by the number of alterations it generates in the LaTeX default behaviour, and the incompatibilities it may introduce. For example there used to be issues between frenchb and KOMA-Script. > Again, I think that the end user should *not* have to worry with this only > when exporting to LaTeX (or beamer or PDF). Ideally, that would be nice. > If this can be handled silently when exporting to ODT, HTML or plain > text, it should be handled silently when exporting to LaTeX. I disagree. Packages should not be loaded /silently/. > I do not know how to handle this. My *hunch* is that the Latex Export > function generating the preamble should check for language It does already, in `org-latex-guess-babel-language'. > and if not default, add the relevant package(s) to the preamble. Don't. Anything that is in the header should be declared. We could try and see if Babel causes trouble by adding it to default packages in "next" branch. I'd rather do that than inserting it magically.