From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: EXPORT_LATEX_HEADER property Date: Thu, 3 Mar 2016 20:17:49 +0100 Message-ID: References: <87bn6vpzud.fsf@nicolasgoaziou.fr> <8737s7pnnc.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3029ed600e2052d29dbd9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abYlH-0001fX-4n for emacs-orgmode@gnu.org; Thu, 03 Mar 2016 14:18:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abYlF-0002vo-U4 for emacs-orgmode@gnu.org; Thu, 03 Mar 2016 14:18:11 -0500 Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]:35391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abYlF-0002vd-JC for emacs-orgmode@gnu.org; Thu, 03 Mar 2016 14:18:09 -0500 Received: by mail-ob0-x236.google.com with SMTP id xx9so29394812obc.2 for ; Thu, 03 Mar 2016 11:18:09 -0800 (PST) In-Reply-To: <8737s7pnnc.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" --001a11c3029ed600e2052d29dbd9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2016-03-03 16:49 GMT+01:00 Nicolas Goaziou : > Fabrice Popineau writes: > > > 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=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, i= f > 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. > > The manual reference is about keywords, i.e, #+LATEX_HEADER:. You are > using properties. The two are slightly different. > > In particular, each value from a #+LATEX_HEADER keyword becomes a new > line whereas new values from properties replace the old ones (hence the > PROP+ syntax). > Ok, thanks for the confirmation. There is no strict equivalence in what can be done on a subtree and what can be done at the document level. > Long story short: if you want multiple lines, use keywords. I think I'll deport the LaTeX stuff into a single external file rather. > There is no > support in multi lines properties in Org. Moreover, the use cases are > sufficiently rare that I don't even think it is worth implementing. I don't know what it could look like, but rare ... Am I the only one who has a setup to export different subtrees from the same Org file? Best regards, Fabrice --001a11c3029ed600e2052d29dbd9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2016-03-03 16:49 GMT+01:00 Nicolas Goaziou <mail@nicolasgoaziou.f= r>:
Fabric= e Popineau <fabrice.popine= au@gmail.com> writes:

> 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=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
> :EXPORT_LATEX_HEADER: \usepackage[scaled=3D0.90]{helvet} % ss
>
> The second line will take precedence over the first one.

The manual reference is about keywords, i.e, #+LATEX_HEADER:. You ar= e
using properties. The two are slightly different.

In particular, each value from a #+LATEX_HEADER keyword becomes a new
line whereas new values from properties replace the old ones (hence the
PROP+ syntax).
=C2=A0
Ok, thanks for the con= firmation. There is no strict equivalence in what can be done
on = a subtree and what can be done at the document level.
=C2=A0
Long story short: if you want multiple lines, use keywords.

I think I'll deport the LaTeX stuff into a single ext= ernal file rather.
=C2=A0
The= re is no
support in multi lines properties in Org. Moreover, the use cases are
sufficiently rare that I don't even think it is worth implementing.

I don't know what it could look like, but= rare ... Am I the only one who has a setup
to export different s= ubtrees from the same Org file?


Bes= t regards,

Fabrice

--001a11c3029ed600e2052d29dbd9--