Multicol 環境中的歌曲包

Multicol 環境中的歌曲包

我正在嘗試排版婚禮節目,其中包括歌曲,我希望將其顯示為兩欄,因為我認為它看起來更好。然而,我很難讓這個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}

相關內容