emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX_HEADER blocks
@ 2015-05-28  4:28 Mark Edgington
  2015-05-28  4:52 ` Mark Edgington
  2015-05-28 17:17 ` Nicolas Goaziou
  0 siblings, 2 replies; 3+ messages in thread
From: Mark Edgington @ 2015-05-28  4:28 UTC (permalink / raw)
  To: emacs-orgmode

Hi Everyone,

It is possible in org-mode to do either

    #+LaTeX: \somecommand

or

    #+BEGIN_LaTeX
    \somecommand
    #+END_LaTeX

I typically use the latter (the block form) because I often have
multiple lines of LaTeX I would like to include at certain locations
of a document.

Similar to #+LaTeX, there is also #+LaTeX_HEADER, which ensures that
something is included as part of the preamble.  Unfortunately,
however, there is no equivalent block form for #+LaTeX_HEADER.  As a
result, when there are several items one wishes to have in the
preamble, it's necessary to have many such lines, each with a
"#+LaTeX_HEADER: " prefix.

For the sake of consistency and convenience, wouldn't it be worthwhile
to add a "LaTeX_HEADER" block type to accompany the "LaTeX" block
type?

It seems like this was proposed a couple years ago by Eric Fraga, but
didn't go anywhere because of concerns over how to decide where to
place the content of such blocks relative to the content of
"#+LaTeX_HEADER" lines.  It would seem sensible to make it work
identically to how #+LaTeX lines and #+BEGIN_LaTeX blocks work -- they
are simply included in the order in which they are encountered in the
org file.

Regards,

Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-28 17:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-28  4:28 LaTeX_HEADER blocks Mark Edgington
2015-05-28  4:52 ` Mark Edgington
2015-05-28 17:17 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).