From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emmanuel Charpentier Subject: Re: Possible bug in org-mode (MELPA version as of 1018-11-25) : #+language: is not (fully) honored. Date: Tue, 27 Nov 2018 16:29:25 +0100 Message-ID: References: <7ecc5c8e82316b99d6a55b77a29f1a8d1e77ca5b.camel@gmail.com> <87sgzmk3fn.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000008913c057ba71e90" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRfIz-0001Il-6B for emacs-orgmode@gnu.org; Tue, 27 Nov 2018 10:29:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRfIx-0006c5-Jc for emacs-orgmode@gnu.org; Tue, 27 Nov 2018 10:29:41 -0500 Received: from mail-ot1-x342.google.com ([2607:f8b0:4864:20::342]:33168) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gRfIx-0006av-AG for emacs-orgmode@gnu.org; Tue, 27 Nov 2018 10:29:39 -0500 Received: by mail-ot1-x342.google.com with SMTP id i20so20496954otl.0 for ; Tue, 27 Nov 2018 07:29:38 -0800 (PST) In-Reply-To: <87sgzmk3fn.fsf@gmail.com> 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: emacs-orgmode@gnu.org --00000000000008913c057ba71e90 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable My original posting included the tex file generated by C-c C-e l l. Perusing it will show you that babel is not used anywhere in this export. On the (remote) chance that my problem might be caused by my use of emacs 25.2, I just installe emacs 26 from the emacs-snapshot packages for Debian testing, ang got exactlu the same prolem. The org-relevant part of my .emacs is as follows : (require 'org) (require 'org-ref) Then, later ;; Septembre 2018 : org-mode ;; touches globales : =C3=80 revoir ? (global-set-key "\C-cl" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cc" 'org-capture) (global-set-key "\C-cb" 'org-switchb) ;; Chemin de la biblioth=C3=A8que ditaa (setq org-ditaa-jar-path "/usr/share/ditaa/ditaa.jar") ;; Autoriser les =C3=A9valuations Babel (setq org-confirm-babel-evaluate nil) ;; Langages connus (org-babel-do-load-languages 'org-babel-load-languages '((ditaa . t) (emacs-lisp . t) (R . t) (python . t) (sagemath . t) (julia . t) (gnuplot . t) (maxima . t) (stan . t) (mathematica . t) (sqlite . t) ;; (sh . t) )) Like it or not, believe it or not, this setup is sufficient to create the problem I reported. HTH, -- Emmanuel Charpentier Le mar. 27 nov. 2018 =C3=A0 15:20, Eric S Fraga a =C3= =A9crit : > On Sunday, 25 Nov 2018 at 21:36, emanuel.charpentier@gmail.com wrote: > > I forgot to add that, when exporting to plain tex or ODT, #+language* > > *seems* to be honored : the table of contents is entitled "Table des > > mati=C3=A8res". > > > > The problem is therefore probably in ox-latex.el (but way above my > > level of competance in em... > > But it works just fine for me. Have you actually had a look at the > LaTeX that is created? I wonder whether you might have a setting for > the LaTeX export that includes other settings than just the default or > which doesn't allow the language setting to be included? > > -- > Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1034-gafcb1d > --00000000000008913c057ba71e90 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
My original posting incl= uded the tex file generated by C-c C-e l l. Perusing it will show you that = babel is not used anywhere in this export.

On the (remot= e) chance that my problem might be caused by my use of emacs 25.2, I just i= nstalle emacs 26 from the emacs-snapshot packages for Debian testing, ang g= ot exactlu the same prolem.

The org-relevant part = of my .emacs is as follows :

(require 'org)
(require 'org-ref)

Then, later

;; Septembre 2018 : org-mode

;; t= ouches globales : =C3=80 revoir ?
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca&qu= ot; 'org-agenda)
(= global-set-key "\C-cc" 'org-capture)
(global-set-key "\C-cb" 'org-swi= tchb)
;; Chemin de la = biblioth=C3=A8que ditaa
;; Autoriser les =C3=A9valuati= ons Babel
(setq org-co= nfirm-babel-evaluate nil)
;; Langages connus
(org-babel-do-load-languages
=C2=A0'org-babel-load-languages
=C2=A0'((ditaa . t)
=C2=A0 =C2=A0(emacs-lisp . t)
=C2=A0 =C2=A0(R . t)
=C2=A0 =C2=A0(python . t)
=C2=A0 =C2=A0(sagemath . t)
=C2=A0 =C2=A0(julia . t)<= /div>
=C2=A0 =C2=A0(gnuplot . t)
=C2=A0 =C2=A0(maxima . t= )
=C2=A0 =C2=A0(stan .= t)
=C2=A0 =C2=A0(math= ematica . t)
=C2=A0 = =C2=A0(sqlite . t)
=C2= =A0 =C2=A0;; (sh . t)
= =C2=A0 =C2=A0))

Like it or not, belie= ve it or not, this setup is sufficient to create the problem I reported.

HTH,

--
Emmanuel = Charpentier


Le=C2=A0mar. 27 nov. 2018 =C3=A0=C2=A015:20, Eric S = Fraga <esflists@gmail.com> = a =C3=A9crit=C2=A0:
On Sunday, 25 N= ov 2018 at 21:36, emanuel.charpentier@gmail.com wrote:
> I forgot to add that, when exporting to plain tex or ODT, #+language*<= br> > *seems* to be honored : the table of contents is entitled "Table = des
> mati=C3=A8res".
>
> The problem is therefore probably in ox-latex.el (but way above my
> level of competance in em...

But it works just fine for me.=C2=A0 Have you actually had a look at the LaTeX that is created?=C2=A0 I wonder whether you might have a setting for<= br> the LaTeX export that includes other settings than just the default or
which doesn't allow the language setting to be included?

--
Eric S Fraga via Emacs 27.0.50, Org release_9.1.14-1034-gafcb1d
--00000000000008913c057ba71e90--