Hello,

"Loris Bennett" <loris.benn...@fu-berlin.de> 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.


Regards,

-- 
Nicolas Goaziou

Reply via email to