[O] Escaping Square Brackets in LaTeX Export

2011-09-01 Thread Richard Lewis
Hi there,

I want to include the following in an org-mode buffer and be able to
export it to LaTeX:

#+begin_src python :exports code
s[0]
#+end_src

The problem is that org-mode treats s[0] as a footnote reference and
produces LaTeX like this:

\begin{verbatim}
s\footnote{DEFINITION NOT FOUND: 0 }
\end{verbatim}

Is it possible to escape the square brackets?

Thanks,
Richard



Re: [O] Escaping Square Brackets in LaTeX Export

2011-09-01 Thread Erik Iverson

Richard,

On 09/01/2011 06:24 AM, Richard Lewis wrote:


I want to include the following in an org-mode buffer and be able to
export it to LaTeX:

#+begin_src python :exports code
s[0]
#+end_src


This works for me with both python and R code blocks on the latest version 
pulled from git.  Which version of org-mode are you experiencing this with?


--Erik




Re: [O] Escaping Square Brackets in LaTeX Export

2011-09-01 Thread Jambunathan K

 The problem is that org-mode treats s[0] as a footnote reference and
 produces LaTeX like this:

Make sure your Org version is NEWER than this post.
https://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg00447.html

From the above post

,
| Footnotes cannot live anymore in example, src, verse, latex, html and
| docbook blocks.
`

Jambunathan K.



Re: [O] Escaping Square Brackets in LaTeX Export

2011-09-01 Thread Richard Lewis
At Thu, 01 Sep 2011 17:58:00 +0530,
Jambunathan K wrote:
 
  The problem is that org-mode treats s[0] as a footnote reference and
  produces LaTeX like this:
 
 Make sure your Org version is NEWER than this post.
 https://lists.gnu.org/archive/html/emacs-orgmode/2011-07/msg00447.html
 
 From the above post
 
 ,
 | Footnotes cannot live anymore in example, src, verse, latex, html and
 | docbook blocks.
 `

Thanks for the pointer. It led me to discover that some of my org-mode
libraries were coming from the Debian emacs package, and some from my
git repository. So a site-specific problem.  I've actually been caught
out by this before, so no excuse really.

Thanks,
Richard