"Nicolas Richard" <[email protected]> writes: Hi Nicolas,
>> I recently upgraded to mavericks on my mac, and in doing so upgraded >> to emacs version 24.3, and then auctex 11.87. I do a lot of >> probability in latex, and hence use the vertical bar "|" character >> for specifying conditional probability, i.e, things like p(a|b). > > Some styles (e.g. memoir) load the style for 'shortvrb' (See > (find-library "style/shortvrb.el")), which includes the behaviour you > describe. > > I suggested before to not load shortvrb when loading memoir: > http://lists.gnu.org/archive/html/bug-auctex/2013-02/msg00000.html > > As a workaround, I have (setq LaTeX-shortvrb-chars nil) in my .emacs. Hm, when I find this file --8<---------------cut here---------------start------------->8--- \documentclass{memoir} \begin{document} This is |foo| and this is |bar|. \end{document} --8<---------------cut here---------------end--------------->8--- neither foo or bar are fontified, although the | is in the syntax alist: ,---- | font-latex-syntax-alist is a variable defined in `font-latex.el'. | Its value is shown below. | | Documentation: | List of specifiers for the syntax alist of `font-lock-defaults'. | | Value: ((40 . ".") | (41 . ".") | (36 . "\"") | (64 . "w") | (124 . "|")) `---- Do I need to customize anything to get the fontification you describe? BTW, I've noticed that compiling the document prints --foo-- and --bar--, not foo and bar printed verbatim. To get that effect, I need to add \MakeShortVerb{\|}. Doesn't shortvrb add the | as short verb by default? If so, then LaTeX-shortvrb-chars should probably be nil anyway. Bye, Tassilo _______________________________________________ bug-auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-auctex
