From 32f9c79896cc32bd865b80fd296bcb87df45f3eb Mon Sep 17 00:00:00 2001 From: Thorsten Glaser <thorsten.glaser@teckids.org> Date: Tue, 25 Aug 2015 00:17:05 +0200 Subject: [PATCH] [verein.git] fix the 0 for account cards, so far --- teckids.sty | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/teckids.sty b/teckids.sty index 1393cd0..fbfd0ad 100644 --- a/teckids.sty +++ b/teckids.sty @@ -8,6 +8,7 @@ % Niklas Bildhauer <niklas.bildhauer@teckids.org> % with contributions by (among others) % Steven B. Segletes <http://tex.stackexchange.com/users/25858> +% Enrico Gregorio <http://tex.stackexchange.com/users/4427> % % Provided that these terms and disclaimer and all copyright notices % are retained or reproduced in an accompanying document, permission @@ -49,16 +50,19 @@ \RequirePackage{pxfonts} \renewcommand{\familydefault}{\sfdefault} \RequirePackage{hyphenat} +\RequirePackage{letltxmacro} \newcommand\0{\scalebox{-1}[1]{0}} -\let\svttfamily\ttfamily -\let\svtexttt\texttt +\LetLtxMacro\svttfamily\ttfamily +\begingroup\ttfamily\endgroup +\DeclareRobustCommand\ttfamily{% \catcode`0=\active -\def0{\0} -\renewcommand\ttfamily{\svttfamily\catcode`0=\active } -\renewcommand\texttt{\bgroup\ttfamily\texttthelp} -\def\texttthelp#1{#1\egroup} -\catcode`0=12 +\svttfamily +} +\LetLtxMacro{\svtexttt}{\texttt} +\DeclareRobustCommand{\texttt}{\begingroup\catcode`0=\active\dotexttt} +\newcommand\dotexttt[1]{\svtexttt{#1}\endgroup} +\begingroup\lccode`~=`0 \lowercase{\endgroup\def~}{\0} \DeclareGraphicsExtensions{.pdf,.eps,.png,.jpg} -- GitLab