Bläddra i källkod

LaTeX export: Do not use "|" as verbatim delimiter

This causes problems in tables.

You have now two ways to make verbatim things.  Use ~xyz~ or =xyz=
depending on whether ~ or = might occur in the string......
Carsten Dominik 16 år sedan
förälder
incheckning
2d2359741a
2 ändrade filer med 5 tillägg och 2 borttagningar
  1. 3 0
      lisp/ChangeLog
  2. 2 2
      lisp/org-export-latex.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2009-02-02  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-export-latex.el (org-export-latex-emphasis-alist): Use = and
+	~ as verbatim delimiters.
+
 	* org-exp.el (org-export-html-format-image): New argument
 	PAR-OPEN.
 	(org-export-as-html): Pass par-open to

+ 2 - 2
lisp/org-export-latex.el

@@ -165,8 +165,8 @@ to represent the section title."
     ("/" "\\emph{%s}" nil)
     ("_" "\\underline{%s}" nil)
     ("+" "\\texttt{%s}" nil)
-    ("=" "\\verb|%s|" nil)
-    ("~" "\\verb|%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.