TeX e LaTeX

Specialità per la bibliografia

Introduzione alla bibliografia

Per inserire un preambolo alla bibliografia ci sono vari modi. Quelli che elenco funzionano tutti solamente con una singola bibliografia.

\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!

Se si usa solo thebibliography si può scrivere

\begin{thebibliography}{...}
\item[]
\hskip-\leftmargin
\begin{minipage}{\textwidth}
Testo testo testo ...
\end{minipage}
\bigskip
\bibitem{...} ...
...
\end{thebibliography}

Un altro modo è di inserire nel preambolo del file BibTeX un comando che formatti e scriva qualcosa (possibilmente con ifundefined). E poi abilitarlo nel preambolo del file tex scrivendoci quello che si vuole che appaia.