From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: EXPORT_LATEX_HEADER property Date: Thu, 3 Mar 2016 12:58:31 +0100 Message-ID: References: <87bn6vpzud.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0149d020cf52cd052d23b8a6 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abRuA-0003TS-4s for emacs-orgmode@gnu.org; Thu, 03 Mar 2016 06:58:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abRu8-00024Q-CE for emacs-orgmode@gnu.org; Thu, 03 Mar 2016 06:58:54 -0500 Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]:35705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abRu8-00023c-3B for emacs-orgmode@gnu.org; Thu, 03 Mar 2016 06:58:52 -0500 Received: by mail-ob0-x236.google.com with SMTP id xx9so17687309obc.2 for ; Thu, 03 Mar 2016 03:58:51 -0800 (PST) In-Reply-To: <87bn6vpzud.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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Fabrice Popineau , "emacs-orgmode@gnu.org" --089e0149d020cf52cd052d23b8a6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2016-03-03 12:26 GMT+01:00 Nicolas Goaziou : > Hello, > > Hi Nicolas, > Fabrice Popineau writes: > > > First, I can't find where is documented the difference between > > :EXPORT_LATEX_HEADER: > > and > > :EXPORT_LATEX_HEADER+: > > See (info "(org) Property syntax"). > > I need to learn to read better because I didn't see that this paragraph was about it: If you want to add to the value of an existing property, append a + to the property name. The following results in the property var having the value =E2=80=9Cfoo=3D1= bar=3D2=E2=80=9D. #+PROPERTY: var foo=3D1 #+PROPERTY: var+ bar=3D2 > Second, when I use several lines with > > :EXPORT_LATEX_HEADER+: > > they are concatenated into a single line. > > Correct. > > > This is annoying because: > > > > :PROPERTIES: > > :EXPORT_LATEX_HEADER+: \usepackage{mathptmx} % rm & math > > :EXPORT_LATEX_HEADER+: \usepackage[scaled=3D0.90]{helvet} % ss > > ... > > :END: > > > > results in > > > > \usepackage{mathptmx} % rm & math \usepackage[scaled=3D0.90]{helvet} %= ss > > > > which is obviously unintended. > > > > Could it be possible to add a '\n' between those lines? > > Not quite what you are asking for, but couldn't you simply not comment > each line? > > Yes, I can remove the comments, however, from time to time, it may be useful to be able to comment some \usepackage line, and I don't see how it can be done in Org, except by killing the whole line. In org reference, 12.7.2, it is said that: =E2=80=98LATEX_HEADER=E2=80=99 Arbitrary lines added to the preamble of the document, before the =E2=80=98= hyperref=E2=80=99 settings. The location can be controlled via org-latex-classes. Note the plural to lines. How can several lines be specified? AFAICS, if I do : :EXPORT_LATEX_HEADER: \usepackage{mathptmx} % rm & math :EXPORT_LATEX_HEADER: \usepackage[scaled=3D0.90]{helvet} % ss The second line will take precedence over the first one. Thanks for your help, Fabrice --089e0149d020cf52cd052d23b8a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2016-03-03 12:26 GMT+01:00 Nicolas Goaziou <mail@nicolasgoaziou.f= r>:
Hello,


Hi Nicolas,
=C2=A0
Fabrice Popineau <fabrice.= popineau@gmail.com> writes:

> First, I can't find where is documented the difference between
> :EXPORT_LATEX_HEADER:
> and
> :EXPORT_LATEX_HEADER+:

See (info "(org) Property syntax").


I need to lear= n to read better because I didn't see that this paragraph was about it:=

If you want to add to the value of an existing pr= operty, append a + to the property name.
The following results in= the property var having the value =E2=80=9Cfoo=3D1 bar=3D2=E2=80=9D.
=
#+PROPERTY: var foo=3D1
#+PROPERTY: var+ bar=3D2=C2=A0
=



> Second, when I use several lines with
> :EXPORT_LATEX_HEADER+:
> they=C2=A0 are concatenated into a single line.

Correct.

> This is annoying because:
>
> :PROPERTIES:
> :EXPORT_LATEX_HEADER+: \usepackage{mathptmx} % rm & math
> :EXPORT_LATEX_HEADER+: \usepackage[scaled=3D0.90]{helvet} % ss
> ...
> :END:
>
> results in
>
> \usepackage{mathptmx} % rm & math=C2=A0 \usepackage[scaled=3D0.90]= {helvet} % ss
>
> which is obviously unintended.
>
> Could it be possible to add a '\n' between those lines?

Not quite what you are asking for, but couldn't you simply not c= omment
each line?

Yes, I can remove the comments, however, from time to= time, it may be useful to be able to comment
some \usepackage li= ne, and I don't see how it can be done in Org, except by killing the wh= ole line.
=C2=A0
In org reference, 12.7.2, it is said t= hat:

=E2=80=98LATEX_HEADER=E2=80=99
Arbitrary lines added to the preamble of the document, before the =E2=80= =98hyperref=E2=80=99
settings. The location can be controlled via= org-latex-classes.

Note the plural to lines= . How can several lines be specified? AFAICS, if I do :

:EXPORT_LATEX_HEADER: \usepackage{mathptmx} % rm & math
:EXPOR= T_LATEX_HEADER: \usepackage[scaled=3D0.90]{helvet} % ss

<= /div>
The second line will take precedence over the first one.

Thanks for your help,

Fabrice

--089e0149d020cf52cd052d23b8a6--