TeXnik - Tips TeX and LaTeX


Welcome to the TeXnik website (under construction)

Appendix
TUG logo

Main page

Index
UK FAQ
Documentation
Software
CTAN
Search CTAN:

Statistics

Google c.t.t.

Google d.c.t.t.

 


 


Index with Chapterstyle |  Indexstyle |  more than 2 columns |  Preamble |  Special Characters |  Umlauts and Sorting | 


Special Packages:
Lix (LaTeX index)

By default the index starts without a chapter/section-number. If you like the same behaviour than the one for chapters/sections write the following in the preamble.

index1
\renewenvironment{theindex}{%
	\if@twocolumn\@restonecolfalse\else\@restonecoltrue\fi
	\columnseprule \z@
	\columnsep 35\p@
	\twocolumn[\refstepcounter{chapter}%
		\@makechapterhead{\indexname}]%
	\@mkboth{\MakeUppercase\indexname}{\MakeUppercase\indexname}%
	\thispagestyle{plain}\parindent\z@
	\parskip\z@ \@plus .3\p@\relax
	\let\item\@idxitem%
}{%
	\if@restonecol\onecolumn\else\clearpage\fi}
for a section header change it to:
[...]
                \twocolumn[\refstepcounter{section}%
                  \section{\indexname}]%
[...]


Words with leading Umlauts in right order
run makeindex with the option -g for a german sorting or use
\index{Ubernachtung@‹bernachtung}

the first is for sorting (without umlaut), the second is the output (the correct word).
This method is possible with all words which have special characters.


More than 2 columns
If you want to have more than two columns in the index, you have to use the multicols-package inside the index-environment.

in latex preamble:

\usepackage{multicol}
\newcommand\NrCol{3}
\renewenvironment{theindex}{%
	\columnseprule \z@
	\columnsep 35\p@
	\section*{\indexname}%
	\@mkboth{\MakeUppercase\indexname}{\MakeUppercase\indexname}%
	\begin{multicols}{\NrCol}%
		\thispagestyle{plain}\parindent\z@
		\parskip\z@ \@plus .3\p@\relax
		\let\item\@idxitem%
}{\clearpage\end{multicols}}


Indexstylefile
makeindex allows to define an own style-file (see man makeindex or /usr/share/doc/makeindex/). if you like an index just like

Symbols
...
A
...
...
B
...
...

then do:

local time: Tue Dec 10 16:23:53 CET 2019 ; file is: 165.078668981481 days old
contact webmaster _at_ TeXnik.de