For some reason, the line numbers are getting pushed waaaay over to the left in twocolumn
. Anyway, this sort of works:
\documentclass[twocolumn]{article}
\usepackage{verse}
\begin{document}
\begin{verse}
\poemlines{1}
\setlength{\vrightskip}{-9cm}
\verselinenumbersleft
aaa\\aaa\\aaa\\\newpage{}
aaa\\aaa\\aaa\\
\end{verse}
\end{document}
\vrightskip
tells the environment how far over to typeset the line numbers. All I've done is nudge it back onto the page. Some tweaking may be required depending on how far over you want the numbers and so on. -10cm
moves the numbers more right, -8cm
moves it more to the left.
Well, I think I have some sort of a solution now. Basically, since the spacing between rows/lines in Latex is apparently controlled by \baselineskip
, one essentially has to ensure that a section heading takes up a vertical space, which is integer multiple of \baselineskip
(i.e., it is quantized :)).
That would mean (I guess) is, either letting Latex typeset the section heading, and then trying to figure out the remaining height to add as vertical space, which seemed kind of tedious - or wrapping everything (related to the section heading) in a box with specified height, and letting Latex take care of the rest.
From the approaches I tried, the easiest (see code comments) seems to use a \parbox
preceeded by a \noindent
(or \parindent = 0pt
), with a specified height; in the question, the image shows the section heading (by default) takes a little more than three line heights - so the \parbox
here is specified to be 3\baselineskip
; the code shows simply the replacement that needs to be done around \section
...
%%% \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
% parbox seemingly inserts parindent, even for a section; \noindent fails if inside \parbox; but works if first (and in group!) & matches OK int\baseline
% minipage kills beforeskip/afterskip of section
% vbox seems ok, but then needs to be less than int\baseline skip to match OK
{\noindent%
\parbox[t][3\baselineskip]{\linewidth}{
% \begin{minipage}[t][3\baselineskip]{\linewidth}
% \vbox to 3\baselineskip{
\section{Vivamus}
% }
% \end{minipage}
}%
}
% \lipsum[21-30]
...
... which results with following PDF rendering:
... and correspondingly, since subsequent rows/lines match now - also the bottom rows between the two columns are aligned.
In any case, if there is a different solution, I'd love to hear it ...
Cheers!
Coupla useful links:
Best Answer
I'm not sure if this is what you need, but you could increase the top margin using the
geometry
package:Notes:
geometry
:pass
tellsgeometry
not to change anything, but just load the package.showframe
makesgeometry
display lines at the margins.lipsum
is just for blind text (four paragraphs of blind text).