Google Группы больше не поддерживают новые публикации и подписки в сети Usenet. Опубликованный ранее контент останется доступен.

columnsep in theindex (TLC2 and memoir)

20 просмотров
Перейти к первому непрочитанному сообщению

hazydirk

не прочитано,
22 мая 2005 г., 18:09:5922.05.2005
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

не прочитано,
23 мая 2005 г., 04:59:2023.05.2005
"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

не прочитано,
23 мая 2005 г., 06:43:4523.05.2005


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

не прочитано,
29 мая 2005 г., 07:07:4529.05.2005
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 новых сообщений