0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-25 08:02:52 +00:00

Remove org-export-latex-use-verb.

* org-latex.el (org-export-latex-emph-format): Don't use
`org-export-latex-use-verb'.  Remove this variable.

This variable was introduced by Carsten for testing purpose,
it was not meant to be a user variable.
This commit is contained in:
Bastien Guerry 2011-02-01 18:03:57 +01:00
parent b2838f40ff
commit 8158131e7a

View file

@ -1978,14 +1978,11 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
(replace-match rpl t t))) (replace-match rpl t t)))
(backward-char))) (backward-char)))
(defvar org-export-latex-use-verb t
"Toggle the use of \\verb for ~ emphasis.
Set to nil for \\texttt, t for \\verb.")
(defun org-export-latex-emph-format (format string) (defun org-export-latex-emph-format (format string)
"Format an emphasis string and handle the \\verb special case." "Format an emphasis string and handle the \\verb special case."
(when (member format '("\\verb" "\\protectedtexttt")) (when (member format '("\\verb" "\\protectedtexttt"))
(save-match-data (save-match-data
(if (and (equal format "\\verb") org-export-latex-use-verb) (if (equal format "\\verb")
(let ((ll "~,./?;':\"|!@#%^&-_=+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ<>()[]{}")) (let ((ll "~,./?;':\"|!@#%^&-_=+abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ<>()[]{}"))
(catch 'exit (catch 'exit
(loop for i from 0 to (1- (length ll)) do (loop for i from 0 to (1- (length ll)) do