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 287 times

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply