From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?J=F6rg_Hagmann?= Subject: TeX commands or source code in org files Date: Thu, 02 Sep 2010 12:34:42 +0200 Message-ID: <4C7F7DC2.1010600@unibas.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=56466 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Or788-0006Wx-2k for Emacs-orgmode@gnu.org; Thu, 02 Sep 2010 06:34:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Or783-0007NH-AP for Emacs-orgmode@gnu.org; Thu, 02 Sep 2010 06:34:51 -0400 Received: from smtp1pub.unibas.ch ([131.152.227.80]:56892) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Or783-0007Mj-40 for Emacs-orgmode@gnu.org; Thu, 02 Sep 2010 06:34:47 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode@gnu.org 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