
나는 노래가 포함된 결혼식 프로그램을 조판하려고 시도하고 있는데 이것이 보기에 더 좋을 것 같아서 두 개의 열로 표시하고 싶습니다. 그러나 나는 songs
패키지가 와 잘 작동하도록 하는 데 엄청난 시간을 보내고 있으며 multicol
패키지가 작동하도록 수정해야 할 사항에 대해 누군가가 아이디어가 있는지 궁금했습니다.
문서 에서 songs
:
http://songs.sourceforge.net/songsdoc/songs.html#sec11.5
열 수를 0으로 설정하면 페이지 작성 알고리즘이 완전히 비활성화됩니다. 이는 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}