我正在尝试排版一个婚礼程序,其中包括歌曲,我希望将其显示为两列,因为我认为这样看起来更好。但是,我花了很长时间让该songs
程序包很好地运行multicol
,想知道是否有人知道我可以修复什么以使其正常运行。
来自songs
文档:
http://songs.sourceforge.net/songsdoc/songs.html#sec11.5
将列数设置为零会完全禁用页面构建算法。如果您想使用外部包(例如 multicol 或 LaTeX 的内置 \twocolumn 宏)来构建页面,这将非常有用。例如,以下内容设置了一个适合使用 \twocolumn 的歌词书的环境:
然而,我看到的情况是歌曲排在第一页,而第二列完全是空白的 - 所有文本都转移到了新页面上。
这是我的 MWE:
\documentclass[12pt,letterpaper]{article}
\usepackage{lipsum}
\usepackage{multicol}
\usepackage[lyric]{songs}
% define new fonts
\newcommand{\fancy}{\calligra\small}
\newcommand{\block}{\sc\scriptsize}
\pagestyle{empty}
\songcolumns{0}
\begin{document}
%TODO: Update margins so this fits in one column
\begin{multicols}{2}
\begin{songs}{}
\beginsong{How Can I Keep from Singing?}[]
\beginverse
My life goes on in endless song\\
Above earth's lamentations,\\
I hear the real, though far-off hymn\\
That hails a new creation.
\endverse
\beginverse
Through all the tumult and the strife\\
I hear its music ringing,\\
It sounds an echo in my soul.\\
How can I keep from singing?
\endverse
\beginverse
While though the tempest loudly roars,\\
I hear the truth, it liveth.\\
And though the darkness 'round me close,\\
Songs in the night it giveth.
\endverse
\beginverse
No storm can shake my inmost calm,\\
While to that rock I'm clinging.\\
Since love is lord of heaven and earth\\
How can I keep from singing?
\endverse
\beginverse
When tyrants tremble in their fear\\
And hear their death knell ringing,\\
When friends rejoice both far and near\\
How can I keep from singing?
\endverse
\beginverse
In prison cell and dungeon vile\\
Our thoughts to them are winging,\\
When friends by shame are undefiled
How can I keep from singing?
\endverse
\endsong
\end{songs}
\subsection*{The Bride's Parents}
\lipsum
\end{multicols}
\end{document}
答案1
环境\clearpage
最终会发生变化,您可以在本地禁用它(我\bigskip
在这里这样做)。
\documentclass[12pt,letterpaper]{article}
\usepackage{lipsum}
\usepackage{multicol}
\usepackage[lyric]{songs}
% define new fonts
\newcommand{\fancy}{\calligra\small}
\newcommand{\block}{\sc\scriptsize}
\pagestyle{empty}
\songcolumns{0}
\begin{document}
%TODO: Update margins so this fits in one column
\begin{multicols}{2}
\begin{songs}{}
\beginsong{How Can I Keep from Singing?}[]
\beginverse
My life goes on in endless song\\
Above earth's lamentations,\\
I hear the real, though far-off hymn\\
That hails a new creation.
\endverse
\beginverse
Through all the tumult and the strife\\
I hear its music ringing,\\
It sounds an echo in my soul.\\
How can I keep from singing?
\endverse
\beginverse
While though the tempest loudly roars,\\
I hear the truth, it liveth.\\
And though the darkness 'round me close,\\
Songs in the night it giveth.
\endverse
\beginverse
No storm can shake my inmost calm,\\
While to that rock I'm clinging.\\
Since love is lord of heaven and earth\\
How can I keep from singing?
\endverse
\beginverse
When tyrants tremble in their fear\\
And hear their death knell ringing,\\
When friends rejoice both far and near\\
How can I keep from singing?
\endverse
\beginverse
In prison cell and dungeon vile\\
Our thoughts to them are winging,\\
When friends by shame are undefiled
How can I keep from singing?
\endverse
\endsong
\let\clearpage\bigskip
\end{songs}
\subsection*{The Bride's Parents}
\lipsum
\end{multicols}
\end{document}