From: Martin Mares Date: Mon, 23 May 2011 12:27:14 +0000 (+0200) Subject: Added \lline, \rline and \cline X-Git-Tag: v1.0~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f3c3eb4a9bc79423230acd7085ce80fe1c1bb658;p=ucwmac.git Added \lline, \rline and \cline Patch by Jan Matejka --- diff --git a/ucwmac.tex b/ucwmac.tex index 96680ad..3097c7b 100644 --- a/ucwmac.tex +++ b/ucwmac.tex @@ -229,6 +229,12 @@ % A handy shortcut \let\>=\noindent +% Variants of \centerline, \leftline and \rightline, which are compatible with +% verbatim environments and other catcode hacks +\def\cline{\bgroup\def\linet@mp{\aftergroup\box\aftergroup0\aftergroup\egroup\hss\bgroup\aftergroup\hss\aftergroup\egroup}\afterassignment\linet@mp\setbox0\hbox to \hsize} +\def\lline{\bgroup\def\linet@mp{\aftergroup\box\aftergroup0\aftergroup\egroup\bgroup\aftergroup\hss\aftergroup\egroup}\afterassignment\linet@mp\setbox0\hbox to \hsize} +\def\rline{\bgroup\def\linet@mp{\aftergroup\box\aftergroup0\aftergroup\egroup\hss\bgroup\aftergroup\egroup}\afterassignment\linet@mp\setbox0\hbox to \hsize} + %%% Epilog %%% % Let's hide all internal macros