I'm very new to Latex and I need to make two table of contents, one in the beginning and one in the end. The one in the end should be very detailed and the one in the beginning should just be a general overview of everything. Here is my code and the results :
\documentclass[12pt,oneside]{memoir}
\usepackage{shorttoc}
\begin{document}
\renewcommand*\contentsname{Detailed contents}
%\begin{KeepFromToc}
\shorttoc{Contents}{0}
\setcounter{tocdepth}{4}
\tableofcontents
\chapter*{Introduction}
\thispagestyle{plain}
\addcontentsline{toc}{chapter}{Introduction}
\part{Part 1}
\chapter{Chapitre 1 : first chapter!}
\section{Section 1 --- ch1 sec2}
\paragraph{§1 – para1}
\paragraph{§2 – para2}
\section{Section 2 --- ch1 sec2}
\paragraph{§1 – parag1}
\paragraph{§2 – parag 2}
\section*{Conclusion Chapitre 1}
\addcontentsline{toc}{chapter}{Conclusion Chapitre 1}
\chapter{Chapitre 2 }
\section{Section 1 --- ch2 sec1}
\paragraph{§1 – my first parag}
\paragraph{§2 – my second parag}
\section{Section 2 --- ch2 sec2}
\paragraph{§1 – my first paragraph\\\\}
\paragraph{§2 – my2ndeParagraph\\\\}
\section*{Conclusion Chapitre 2}
\addcontentsline{toc}{chapter}{Conclusion Chapitre 2}
\end{document}
And here is what I get :
This is pretty good, but I need some editing for the first table of contents :
1) I DON'T want to keep "Conclusion Chapter 1" and "Conclusion Chapter 2" in the short TOC, but only in the long one.
2) I DON'T want page numbers nor dots in the first short TOC.
Any ideas on how to do this? Thanks!
Best Answer
You have made some odd choices in your original document, which may or may not be intentional:
\paragraph
command. Normally (and very rarely) those are used for numbered document divisions below\subsubsection
. This is the reason why you have such a large change in indentation between the sections and the paragraphs in the ToC -- the subsections and subsubsections would normally fill the gaps. If you don't intend to have subsections and subsubsections, you may just want to place whitespace between each paragraph and let them indent normally.That having been said: