all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* overruling subscripts in latex export
@ 2012-01-25  2:02 Peter Rayner
  2012-01-25  4:27 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Rayner @ 2012-01-25  2:02 UTC (permalink / raw)
  To: emacs-orgmode

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



And here is the exported latex
% Created 2012-01-25 Wed 12:04
\documentclass[11pt]{article}
% package includes deleted 

\title{test file}
\author{Peter Rayner}
\date{25 January 2012}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}


\begin{description}
\item[p$_c$$_{\mathrm{in}}$] this is the first parameter
\item[g$_c$$_{\mathrm{in}}$] and this is the second
\end{description}

\end{document}

Note those $ signs in the \item brackets.  I would rather see
p\_c\_in  or \verb|p_c_in|

I am probably misunderstanding how to set the option, could someone
please explain?

This is with
Org-mode version 7.5 (release_7.8.03.74.gd6e40f)
Thanks in advance
Peter



-- 
Peter Rayner
room 343 
School of Earth Sciences, University of Melbourne, 3010, Vic, Australia
tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761 
mobile +61 402 752 379, skype: petermorag 
mail-to: prayner@unimelb.edu.au

and
CLIMMOD ENGINEERING
http://www.climmod.com
mail-to: Peter.Rayner@climmod.com

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

* Re: overruling subscripts in latex export
  2012-01-25  2:02 overruling subscripts in latex export Peter Rayner
@ 2012-01-25  4:27 ` Nick Dokos
  2012-01-25  4:54   ` Peter Rayner
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2012-01-25  4:27 UTC (permalink / raw)
  To: Peter Rayner; +Cc: nicholas.dokos, emacs-orgmode

Peter Rayner <prayner@unimelb.edu.au> 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

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

* Re: overruling subscripts in latex export
  2012-01-25  4:27 ` Nick Dokos
@ 2012-01-25  4:54   ` Peter Rayner
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Rayner @ 2012-01-25  4:54 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

Yes, the problem was, indeed, that I had forgotten I needed to
activate the option with "C-c C-c".
Many thanks
Peter


-- 
Peter Rayner
room 343 
School of Earth Sciences, University of Melbourne, 3010, Vic, Australia
tel: work: +61 (0)3 8344 9708; fax: +61 (0)3 8344 7761 
mobile +61 402 752 379, skype: petermorag 
mail-to: prayner@unimelb.edu.au

and
CLIMMOD ENGINEERING
http://www.climmod.com
mail-to: Peter.Rayner@climmod.com

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

end of thread, other threads:[~2012-01-25  4:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-25  2:02 overruling subscripts in latex export Peter Rayner
2012-01-25  4:27 ` Nick Dokos
2012-01-25  4:54   ` Peter Rayner

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.