Songpaket in der Multicol-Umgebung

Songpaket in der Multicol-Umgebung

Ich versuche, ein Hochzeitsprogramm mit Liedern zu setzen, und ich würde es gerne in zwei Spalten anzeigen lassen, da ich finde, dass das besser aussieht. Allerdings habe ich große Probleme damit, das songsPaket zum Laufen zu bringen multicol, und habe mich gefragt, ob jemand eine Idee hat, was ich ändern könnte, damit es funktioniert.

Aus der songsDokumentation:

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

Wenn Sie die Anzahl der Spalten auf Null setzen, wird der Seitenerstellungsalgorithmus vollständig deaktiviert. Dies kann nützlich sein, wenn Sie zum Erstellen von Seiten ein externes Paket wie Multicol oder das in LaTeX integrierte Makro \twocolumn verwenden möchten. Im Folgenden wird beispielsweise eine Umgebung eingerichtet, die für ein Lyrikbuch geeignet ist, das \twocolumn verwendet:

Was ich jedoch sehe, ist, dass das Lied auf der ersten Seite angeordnet ist und die zweite Spalte völlig leer ist – der gesamte Text wird auf eine neue Seite verschoben.

Bildbeschreibung hier eingeben

Hier ist mein 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}

Antwort1

Die Umgebung macht das \clearpageam Ende, Sie können das lokal deaktivieren (ich mache das \bigskiphier).

Bildbeschreibung hier eingeben

\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}

verwandte Informationen