Пакет песен в среде 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}

Связанный контент