不必要的线路偏移

不必要的线路偏移

如何消除第二行和第三行之间不必要的行移位?

\documentclass[12pt]{book}
\usepackage{verse}
\PassOptionsToPackage{bookmarks, colorlinks=false, hidelinks}{hyperref}
% Use PoetryTeX; http://www.ctan.org/pkg/poetrytex
\usepackage[numberpoems, clearpageafterpoem, useincipits]{poetrytex}

% Use the PA5 paper size
\usepackage[paperwidth=140mm,paperheight=210mm]{geometry}



\begin{document}


\begin{poem}{~}

    \poemtitle{Poem name}
    \settowidth{\versewidth}{And objects at rest tended to remain at rest tended to remain at rest}

    \begin{verse}[\versewidth]
        This is the first line\\
        \mbox{The second line is much longer than the first} \\
        \mbox{The third has unwanted space from the second}
    \end{verse} 

\end{poem}
\end{document} 

答案1

问题在于您的线条对于 A5 纸来说太长了,因此要么让verse完成其工作并删除\mbox,要么正确地位于一行的长度左右:

\documentclass[12pt]{book}
\usepackage{verse}
\PassOptionsToPackage{bookmarks, colorlinks=false, hidelinks}{hyperref}
% Use PoetryTeX; http://www.ctan.org/pkg/poetrytex
\usepackage[numberpoems, clearpageafterpoem, useincipits]{poetrytex}

% Use the PA5 paper size
\usepackage[paperwidth=140mm,paperheight=210mm]{geometry}



\begin{document}


\begin{poem}{~}

    \poemtitle{Poem name}
    \settowidth{\versewidth}{And objects at rest tended to remain at rest tended to remain at rest}

    \begin{verse}[\versewidth]
        This is the first line\\
        \makebox[\linewidth][l]{The second line is much longer than the first} \\
        \makebox[\linewidth][l]{The third has unwanted space from the second}
    \end{verse} 

\end{poem}
\end{document} 

在此处输入图片描述

相关内容