Text Formatting ⇒ addtocontentsline question -short-
addtocontentsline question -short-
cause, obviously, I have enclosed it. Now I want it to show in the ToC with the current sectionmark to (its section 3 of the appendix). How do I do that?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
addtocontentsline question -short-
please, when posting a question provide all the relevant information needed. In your case, a skeleton of the relevant parts of your document (showing the document class used, packages related to the problem, relevant portions of the actual code, etc.) would be necessary.
Also, provide a brief, clear and as precisely as possible description of your problem.
Re: addtocontentsline question -short-
It's a report, two-side. About 50 pages. But I just want to know what argument I should use with the \addtocontentsline command to get the chapternumber in the ToC aswell, not just the phrase 'curriculum vitae' and page number.
addtocontentsline question -short-
Without this MWE is really hard to provide effective help. For example, the following MWE behaves as desired (at least, from your description so far):
Code: Select all
\documentclass[twoside]{report}
\begin{document}
\tableofcontents
\appendix
\chapter{Appendix}
\section{First section of the Appendix}
\section{Second section of the Appendix}
\section{Curriculum Vitae}
\end{document}
Re: addtocontentsline question -short-
\addtocounter{section}{1}
\addcontentsline{toc}{section}{\numberline\thesection{Curriculum Vitae}}
Works like a charm.