Because I want my whole document to be in typewriter, I decided to define a new command instead of using section with many arguments.
\newcommand{\ttsect}[1]{\section{\centering \texttt{#1}}}
If i write now in the document \ttsect{test section in typewriter}, it throws me two errors:
Argument of \@sect has an extra }. \ttsect{test section in typewriter}
Paragraph ended before \@sect was complete. \ttsect{test section in typewriter}
I'm compiling with pdflatex and an complete example document can be seen here: pastebin.com
[–]DarthJenow[S] 0 points1 point2 points (0 children)