From a31f1f951b5c3056519323cb52d1cfb2ce2c66cc Mon Sep 17 00:00:00 2001 From: Michael Olson Date: Thu, 17 Nov 2005 16:32:23 +0000 Subject: [PATCH] muse-latex: Hone escaping further. * lisp/muse-latex.el (muse-latex-markup-regexps): Don't escape ampersands everywhere, since this breaks tables. Thanks to Trent Buck for the suggestions. (muse-latex-markup-texttt-specials): Add rules for "\n", "\", "_", "<", ">", "$", "%", "&", and "#". git-archimport-id: mwolson@gnu.org--2005/muse--rel--3.02--patch-10 --- lisp/muse-latex.el | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/lisp/muse-latex.el b/lisp/muse-latex.el index 6c90420..1acdab4 100644 --- a/lisp/muse-latex.el +++ b/lisp/muse-latex.el @@ -119,7 +119,7 @@ filename." (10000 "\\([0-9]+\\)-\\([0-9]+\\)" 0 "\\1--\\2") ;; characters which need quoting - (10010 "\\([$#%&]\\)" 0 "\\\\\\1") + (10010 "\\([$#%]\\)" 0 "\\\\\\1") (10020 "_" 0 "\\\\textunderscore{}") (10030 "<" 0 "\\\\textless{}") (10040 ">" 0 "\\\\textgreater{}") @@ -256,9 +256,18 @@ system to an associated CJK coding system." :group 'muse-latex) (defcustom muse-latex-markup-texttt-specials - '((?^ . "\\^{}") + '((?\n . "\\\n") + (?\\ . "\\textbackslash{}") + (?_ . "\\textunderscore{}") + (?\< . "\\textless{}") + (?\> . "\\textgreater{}") + (?^ . "\\^{}") + (?\$ . "\\$") + (?\% . "\\%") (?\{ . "\\{") - (?\} . "\\}")) + (?\} . "\\}") + (?\& . "\\&") + (?\# . "\\#")) "A table of characters which must be represented specially. This applies to text in \\texttt{} regions." :type '(alist :key-type character :value-type string) -- 2.11.4.GIT