I tried removing the caption package related lines. Also I tried to play with all caption related options but to no avail :(
Another forum said to use the float option but that also didn't work.
Hopefully this is the correct forum. A caption under a listing should be similar to that under an image ...
Search found 2 matches
- Sun Jan 10, 2010 6:27 am
- Forum: Graphics, Figures & Tables
- Topic: lstlisting & caption & pagebreak
- Replies: 2
- Views: 4792
- Sat Jan 09, 2010 4:35 am
- Forum: Graphics, Figures & Tables
- Topic: lstlisting & caption & pagebreak
- Replies: 2
- Views: 4792
lstlisting & caption & pagebreak
The caption on a listing breaks on the next page sometimes. Is there a way to glue listing and caption together?
Here is an example listing:
\begin{lstlisting}[caption={Manipulation und Substitution durch bufferorientierte Implementierung.}]{}
int main()
{
printf("hello, world");
return 0 ...
Here is an example listing:
\begin{lstlisting}[caption={Manipulation und Substitution durch bufferorientierte Implementierung.}]{}
int main()
{
printf("hello, world");
return 0 ...