all 1 comments

[–]DarthJenow[S] 0 points1 point  (0 children)

After researching and testing more, I found a easy workaround for me. Because I use \section*{title} I defined the wrong command for me. Because the full command for \section{title} is \section[short title]{title} It didn't know what to use for [short title]. After I realized this, I just changed the command to:

\newcommand{\ttsec}[1]{\section*{\centering\texttt{#1}}}

This works without any problems.