2

Today ,I use the \tableofcontentsto yield a content ,however ,it lacks of the reference .

My trial

     \documentclass{ctexart }
      \begin{document  }
        \addcontentsline{ toc }{ section }{Reference }
        \tableofcontents
      \end{ document }

Fortunately ,the reference appear to the first line ,while I need it appear on the last line.

so I wonder how to revise.thanks .

2

If you are talking about the thebibliography you have to use

\addcontentsline{toc}{section}{\bibname}

inside the environment:

\begin{thebibliography}{99}\addcontentsline{toc}{section}{\bibname}
\bibitem{label} Insert here the reference data.
\end{thebibliography}
|improve this answer|||||
  • ,thanks,best solution .BTW,the content appear the bibliography,how to change it to the chinese character "参考文献 " – xyz Jan 14 '14 at 12:38
  • 1
    Use \renewcommand{\bibname}{foo} on preamble. – Sigur Jan 14 '14 at 12:39
4

You can use the package tocbibind that automatically adds the bibliography to the ToC:

\usepackage[nottoc]{tocbibind}

The option nottoc is to avoid adding the ToC itself to the ToC.

MWE:

\documentclass{ctexart}
\usepackage[nottoc]{tocbibind}
   \begin{document}
      \tableofcontents
      \newpage
      I use the softwares
   \begin{thebibliography}{99}
       \bibitem{one}
         mathematica 8.0
       \bibitem{two}
        maple8.0
   \end{thebibliography}
\end{document} 

Output:

enter image description here

|improve this answer|||||

Not the answer you're looking for? Browse other questions tagged or ask your own question.