0

I wrote a document that I would like to print multiple times, but with customizations for each customer. It total I want to use a single tex/pdf file. Each version shall include a table of contents. I try to use minitoc for that, but this does not work. How do I have to adapt my code:

\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{minitoc}

\begin{document}

\newcommand{\version}[1]{

\begin{center}\large
Title
\end{center}

\setcounter{page}{1}
\setcounter{section}{0}
\setcounter{subsection}{0}

% \phantomsection
\tableofcontents
% \dosecttoc
% \parttoc

\section{one}
asdf #1
\subsection{two}
asdf #1
\section{three}
asdf #1
\subsection{four}
asdf #1
\subsection{five}
asdf

\clearpage

}

\version{Customer Name A}

\version{Customer Name B}

\end{document}

Your Answer

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

Browse other questions tagged or ask your own question.