Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

columnsep in theindex (TLC2 and memoir)

20 views
Skip to first unread message

hazydirk

unread,
May 22, 2005, 6:09:59 PM5/22/05
to
Dear LaTeXers,

I've spent the past hour figuring out how to set the width of the
gutter between the two columns in the index and noted that the both the
example in TLC2, p.679 and the \indexcolsep command in the memoir class
did not work correctly (at least changing the value of \indexcolsep or
\columnsep didn't have any effect).

Here's the code from TLC2:

\newenvironment{theindex}
{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
\twocolumn[\@makeschapterhead{\indexname}]%
\@mkboth{\MakeUppercase\indexname}{\MakeUppercase\indexname}%
\setlength{\columnseprule}{1pt}%{\indexrule}
\setlength{\columnsep}{100pt}%{\indexcolsep}
\thispagestyle{plain}\parindent\z@
\parskip\z@ \@plus .3\p@\relax
\columnseprule \z@ \columnsep 35\p@ \let\item\@idxitem}
{\if@restonecol\onecolumn\else\twocolumn\fi}

Comparing this to book.cls made me realize that the \columnsep command
must come *before* \twocolumn in order to have the desired effect
(similar considerations apply also to the memoir class).

Maybe this has been noted before, but I thought I'd share this anyway
since it took me quite a while to figure it out.

- Dirk

Robin Fairbairns

unread,
May 23, 2005, 4:59:20 AM5/23/05
to
"hazydirk" <hazy...@yahoo.com> writes:
>I've spent the past hour figuring out how to set the width of the
>gutter between the two columns in the index and noted that the both the
>example in TLC2, p.679 and the \indexcolsep command in the memoir class
>did not work correctly (at least changing the value of \indexcolsep or
>\columnsep didn't have any effect).
>
>Here's the code from TLC2:
>
>\newenvironment{theindex}
> {\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
> \twocolumn[\@makeschapterhead{\indexname}]%
> \@mkboth{\MakeUppercase\indexname}{\MakeUppercase\indexname}%
> \setlength{\columnseprule}{1pt}%{\indexrule}
> \setlength{\columnsep}{100pt}%{\indexcolsep}
> \thispagestyle{plain}\parindent\z@
> \parskip\z@ \@plus .3\p@\relax
> \columnseprule \z@ \columnsep 35\p@ \let\item\@idxitem}
> {\if@restonecol\onecolumn\else\twocolumn\fi}
>
>Comparing this to book.cls made me realize that the \columnsep command
>must come *before* \twocolumn in order to have the desired effect
>(similar considerations apply also to the memoir class).

there's a competition in progress for finding bugs -- see the item
under "news" on www.latex-project.org

afaics, yours has not yet been noticed -- well done!
--
Robin (http://www.tex.ac.uk/faq) Fairbairns, Cambridge

Lars Madsen

unread,
May 23, 2005, 6:43:45 AM5/23/05
to


it is quite interesting because just changing the \indexcolsep in memoir doesn't
work either.


--

/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
AMSMATH Intro: http://www.ams.org/tex/amslatex.html
LaTeX Intro: http://people.ee.ethz.ch/~oetiker/lshort/lshort.pdf
Graphics Intro: http://www.ctan.org/tex-archive/info/epslatex.pdf
Superb Class: http://www.ctan.org/tex-archive/help/Catalogue/entries/memoir.html
Remember to post minimal working examples.

Joachim Schrod

unread,
May 29, 2005, 7:07:45 AM5/29/05
to
hazydirk wrote:
>
> I've spent the past hour figuring out how to set the width of the
> gutter between the two columns in the index and noted that the both the
> example in TLC2, p.679 and the \indexcolsep command in the memoir class
> did not work correctly (at least changing the value of \indexcolsep or
> \columnsep didn't have any effect). [...]

> Comparing this to book.cls made me realize that the \columnsep command
> must come *before* \twocolumn in order to have the desired effect
> (similar considerations apply also to the memoir class).

Thanks for pointing this out. It came in time to change it for the German
translation. :-)

Joachim
(TLC2 ch.11 co-author)

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod Email: jsc...@acm.org
Roedermark, Germany

0 new messages