TeXnik - Tips TeX and LaTeX


Welcome to the TeXnik website (under construction)

BibTeX 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 bibliography starts with the first item of the biblist. If you want a preamble like the following one:

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

Komascript classes

The komscript classes have a command for a preamble. Write anywhere in the text before you insert the bibliography or start the bibliography environment:
\setbibpreamble{% open the preamble!
This is the text for the preamble ... This is the text for the preamble ...
}% close the preamble!

Other Classes

Write in Layout->Preamble:

\newcommand{\thebibpreamble}{}
%
\renewenvironment{thebibliography}[1]
     {\section*{\refname}%
      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
%
      \thebibpreamble
      \renewcommand{\thebibpreamble}{}%
%
      \list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
In the text you can write anywhere before you insert the bibliography or start the bibliography environment:
\renewcommand{\thebibpreamble}{% open the preamble!
This is the text for the preamble ... This is the text for the preamble ...
}% close the preamble!

local time: Sat Dec 7 21:03:38 CET 2019 ; file is: 167.473310185185 days old
contact webmaster _at_ TeXnik.de