Line numbers are not properly rendered on the last paragraph of a proof when using the lecture notes in computer science class llncs.

Here's a minimal working example.

\usepackage [pagewise]{lineno}

% Halmos box at the end of proofs.


\institute{University of Breaking Things}



Some lines of text

more text

Here lies a meaty lemma.
Bacon ipsum dolor sit amet hamburger flank enim, ut filet mignon beef meatloaf tempor chicken frankfurter tri-tip occaecat consequat dolor. Reprehenderit consequat tongue est, duis prosciutto voluptate ham hock ut chicken ribeye. Sint consectetur bacon tenderloin. Fatback nisi pork loin excepteur sed ut turducken cow pastrami. Labore adipisicing laboris fugiat short loin.

Sunt boudin et shankle esse. Sint in ut esse tempor tongue tri-tip chicken strip steak biltong ullamco consectetur. Sed ex magna voluptate esse. Meatball sirloin ea pariatur short loin pig sint shoulder. Fugiat doner qui ea ribeye shankle ex tri-tip deserunt ullamco nulla jowl. Bresaola sint brisket andouille. Dolore in aliqua labore in mollit boudin corned beef officia fugiat incididunt sirloin.

And now some more text.


I'm not entirely sure why, but it's the \qed that breaks the line numbers. Here's an easy fix: just wrap it in math mode, i.e. $\qed$.

Replacing the lines as follows fixes it:

  • To that end, you could also just use \squareforqed, which is a overlapping \sqcap and \sqcup.
    – Werner
    Feb 5 '13 at 3:19
  • @Werner I'm pretty sure the class I'm using uses those overlapping symbols anyway. I think putting it in math mode puts you in a different if branch in the class definition. So I think it might actually be a bug in the class? But it's a commonly required class for submitting to computer science conferences.
    – Joe
    Feb 6 '13 at 0:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.