マルチコル環境の曲パッケージ

マルチコル環境の曲パッケージ

私は、歌を含むウェディング プログラムをタイプセットしようとしていますが、これを 2 列で表示した方が見栄えが良いと思います。しかし、パッケージを でうまくsongs動作させるのに非常に苦労しておりmulticol、動作させるために何を修正すればよいかについて、何かアイデアをお持ちの方がいらっしゃるでしょうか。

ドキュメントよりsongs:

http://songs.sourceforge.net/songsdoc/songs.html#sec11.5

列数を 0 に設定すると、ページ構築アルゴリズムが完全に無効になります。これは、multicol や LaTeX の組み込み \twocolumn マクロなどの外部パッケージを使用してページを構築する場合に便利です。たとえば、次のコードは \twocolumn を使用する歌詞本に適した環境を設定します。

しかし、実際には、曲は最初のページに配置され、2 番目の列は完全に空白で、すべてのテキストが新しいページに移動されています。

ここに画像の説明を入力してください

これが私の 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}

関連情報