emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] TeX commands or source code in org files


From: Jörg Hagmann
Subject: [Orgmode] TeX commands or source code in org files
Date: Thu, 02 Sep 2010 12:34:42 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2

 Dear list,

Is "#+LaTeX: \ATeXCommand" the only way to insert LaTeX (or, in my case, ConTeXt) commands in an org file? See the explanations in this minimal example:

----------minimal example--------------------------------
#+TITLE:      Minimal Example

#+begin_src latex
%contextsetups
\input libertine-en
\setupbodyfont[11pt]
%endcontextsetups
#+end_src

* Heading

As I am using ConTeXt, not LaTeX, I convert the tex-file produced by org to
a ConTeXt type tex-file.  The LaTeX source code above will be moved to the
top of my ConTeXt file and contains the ConTeXt setups.

Commands /in the body of the file/ work if written like this:

#+LaTeX: \MyContextCommand

* Heading

But not, if written like this (uncomment):

##+BEGIN_LaTeX
#\MyContextCommand
##+END_LaTeX

This kills everything down to the next heading

* Heading

The same happens with another "begin_src latex" block

---------end of minimal example----------------------

Of course, I can use "#+LaTeX: ", also for multiline commands. Just curious.

Thanks, Jörg




reply via email to

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