General ⇒ listings - package caption below the list
listings - package caption below the list
I´m using the listings package and I try to write the caption below the listbox.
But I can`t find the right command.
\lstinputlisting[backgroundcolor=\color{rahmen},frame=single,label=lst:bresenham,caption=Bresenham-Algorithmus,numbers=left, numberstyle=\tiny, numbersep=5pt]{listings/umsetzung/bresenham.txt}
if I tryed is with captionpos I got a title below and above the listing!!!
captionpos=hsubset of tbi
specifies the positions of the caption: top and/or bottom of the listing.
Can someone give me a hint?
THX samy
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
listings - package caption below the list
Play with the belowcaptionskip argument. By default its value is \smallskipamount.
Example:
Code: Select all
\lstinputlisting[ ... ,captionpos=b,caption=Bresenham-Algorithmus, belowcaptionskip=4pt]{listings/umsetzung/bresenham.txt}
N.