for the finetuning I have to show a codelisting and the result as an image next to each other, otherwise it will be displayed on the next page and i have to crop it extremely.
Here's my progress so far:
\begin{lstlisting}[captionpos=b,caption={Alle HTML Überschriften (Quellcode)},label=lst:headings]
<h1>Überschrift erster Ordnung</h1>
<h2>Überschrift zweiter Ordnung</h2>
<h3>Überschrift dritter Ordnung</h3>
<h4>Überschrift vierter Ordnung</h4>
<h5>Überschrift fünfter Ordnung</h5>
<h6>Überschrift sechster Ordnung</h6>
\end{lstlisting}
\begin{figure}[h]
\includegraphics[height = 100px]{headings1}
\caption{Alle HTML Überschriften (Ansicht) \label{headingsimage}}
\end{figure}
How can I put them next to each other?
memoir. The answer there uses\subbottom. How should the OP define that in order to use the answer with a different class? – cfr Jun 30 '16 at 00:52