emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] LaTeX export


From: Bastien
Subject: Re: [Orgmode] LaTeX export
Date: Fri, 02 Nov 2007 19:04:16 +0000
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux)

Xiao-Yong Jin <address@hidden> writes:

> But I would like to propose a work-around.  How about make
> `^' and `_' in those regions marked as =this_code= or
> something similar not be interpreted as super- and
> subscripts?

You can already protect strings from conversion by playing with 
`org-export-latex-emphasis-alist', which default value is:

  '(("*" "\\textbf{%s}" nil)
    ("/" "\\emph{%s}" nil)
    ("_" "\\underline{%s}" nil)
    ("+" "\\texttt{%s}" nil)
    ("=" "\\texttt{%s}" nil))

If you use `t' instead of `nil' for the last element of this list, then
=this_string= will be converted as \texttt{this_string} instead of

  \texttt{$this_{string}$}  when ^:t
  \texttt{this\_{}string}   when ^:nil

I do agree that all this could be improved, and I hope I'll come with a
general solution for the next release.  Ideas welcome!

In the meanwhile, testing latest org-export-latex.el will help *a lot*:

  http://www.cognition.ens.fr/~guerry/u/org-export-latex.el

Thanks!

-- 
Bastien




reply via email to

[Prev in Thread] Current Thread [Next in Thread]