all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Loris Bennett <loris.bennett@fu-berlin.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Breaking up long #+TBLFM line?
Date: Tue, 26 Jan 2016 12:37:21 +0100	[thread overview]
Message-ID: <87lh7ctvv2.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87powoeq6u.fsf@hornfels.zedat.fu-berlin.de> (Loris Bennett's message of "Tue, 26 Jan 2016 08:48:57 +0100")

Hello,

"Loris Bennett" <loris.bennett@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	other threads:[~2016-01-26 11:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-20  8:18 Breaking up long #+TBLFM line? Loris Bennett
2016-01-25 14:51 ` Karl Voit
2016-01-25 15:59   ` Loris Bennett
2016-01-25 16:05     ` Loris Bennett
2016-01-25 17:42     ` Nick Dokos
2016-01-26  4:20       ` Samuel Wales
2016-01-26 14:55         ` table editor is off screen (was: Breaking up long #+TBLFM line?) Karl Voit
2016-01-26 23:34           ` table editor is off screen Nicolas Goaziou
2016-01-27  0:09             ` Samuel Wales
2016-01-26  7:48       ` Breaking up long #+TBLFM line? Loris Bennett
2016-01-26 11:37         ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lh7ctvv2.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=loris.bennett@fu-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.