auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

verbatim shorthand problem


From: Werner LEMBERG
Subject: verbatim shorthand problem
Date: Thu, 17 Aug 2023 19:46:34 +0000 (UTC)

[auctex git version around May 11th, 2023]


If I have a document like this

```
\documentclass{article}

\usepackage{fvextra}
\DefineShortVerb{\|}

\begin{document}
|foo|
\end{document}

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% LaTeX-shortvrb-chars: (?|)
%%% End:
```

`|foo|` is not fontified as verbatim input.  I have to add

```
%%% eval: (TeX-run-style-hooks "shortvrb")
```

to the local variable block to get proper fontification.  Is there a
more elegant solution?  Or maybe it makes sense to always activate the
(possibly adapted) 'shortvrb' style for 'fancyvrb'?


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]