emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Jörg Hagmann" <joerg.hagmann@unibas.ch>
To: Emacs-orgmode@gnu.org
Subject: TeX commands or source code in org files
Date: Thu, 02 Sep 2010 12:34:42 +0200	[thread overview]
Message-ID: <4C7F7DC2.1010600@unibas.ch> (raw)

  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	other threads:[~2010-09-02 10:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=4C7F7DC2.1010600@unibas.ch \
    --to=joerg.hagmann@unibas.ch \
    --cc=Emacs-orgmode@gnu.org \
    /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 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).