[bibliography tweak]
In latex you sometimes use bibliographies with the help of bibtex files (.bib). The way to this is by inserting the flowing line in the latex source file:
\bibliography{tomat} %= Creates a bibliogaphy from a bib file
This will create a bibliography in the produced document after compiling the bibtex and latex source files with the right commands and in the right order. The bibliography will of course have the chapter title Bibliography with no chapter number. However, sometimes you may want to change the title to for example References. To do make this to work, insert the following code in your latex source file between the \documentclass and \begin{document} commands:
\makeatletter
\def\thebibliography#1{\chapter*{References\@mkboth
{REFERENCES}{REFERENCES}}\list
{[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
\advance\leftmargin\labelsep
\usecounter{enumi}}
\def\newblock{\hskip .11em plus .33em minus .07em}
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.=1000\relax}
\makeatother
Further sometimes you want more than changing the title of the Bibliography chapter. Often you want the title to have a chapter number and appear in the table of contents. To do make this to work, insert the following code in your latex source file instead of the code above:
\makeatletter
\def\thebibliography#1{\chapter{References\@mkboth
{REFERENCES}{REFERENCES}}\list
{[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
\advance\leftmargin\labelsep
\usecounter{enumi}}
\def\newblock{\hskip .11em plus .33em minus .07em}
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.=1000\relax}
\makeatother
updated: [ 2005 - 08 - 10 ] [ 21:42 ]