From 5e4af8dca9b9fcf69b5f7decc5926330cc9b2480 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sun, 28 Jul 2019 19:46:48 +0200 Subject: Note down issue with AUCTeX Need to try the repository version, make a bug report if it's still failing, and ask when are new releases coming out if not. --- itches/emacs/language-support.org | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'itches/emacs/language-support.org') diff --git a/itches/emacs/language-support.org b/itches/emacs/language-support.org index 8d007d3..76f1f5e 100644 --- a/itches/emacs/language-support.org +++ b/itches/emacs/language-support.org @@ -57,3 +57,32 @@ of overwriting when pressing $ again. **** pressing ="= on active region does not surround it with quotes even with electric-pair-mode TeX-insert-quote erases the region and inserts =``= instead. **** pressing =$= inserts a single $ +*** =catcode`$= starts a math environment +Minimal example: + +#+BEGIN_SRC latex +\documentclass{article} + +\usepackage{fancyvrb} +\usepackage{listings} +\usepackage{xcolor} + +\lstset{ + fancyvrb=true +} + +\begin{document} + +\begin{Verbatim}[ + commandchars=\\\{\}, + codes={\catcode`$=3}, + formatcom={\lstset{fancyvrb=false}} +] +Things increased: \textcolor{red}{+32.05%} (189818 $\nearrow$ 250657) +Things decreased: \textcolor{green}{-49.22%} (514 $\searrow$ 261) +\end{Verbatim} + +\end{document} +#+END_SRC + +Can workaround it with =\catcode36= instead of =\catcode`$=. -- cgit v1.2.3