From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: overruling subscripts in latex export Date: Tue, 24 Jan 2012 23:27:08 -0500 Message-ID: <3285.1327465628@alphaville> References: <20255.25252.403452.217345@raynernix2.earthsci.unimelb.edu.au> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpuqm-00057W-Dd for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 23:52:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rpuqk-0002LU-05 for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 23:52:48 -0500 Received: from g1t0028.austin.hp.com ([15.216.28.35]:8242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpuqj-0002It-Nv for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 23:52:45 -0500 In-Reply-To: Message from Peter Rayner of "Wed, 25 Jan 2012 13:02:12 +1100." <20255.25252.403452.217345@raynernix2.earthsci.unimelb.edu.au> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Peter Rayner Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Peter Rayner wrote: > I'm documenting some code including lists of parameters. These have > underscores in them which I don't want to interpret as subscripts. > According to the manual I can overrule this behaviour with an option > but it looks like I'm doing something wrong. > > Here is the test file > #+OPTIONS: ^:{} > #+TITLE: test file > > - p_c_in :: this is the first parameter > - g_c_in :: and this is the second > > > ... > > > \begin{description} > \item[p$_c$$_{\mathrm{in}}$] this is the first parameter > \item[g$_c$$_{\mathrm{in}}$] and this is the second > \end{description} > I get ,---- | \begin{description} | \item[p\_{}c\_{}in] this is the first parameter | \item[g\_{}c\_{}in] and this is the second | \end{description} `---- which is what's expected. It might be that you didn't update the setup of the buffer after you added the #+OPTIONS line (just press C-c C-c on it). Equivalently, kill the buffer and find-file again: the option should be active. Assuming of course that you have a reasonably modern version of org. Mine is Org-mode version 7.8.03 (release_7.8.03.230.g67cb2.dirty) (which includes a few local patches) Nick