diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-07-07 12:17:34 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-07-07 12:17:34 +0000 |
commit | f00a23f066c9082e42f7ca38164209a3dc403275 (patch) | |
tree | f2e9ca93c03e7152155c866b4611f1dcdfcd43bc /doc/latex | |
parent | ed884c2e276b8108b7fde5c369370b36273474b2 (diff) |
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
Diffstat (limited to 'doc/latex')
-rw-r--r-- | doc/latex/cactus.sty | 15 |
1 files changed, 9 insertions, 6 deletions
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}} |