TeXnik - Tips TeX and LaTeX


Welcome to the TeXnik website (under construction)

Preamble
TUG logo

Main page

Index
UK FAQ
Documentation
Software
CTAN
Search CTAN:

Statistics

Google c.t.t.

Google d.c.t.t.

 


 


By default the index starts with the first item of the indexlist. If you want a preamble like the following one:

than you have to use the komascript-docclasses or to redefine the index environment.

Komascript classes

The komscript classes have a command for a preamble. Write anywhere in the text before you insert the \printindex:
\setindexpreamble{% open the preamble!
This is the text for the preamble ... This is the text for the preamble ...
}% 
close the preamble!

Other Classes

Write into the preamble:

\newcommand{\theindexpreamble}{}
\renewenvironment{theindex}
               {\if@twocolumn
                  \@restonecolfalse
                \else
                  \@restonecoltrue
                \fi
                \columnseprule \z@
                \columnsep 35\p@
                \twocolumn[\section*{\indexname}
%
      \theindexpreamble\\
      \renewcommand{\theindexpreamble}{}%
%
                ]%
                \@mkboth{\MakeUppercase\indexname}%
                        {\MakeUppercase\indexname}%
                \thispagestyle{plain}\parindent\z@
                \parskip\z@ \@plus .3\p@\relax
                \let\item\@idxitem}
               {\if@restonecol\onecolumn\else\clearpage\fi}
In the text you can write anywhere
\printindex
\renewcommand{\theindexpreamble}{% open the preamble!
This is the text for the preamble ... This is the text for the preamble ...
}% close the preamble!
By default the Index is in twocolumn-mode. The preamble is always in onecolumn-mode. You can change this when moving the two commands from the preamble before the \thispagestyle command.

local time: Sat Aug 24 02:50:21 CEST 2019 ; file is: 56.4721875 days old
contact webmaster _at_ TeXnik.de