[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Breaking up long #+TBLFM line?

From: Nicolas Goaziou
Subject: Re: [O] Breaking up long #+TBLFM line?
Date: Tue, 26 Jan 2016 12:37:21 +0100


"Loris Bennett" <address@hidden> writes:

> However, it seems a little inconsistent that some options, like
> '#+OPTIONS' or '#+LATEX_HEADER', are cumulative whereas others, like
> '#+TBLFM', are not.

Those are different things. 

#+LATEX_HEADER is a global keyword, which affects the whole document.
Most are related to export. There is no rule for them as each back-end
can treat them in any way. You may check `org-export-options-alist' for
the standard behaviour of the generic ones. Those that are not export
related (e.g., #+STARTUP, or #+CATEGORY), are expected to appear only
once. If they appear more, usually, only the first occurrence is
considered, but this is really an implementation detail.

Now, there are also affiliated keyword, which are local to the element
they apply to. Ther are "#+CAPTION", "#+HEADER", "#+NAME", "#+PLOT",
"#+RESULTS" and any "#+ATTR_..." construct. Among them, only
"#+CAPTION", "#+HEADER" and "#+ATTR_..." can be repeated. This is
defined in Org's syntax.

Eventually, there is "#+TBLFM", which doesn't belong to any of the
previous categories. This is just part of the syntax of Org tables. As
such, it follows its own rule, which is that multiple lines are allowed,
but only the first one is "active" in the current table.


Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]