我想让一首歌的歌词分两列打印,但标题和歌曲信息分两列打印(歌曲 #1)。命令 \pagepreludes 应该可以做到这一点。但是,它呈现的布局很奇怪。这是我想要的输出(图像后的测试代码没有呈现我想要的)我需要帮助 1) 将右列的第二节(歌曲 #1)与左列的第一节对齐,以及 2) 将所有三首歌曲放在一页中
期望输出:
\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
似乎与布局 (page-builder) 有很多交互,我建议切换到 (较新的) 包leadsheet
。它似乎更符合“常规 Latex-tricks wrt 布局”。主要变化:
usepackage[full]{leadsheets}
% 请参阅手册以了解选项usepackage{multicol}
% 就像你想把第一首歌像报纸一样分开一样- 为了简单起见,我只复制了第一首歌两次
- 请查阅手册以了解如何设置标题等。
- 将歌曲 1 放入第一个多栏{2}
- 放一个
\hrule
只是为了取悦我的眼睛 - 将歌曲 2 + 3 放入第二个多列{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}