emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Escaping Square Brackets in LaTeX Export
@ 2011-09-01 11:24 Richard Lewis
  2011-09-01 12:07 ` Erik Iverson
  2011-09-01 12:28 ` Jambunathan K
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Lewis @ 2011-09-01 11:24 UTC (permalink / raw)
  To: emacs-orgmode

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

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

* Re: Escaping Square Brackets in LaTeX Export
  2011-09-01 11:24 Escaping Square Brackets in LaTeX Export Richard Lewis
@ 2011-09-01 12:07 ` Erik Iverson
  2011-09-01 12:28 ` Jambunathan K
  1 sibling, 0 replies; 4+ messages in thread
From: Erik Iverson @ 2011-09-01 12:07 UTC (permalink / raw)
  To: Richard Lewis; +Cc: emacs-orgmode

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

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

* Re: Escaping Square Brackets in LaTeX Export
  2011-09-01 11:24 Escaping Square Brackets in LaTeX Export Richard Lewis
  2011-09-01 12:07 ` Erik Iverson
@ 2011-09-01 12:28 ` Jambunathan K
  2011-09-01 15:44   ` Richard Lewis
  1 sibling, 1 reply; 4+ messages in thread
From: Jambunathan K @ 2011-09-01 12:28 UTC (permalink / raw)
  To: Richard Lewis; +Cc: emacs-orgmode


> 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.

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

* Re: Escaping Square Brackets in LaTeX Export
  2011-09-01 12:28 ` Jambunathan K
@ 2011-09-01 15:44   ` Richard Lewis
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Lewis @ 2011-09-01 15:44 UTC (permalink / raw)
  To: emacs-orgmode

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

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

end of thread, other threads:[~2011-09-01 15:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-01 11:24 Escaping Square Brackets in LaTeX Export Richard Lewis
2011-09-01 12:07 ` Erik Iverson
2011-09-01 12:28 ` Jambunathan K
2011-09-01 15:44   ` Richard Lewis

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).