Consider the following MWE:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[thick,fill=yellow!50] (0,0) circle (3);
\draw[thick,fill=orange!50] (0,0) circle (2.4);
\foreach \letter [count=\i] in {A,...,Z} {
\draw[very thin] (0,0) -- ({90-\i*360/26}:3);
\path (0,0) --node[pos=.9,sloped,allow upside down,rotate=-90] {\letter} ({360/52+90-\i*360/26}:3);
}
\foreach \letter [count=\i] in {G,H,...,Z,A,B,...,F} {
\path (0,0) --node[pos=.7,sloped,allow upside down,rotate=-90] {\small\letter} ({360/52+90-\i*360/26}:3);
}
\end{tikzpicture}
\end{document}
It draws a disk for the Caesar cipher. When run through pdflatex the result is correct. However, when I use the preview function in Emacs and AUCTeX, I get this:
I am using AUCTeX 12.2.0. Compilation runs through with only one error message:
./region.tex:11: Package tikz Error: Sorry, some package has redefined the meaning of the math-mode dollar sign. This is incompatible with tikz and its calc library and might cause unrecoverable errors
However, I do not think that this is linked to my problem in any way, because the problem persists even if I work around the error by setting \catcode\`$=3.



code...? – Philipp Imhof Mar 27 '20 at 10:53ab\\cresults inab`c`). – frougon Mar 27 '20 at 11:16