瀏覽代碼

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.
Carsten Dominik 16 年之前
父節點
當前提交
411f9d174f
共有 2 個文件被更改,包括 5 次插入2 次删除
  1. 3 0
      lisp/ChangeLog
  2. 2 2
      lisp/org-export-latex.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2008-12-15  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* 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.

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