When list-ofs follow each other they overlap, at least with my setup. Here's an example:




% New list of source code listings
\newcommand{\sourcename}{Source Code Listing}
\newcommand{\listsourcename}{List of Source Code}









\begin{figure} \caption{Some  fig} \end{figure}
\begin{figure} \caption{Other fig} \end{figure}

\begin{source} \caption{Some  src} \end{source}
\begin{source} \caption{Other src} \end{source}


Compile with:

xelatex test.tex && xelatex test.tex

This is the result:

I could add some vertical space, but is there a more correct way of handling this?


1 Answer 1


That's a side effect of the petersen chapter style. The definition of this style contains (among other things) the code line


which results in the observed overlap. One probably could add some safeguarding for the case of two unnumbered chapters starting on the same page, but IMO it's acceptable to manually add some vertical space in this case.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .