
歌詞を 2 列に印刷し、タイトルと曲の情報を 2 列にまたがって印刷する曲 (曲 #1) を作成したいと考えています。\pagepreludes コマンドでこれを行うことができます。ただし、奇妙なレイアウトがレンダリングされます。これが必要な出力です (画像の後のテスト コードは必要なレンダリングではありません)。1) 2 番目の詩を右列 (曲 #1) に上揃えし、1 番目の詩を左列に配置すること、2) 3 つの曲すべてを 1 ページにまとめることについて支援が必要です。
望ましい出力:
\documentclass[letterpaper, openany, final, twoside]{memoir}
\usepackage[lyric]{songs}
\begin{document}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit,
vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida
mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.
Donec vehicula augue eu neque\par
\vspace{24pt}
\begin{songs}{}
\songcolumns{2}
%% page preludes yields weird page layout
{\pagepreludes{
\beginsong{Song 1}[by={Beagles}, li={licensed by no one}]
\beginverse*
On a dark desert highway
Cool wind in my hair
Warm smell of colitas
\endverse
\beginverse*
Rising up through the air
Up ahead in the distance
I saw a shimmering light
My head grew heavy and my sight grew dim
I had to stop for the night
\endverse
% no effect, unless is under multicol enviroment
%\nextcol
\beginverse*
There she stood in the doorway
I heard the mission bell
And I was thinking to myself
"This could be Heaven or this could be Hell"
Then she lit up a candle
And she showed me the way \ldots
\endverse
\endsong
%this is the end of \pagepreludes - includes only song#1
}}%
\beginsong{Song 2}[by={Money M}, li={licensed by no two}]
\beginverse*
By the rivers of babylon, there we sat down
Ye-eah we wept, when we remembered zion.
\endverse
\beginverse*
By the rivers of babylon, there we sat down
Ye-eah we wept, when we remembered zion.
\endverse
\beginverse*
When the wicked
Carried us away in captivity
Required from us a song
Now how shall we sing the lord's song in a strange land
\endverse
\endsong
\beginsong{Song 3}[by={Beagles}]
\beginverse*
On a dark desert highway
Cool wind in my hair
Warm smell of colitas
Rising up through the air
Up ahead in the distance
I saw a shimmering light
My head grew heavy and my sight grew dim
I had to stop for the night
\endverse
\beginverse*
There she stood in the doorway
I heard the mission bell
And I was thinking to myself
"This could be Heaven or this could be Hell"
Then she lit up a candle
And she showed me the way \ldots
\endverse
\endsong
\end{songs}
\end{document}
答え1
パッケージはsongs
レイアウト (ページ ビルダー) と多くの相互作用があるように見えるため、(新しい) パッケージに切り替えることをお勧めしますleadsheet
。これは、「レイアウトに関する通常の Latex トリック」に準拠しているようです。主な変更点:
usepackage[full]{leadsheets}
% オプションについてはマニュアルを参照usepackage{multicol}
最初の曲を新聞のように分割したい場合は%- 簡単にするために、最初の曲を2回コピーしました
- タイトル等の設定についてはマニュアルを参照してください。
- 曲 1 を最初の段組みに配置する{2}
\hrule
私の目を楽しませるために- 曲 2 + 3 を 2 番目の段組みに配置する{2}
追伸:このパッケージは書籍を作成するためのものです。マニュアルの第 7 章を参照してください。
\documentclass[letterpaper, openany, final, twoside]{memoir}
\usepackage[full]{leadsheets} % <<< replace
\usepackage{multicol} % <<< for layout
\begin{document}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque
% \vspace{24pt}
\begin{multicols}{2}% NEW
\begin{song}{title={Song 1}}% <<< please consult the manual
% \beginsong{Song 1}[by={Beagles}, li={licensed by no one}]
\begin{verse}
On a dark desert highway
Cool wind in my hair
Warm smell of colitas
\end{verse}
\begin{verse}
Rising up through the air
Up ahead in the distance
I saw a shimmering light
My head grew heavy and my sight grew dim
I had to stop for the night
\end{verse}
% no effect, unless is under multicol enviroment
%\nextcol
\begin{verse}
There she stood in the doorway
I heard the mission bell
And I was thinking to myself
"This could be Heaven or this could be Hell"
Then she lit up a candle
And she showed me the way \ldots
\end{verse}
\end{song}
\end{multicols}
\hrule% <<< just to please MY eyes
\begin{multicols}{2}% <<< next layout section
\begin{song}{title={Song 2}}% <<< for simplicity, just copied
% \beginsong{Song 1}[by={Beagles}, li={licensed by no one}]
\begin{verse}
On a dark desert highway
Cool wind in my hair
Warm smell of colitas
\end{verse}
\begin{verse}
Rising up through the air
Up ahead in the distance
I saw a shimmering light
My head grew heavy and my sight grew dim
I had to stop for the night
\end{verse}
% no effect, unless is under multicol enviroment
%\nextcol
\begin{verse}
There she stood in the doorway
I heard the mission bell
And I was thinking to myself
"This could be Heaven or this could be Hell"
Then she lit up a candle
And she showed me the way \ldots
\end{verse}
\end{song}
\begin{song}{title={Song 3}}
% \beginsong{Song 1}[by={Beagles}, li={licensed by no one}]
\begin{verse}
On a dark desert highway
Cool wind in my hair
Warm smell of colitas
\end{verse}
\begin{verse}
Rising up through the air
Up ahead in the distance
I saw a shimmering light
My head grew heavy and my sight grew dim
I had to stop for the night
\end{verse}
% no effect, unless is under multicol enviroment
%\nextcol
\begin{verse}
There she stood in the doorway
I heard the mission bell
And I was thinking to myself
"This could be Heaven or this could be Hell"
Then she lit up a candle
And she showed me the way \ldots
\end{verse}
\end{song}
\end{multicols}% <<<
\end{document}