I have observed when using flushend
package to balance the references at the last page, if at the same time the package lineno
is loaded, the last page of reference will not be displayed. I have tested using \twocolumn
document with default package option for lineno
.
As soon as I remove either flushend
or lineno
package definition, the thing go well!
Is there any incompatibility between these two packages?
In the following MWE, the last page will be gone if you include the lineno
package:
\documentclass{article}
\twocolumn
\usepackage{lipsum}
\usepackage{flushend}
\usepackage[switch]{lineno}
\linenumbers
\begin{document}
\lipsum
\end{document}
EDIT:
Is there any other way I can balance the columns at the last page without using flushend
and balance
and multicol
packages? multicol
with \twocolum
will not result in nice output, if I use \onecolum
before \begin{multicols}
it will create new page, which I dont want.
Best Answer
Unfortunately, as you observe
flushend
does not work well withlineno
. On the other hand, thelineno
package does include specific code to cope withmulticol
. So I suggest you usemulitcol
for the whole document insead of\twocolumn
. To allow space for the line numbers, you should increase the space between the columns by setting\columnsep
: