Graphics, Figures & Tablesmemoir | Misaligned Frame in Listing

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
CharlieMAC
Posts: 19
Joined: Wed May 04, 2011 5:50 pm

memoir | Misaligned Frame in Listing

Post by CharlieMAC »

Hi everyone!

I need to put portions of source code in a document I'm currently writing, and I'm using the class memoir and the listings and caption packages to make these source code portions look more elegant.

The problem is that the listing frame below of the caption looks misaligned. I'd like the caption frame (gray box) to be aligned with frame of the listing. The minimal working example is attached below.

Also, for some reason I don't know, Kile shows this bad box:
Overfull \hbox (6.0pt too wide) in paragraph
Any suggestion?
Thanks in advance?
Attachments
MWE.tex
(1.18 KiB) Downloaded 282 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post Reply