Code: Select all
\startcontents[chapters]
\printcontents[chapters]{}{1}{\contentsmargin{1em}}
Any idea how can I remove first and last line? Or is there any other package I could use?
Code: Select all
\startcontents[chapters]
\printcontents[chapters]{}{1}{\contentsmargin{1em}}
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
The minitoc package is not compatible with the memoir class. But in Chapter 12 of its manual it introduces a patch in form of the small »mtcmempatch« package. Just include it in your document preamble. It is shipped with the package.LKB wrote:[…] As the minitoc package was not working I decided to try titletoc. […]
\setcounter{mtc}{2}
which sets MiniTOC to proper mtc[0-4] fileCode: Select all
\usepackage{lipsum}
\usepackage{minitoc}
\makeatother
\begin{document}
\dominitoc %TOC
\tableofcontents{}
\chapter{One}
\setcounter{mtc}{2} %%set it to proper mtc[0-4] file
\minitoc\
\section{This is my goal}
\lipsum[1]
\section{This is my target}
\lipsum[2]
\end{document}
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