Re: Use of thebibliography and tableofcontents??
- From: Lars Madsen <daleif@xxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 19:47:05 +0200
[snip]
Well, I'd rather want to know why you want to remove it? Is is just to have the bibliography in the ToC (Here by using \section{Litt}) ?
Anyways, this works fine (I've also removed the items that goes into the header):
\documentclass[a4paper,12pt]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[danish]{babel}
\usepackage{graphicx}
\usepackage{verbatim}
\usepackage{fancyhdr}
%\usepackage[active]{srcltx}
%\usepackage[top=30mm,left=30mm]{geometry}
\usepackage{amsmath}
\pagestyle{fancy}
\fancyhf{}
\rhead{\leftmark}
%\fancyhead[RE]{\slshape \rightmark}
\author{bob}
\title{kkk}
\makeatletter
\renewenvironment{thebibliography}[1]
{%
% \section*{\refname}%
%\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
\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}
\makeatother
\begin{document}
\maketitle
\newpage
\tableofcontents
\newpage
\section{Litt}
\begin{thebibliography}{120}
\bibitem{short} bla1
\bibitem{long} bla2
\bibitem{book} bla3
\bibitem{so} bla4
\end{thebibliography}
\end{document}
--
/daleif (remove RTFSIGNATURE from email address)
LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl
.
- References:
- Use of thebibliography and tableofcontents??
- From: eksamor
- Re: Use of thebibliography and tableofcontents??
- From: Lars Madsen
- Re: Use of thebibliography and tableofcontents??
- From: eksamor
- Use of thebibliography and tableofcontents??
- Prev by Date: Re: laying out a hierarchical structure diagram
- Next by Date: Re: Getting braces into \pdfobj, for a Document-level JavaScript. HOW?
- Previous by thread: Re: Use of thebibliography and tableofcontents??
- Index(es):
Relevant Pages
|