From f3c3eb4a9bc79423230acd7085ce80fe1c1bb658 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 23 May 2011 14:27:14 +0200 Subject: [PATCH] Added \lline, \rline and \cline Patch by Jan Matejka --- ucwmac.tex | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.39.5