summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--itches/emacs/language-support.org29
2 files changed, 30 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6405247..54a5ce2 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
# Peniblec's Memory Leaks
-## still reachable: 8765 words in 22 pages
+## still reachable: 8811 words in 22 pages
Hi! I am a software engineer interested in [a bunch of things].
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`$=.