From f00a23f066c9082e42f7ca38164209a3dc403275 Mon Sep 17 00:00:00 2001 From: schnetter Date: Mon, 7 Jul 2003 12:17:34 +0000 Subject: Fix layout bug in Lentry lists; there was a superfluous space. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3259 17b73243-c579-4c4c-a9d2-2d5706c11dac --- doc/latex/cactus.sty | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'doc/latex') diff --git a/doc/latex/cactus.sty b/doc/latex/cactus.sty index 76d876ba..a1fcbc2d 100644 --- a/doc/latex/cactus.sty +++ b/doc/latex/cactus.sty @@ -78,12 +78,15 @@ } } {\end{list}} \newlength{\Mylen} \newcommand{\Lentrylabel}[1]{% - \settowidth{\Mylen}{\textsf{#1}}% - \ifthenelse{\lengthtest{\Mylen > \labelwidth}}% - {\parbox[b]{\labelwidth} % term > labelwidth - {\makebox[0pt][l]{\textsf{#1}}\\}} % - {\textsf{#1}} % - \hfil\relax} \newenvironment{Lentry} +% Latex doesn't always like spaces -- sometimes it outputs them, and +% then they destroy the layout. Please don't indent the following, +% nor add spaces, nor remove the percent signs, nor add spaces in +% front of them. +\settowidth{\Mylen}{\textsf{#1}}% +\ifthenelse{\lengthtest{\Mylen > \labelwidth}}% +{\parbox[b]{\labelwidth}% term > labelwidth +{\makebox[0pt][l]{\textsf{#1}}\\}}% {\textsf{#1}}% +\hfil\relax} \newenvironment{Lentry} {\renewcommand{\entrylabel}{\Lentrylabel} \begin{entry}} {\end{entry}} -- cgit v1.2.3