2

I am currently adding the Abbreviations section by using \nameref in the TOC to circumvent the problem with nomenclat and glossaries packages to include the the glossary. This is using the code as shown below, which also keeps the abbreviation sections un-numbered in the index.

\section*{Abbreviations}
\label{sec:abbr}
\addcontentsline{toc}{section}{\nameref{sec:abbr}}

Is there a similar way to add the TOC in TOC page, as the current TOC doesn't do so by default. Document class being used is article. I have roman numerals for rest of the body while the main sections are all arabic numbered. So also expect to see TOC in TOC with corresponding roman numerals of the page.

0
\documentclass{article}
\usepackage{nameref}
\begin{document}
\section*{Abbreviations}
\label{sec:abbr}
\addcontentsline{toc}{section}{\nameref{sec:abbr}}
\addcontentsline{toc}{section}{\contentsname}
\tableofcontents
\end{document}

Or similarly:

\documentclass{article}
\usepackage{nameref}
\begin{document}
\section*{Abbreviations}
\label{sec:abbr}
\addcontentsline{toc}{section}{\nameref{sec:abbr}}
\addcontentsline{toc}{section}{\nameref{tocpage}}
\tableofcontents
\label{tocpage}
\end{document}
  • The the first code snippet works as expected. The second code snippet does show a line in the TOC but does not show the text, just the page roman numeral associated to it. vielen Dank! – vsp May 8 '15 at 9:47
  • The second snippet cannot show any roman numerals. Please check the minimal example first, then try to implement it into your document. There is other stuff going on. – Johannes_B May 8 '15 at 9:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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