From 411f9d174f8ca18c8f8404a5030138395b3dffb8 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Mon, 15 Dec 2008 13:01:50 +0100 Subject: [PATCH] Switch to \verb in LaTeX export for code-like snippets. Emphasis expressions ~...~ and =...= are not typeset using \verb. You cannot include the vertical bar in these snippets as this is the delimiter. --- lisp/ChangeLog | 3 +++ lisp/org-export-latex.el | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index aaf16a78f..9a3ecfb1d 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2008-12-15 Carsten Dominik + * org-export-latex.el (org-export-latex-emphasis-alist): Switch to + \verb for colde-like snippets. + * org.el (org-up-heading-safe): Speed up function by using a direct regexp search. (org-olpa): New variable. diff --git a/lisp/org-export-latex.el b/lisp/org-export-latex.el index fb68b4a61..8e9661ce9 100644 --- a/lisp/org-export-latex.el +++ b/lisp/org-export-latex.el @@ -163,8 +163,8 @@ to represent the section title." ("/" "\\emph{%s}" nil) ("_" "\\underline{%s}" nil) ("+" "\\texttt{%s}" nil) - ("=" "\\texttt{%s}" nil) - ("~" "\\texttt{%s}" t)) + ("=" "\\verb|%s|" nil) + ("~" "\\verb|%s|" t)) "Alist of LaTeX expressions to convert emphasis fontifiers. Each element of the list is a list of three elements. The first element is the character used as a marker for fontification. -- 2.11.4.GIT