diff --git a/teckids.sty b/teckids.sty index 834f619cbf8dee2e8c0b94180caa25edb6ea15c4..f8624e6c1d089a892d9578cffb8add031c94010b 100644 --- a/teckids.sty +++ b/teckids.sty @@ -2,12 +2,12 @@ %- % Copyright © 2013, 2015 % Dominik George <dominik.george@teckids.org> -% % Copyright © 2014, 2015 % Thorsten “mirabilos†Glaser <thorsten.glaser@teckids.org> -% % Copyright © 2015 % Niklas Bildhauer <niklas.bildhauer@teckids.org> +% with contributions by (among others) +% Steven B. Segletes <http://tex.stackexchange.com/users/25858> % % Provided that these terms and disclaimer and all copyright notices % are retained or reproduced in an accompanying document, permission @@ -50,6 +50,14 @@ \renewcommand{\familydefault}{\sfdefault} \newcommand\0{\scalebox{-1}[1]{0}} +\let\svttfamily\ttfamily +\let\svtexttt\texttt +\catcode`0=\active +\def0{\0} +\renewcommand\ttfamily{\svttfamily\catcode`0=\active } +\renewcommand\texttt{\bgroup\ttfamily\texttthelp} +\def\texttthelp#1{#1\egroup} +\catcode`0=12 \DeclareGraphicsExtensions{.pdf,.eps,.png,.jpg} @@ -311,6 +319,7 @@ commentstyle=\color[rgb]{0.133,0.545,0.133}, stringstyle=\color[rgb]{0.627,0.126,0.941}, literate={0}{\0}1{0\ }{\0\ }2, + escapeinside={〈}{〉}, } }