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

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply