On Jan 30, 2011, at 7:49 AM, Sébastien Vauban wrote:
Hi Thomas,
"Thomas S. Dye" wrote:
The default value of org-export-latex-emphasis-alist treats the =
and ~
delimiters as \\verb. Both settings are ignored because org-export-
latex-use-verb is nil by default. The = and ~ delimiters produce
\texttt{}
instead of \verb. This patch distinguishes = and ~ by changing the
default
for = to \\texttt{%s}.
The docstring has also been changed to refer to org-export-latex-
use- verb.
With this patch, users exporting to LaTeX will be able to use = for
\texttt
text in LaTeX moving environments and ~ for \verb text in places
where it is
safe to use this construct.
What's the real use of that variable? I mean, wouldn't it be more
simple if
Org's export behavior was just based on the contents of
org-export-latex-emphasis-alist? Is there verbatim in it, we use
verbatim. Is
is texttt in it, we use texttt...
In fact, in which cases do we want to override what's described in
the alist?
Best regards,
Seb
--
Sébastien Vauban
Aloha Seb,
Do you mean the variable org-export-latex-use-verb? I haven't looked
into its history in the git repo. Currently it defaults to nil, so
\verb is not used and \texttt is used in its place.
Carsten has a patch on the list today that changes the default to t,
which means that what you see in the alist is pretty much what you
get. For reasons having to do with typesetting code snippets (that I
don't fully understand), Carsten protects special characters in
\texttt. This means that the alist doesn't contain a markup character
that yields straight \texttt, though it should be straightforward to
add one.
I hope this helps. In any event, it represents the limit of my
understanding of what goes on in org-latex.el, which I freely admit
falls far short of full comprehension.
All the best,
Tom
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode