Selaa lähdekoodia

ox-latex: Use \ul (from soul package) instead of \underline

* lisp/org.el (org-latex-default-packages-alist): Document need for
  "soul" package.
* lisp/ox-latex.el (org-latex-text-markup-alist): Use \ul (from "soul"
  package) instead of \underline for underline text.
Nicolas Goaziou 12 vuotta sitten
vanhempi
commit
84de2396c3
2 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 1 0
      lisp/org.el
  2. 1 1
      lisp/ox-latex.el

+ 1 - 0
lisp/org.el

@@ -3828,6 +3828,7 @@ Org mode to function properly:
   symbols used for interpreting the entities in `org-entities'.
   symbols used for interpreting the entities in `org-entities'.
   You can skip some of these packages if you don't use any of the
   You can skip some of these packages if you don't use any of the
   symbols in it.
   symbols in it.
+- soul: for underline and strike-through
 - graphicx: for including images
 - graphicx: for including images
 - float, wrapfig: for figure placement
 - float, wrapfig: for figure placement
 - longtable: for long tables
 - longtable: for long tables

+ 1 - 1
lisp/ox-latex.el

@@ -525,7 +525,7 @@ When nil, no transformation is made."
 					 (code . verb)
 					 (code . verb)
 					 (italic . "\\emph{%s}")
 					 (italic . "\\emph{%s}")
 					 (strike-through . "\\st{%s}")
 					 (strike-through . "\\st{%s}")
-					 (underline . "\\underline{%s}")
+					 (underline . "\\ul{%s}")
 					 (verbatim . protectedtexttt))
 					 (verbatim . protectedtexttt))
   "Alist of LaTeX expressions to convert text markup.
   "Alist of LaTeX expressions to convert text markup.