Literatura <-> Obsah
Jaromir Kuben
kuben at scova.vabo.cz
Tue May 9 12:59:19 CEST 2000
Bohus Misovic píše:
>
> Zdravim!
>
> Mam taky malicky problem. V Latex2e v dokumente "article" ked dam:
>
> /bibliography{9}
> /bibitem ...
> ....
>
> a niekde inde v dokumente dam:
>
> /tableofcontents
>
> tak sa mi v pohode vytvori obsah, ale "literatura" tam nie je ...
>
> Pravdepodobne to nie je chyba, ale ako sa da jednoducho spravit, aby
> literatura bola v obsahu.
>
> Dakujem.
>
> Bohus Misovic
>
> (dufam, ze taka otazka tu este nebola...)
Dobry den.
Nejlepsi je vytahnout definici thebibliography z article.cls
a upravit ji. Napr. takto:
\makeatletter
\renewenvironment{thebibliography}[1]
{\section*{\refname
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
\addcontentsline{toc}{section}{\bibname}% pridano
\list{\@biblabel{\@arabic\c at enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib at code
\usecounter{enumiv}%
\let\p at enumiv\@empty
\renewcommand\theenumiv{\@arabic\c at enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex at warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother
Zdravi
Jaromir Kuben
More information about the csTeX
mailing list