From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Breaking up long #+TBLFM line? Date: Tue, 26 Jan 2016 12:37:21 +0100 Message-ID: <87lh7ctvv2.fsf@nicolasgoaziou.fr> References: <87lh7ksly4.fsf@hornfels.zedat.fu-berlin.de> <2016-01-25T15-49-20@devnull.Karl-Voit.at> <87zivtwsxw.fsf@hornfels.zedat.fu-berlin.de> <8737tlzhce.fsf@alphaville.usersys.redhat.com> <87powoeq6u.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO1uA-0006Xl-N9 for emacs-orgmode@gnu.org; Tue, 26 Jan 2016 06:35:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aO1u6-0003H3-NV for emacs-orgmode@gnu.org; Tue, 26 Jan 2016 06:35:26 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:56595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO1u6-0003Gx-H6 for emacs-orgmode@gnu.org; Tue, 26 Jan 2016 06:35:22 -0500 In-Reply-To: <87powoeq6u.fsf@hornfels.zedat.fu-berlin.de> (Loris Bennett's message of "Tue, 26 Jan 2016 08:48:57 +0100") 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: Loris Bennett Cc: emacs-orgmode@gnu.org Hello, "Loris Bennett" 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