我正在使用 songs 包在 latex 中编写带有和弦的歌本。虽然包很不错,但我不喜欢默认主题。
这是使用最小工作示例 (MWE) 创建的
\documentclass[a4paper, 14pt, twoside, onecolumn]{memoir}
\usepackage[bookmarks]{hyperref}
\usepackage[chorded]{songs}
% \includeonlysongs{2}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\textwidth}{6.5in}
\setlength{\topmargin}{0in}
\setlength{\topskip}{0in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\setlength{\textheight}{9.1in}
\settowidth{\versenumwidth}{1.\ }
\pagestyle{empty}
\newindex{titleidx}{cbtitle}
\newauthorindex{authidx}{cbauth}
\newscripindex{scripidx}{cbscrip}
\begin{document}
\showindex{Complete Index of Songs}{titleidx}
\songsection{Worship Songs}
\begin{songs}{titleidx,authidx,scripidx}
\beginsong{Doxology}[
by={Louis Bourgeois and Thomas Ken},
sr={Revelation 5:13},
cr={Public domain.},
index={Praise God, from Whom all blessings flow}]
\beginverse*
\[G]Praise God, \[D]from \[Em]Whom \[Bm]all \[Em]bless\[D]ings \[G]flow;
\[G]Praise Him, all \[D]crea\[Em]tures \[C]here \[G]be\[D]low;
\[Em]Praise \[D]Him \[G]a\[D]bove, \[G]ye \[C]heav'n\[D]ly \[Em]host;
\[G]Praise Fa\[Em]ther, \[D]Son, \[Am]and \[G/B G/C]Ho\[D]ly \[G]Ghost.
\[C]A\[G]men.
\endverse
\endsong
\beginsong{And Can It Be}[
by={Charles Wesley and Thomas Campbell},
sr={Romans 8:1; Philippians 2:6-8; 1 Thessalonians 5:9},
cr={Public domain.},
index={Amazing love! How can it be}]
\beginverse
\[F]And \[F/A]can \[(C)]it \[F]be that \[Gm/B&]I \[C7]should \[F]gain
An \[B&]in\[C]terest \[F/A]in \[C/E]the \[C/G]Sav\[G7]ior's \[C]blood?
Died He \[F/C]for me, \[C] who \[F/A]caused \[F]His \[C]pain?
For \[B&]me, who \[F/A]Him \[(Gm/B&)]to \[F/C]death \[C7]pur\[F]sued?
A\[C]mazing \[F/A]love! \[C/G]How \[B&]can \[G7/B]it \[C]be
That \[F]Thou, my \[B&]God, shouldst \[C C7]die for \[F]me?
\endverse
\beginchorus
Amazing \[C]love! How \[C7/E]can it \[F]be
That \[B&]Thou, my \[F/A]God, \[Gm/B&]shouldst \[F/C]die \[C7]for \[F]me?
\endchorus
\endsong
\beginscripture{Romans 8:3-4}
For what the law was powerless to do in that it was weakened by the sinful nature, God did by sending his own Son in the likeness of sinful man to be a sin offering. And so he condemned sin in sinful man, in order that the righteous requirements of the law might be fully met in us, who do not live according to the sinful nature but according to the Spirit.
\endscripture
\end{songs}
\showindex{Index of Authors and Composers}{authidx}
\showindex{Index of Scripture}{scripidx}
\end{document}
我如何更改和弦的字体?现在它对我来说太大了
如何让整个文档成为一列?我尝试通过 memoir 包定义 onecolumn,但没有做任何事情
如何更改歌曲标题的模板?
所有这些格式问题。我对 Latex 有一些经验。但不是通过重新定义命令。
另一方面,还有另一个 CTAN 包:leadsheets,据称更容易定制。但我们能否像为 songs 包一样,轻松地按作者创建索引、按歌曲的其他标签(如本例中的经文参考)创建索引、按歌曲第一节创建索引?
谢谢
答案1
这手动的软件包songs
提供了此信息。第 11.2 节定义了各种格式化命令,例如\printchord
(和弦外观)和\stitlefont
(歌曲标题)以及许多其他命令。该手册还提供了如何使用/重新定义这些命令的示例。第 11.5 节介绍了这些列,特别是命令\songcolumns
。
MWE,在之前使用格式化命令\begin{document}
:
\documentclass[a4paper, 14pt, twoside, onecolumn]{memoir}
\usepackage[bookmarks]{hyperref}
\usepackage[chorded]{songs}
\usepackage{xcolor}
% \includeonlysongs{2}
\setlength{\oddsidemargin}{0in}
\setlength{\evensidemargin}{0in}
\setlength{\textwidth}{6.5in}
\setlength{\topmargin}{0in}
\setlength{\topskip}{0in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\setlength{\textheight}{9.1in}
\settowidth{\versenumwidth}{1.\ }
\pagestyle{empty}
\newindex{titleidx}{cbtitle}
\newauthorindex{authidx}{cbauth}
\newscripindex{scripidx}{cbscrip}
\songcolumns{1}
\renewcommand{\printchord}[1]{\sffamily\small#1}
\renewcommand{\stitlefont}{
\rmfamily\Large\bfseries\color{blue}\baselineskip=20pt\lineskiplimit=0pt
}
\begin{document}
\showindex{Complete Index of Songs}{titleidx}
\songsection{Worship Songs}
\begin{songs}{titleidx,authidx,scripidx}
\beginsong{Doxology}[
by={Louis Bourgeois and Thomas Ken},
sr={Revelation 5:13},
cr={Public domain.},
index={Praise God, from Whom all blessings flow}]
\beginverse*
\[G]Praise God, \[D]from \[Em]Whom \[Bm]all \[Em]bless\[D]ings \[G]flow;
\[G]Praise Him, all \[D]crea\[Em]tures \[C]here \[G]be\[D]low;
\[Em]Praise \[D]Him \[G]a\[D]bove, \[G]ye \[C]heav'n\[D]ly \[Em]host;
\[G]Praise Fa\[Em]ther, \[D]Son, \[Am]and \[G/B G/C]Ho\[D]ly \[G]Ghost.
\[C]A\[G]men.
\endverse
\endsong
\beginsong{And Can It Be}[
by={Charles Wesley and Thomas Campbell},
sr={Romans 8:1; Philippians 2:6-8; 1 Thessalonians 5:9},
cr={Public domain.},
index={Amazing love! How can it be}]
\beginverse
\[F]And \[F/A]can \[(C)]it \[F]be that \[Gm/B&]I \[C7]should \[F]gain
An \[B&]in\[C]terest \[F/A]in \[C/E]the \[C/G]Sav\[G7]ior's \[C]blood?
Died He \[F/C]for me, \[C] who \[F/A]caused \[F]His \[C]pain?
For \[B&]me, who \[F/A]Him \[(Gm/B&)]to \[F/C]death \[C7]pur\[F]sued?
A\[C]mazing \[F/A]love! \[C/G]How \[B&]can \[G7/B]it \[C]be
That \[F]Thou, my \[B&]God, shouldst \[C C7]die for \[F]me?
\endverse
\beginchorus
Amazing \[C]love! How \[C7/E]can it \[F]be
That \[B&]Thou, my \[F/A]God, \[Gm/B&]shouldst \[F/C]die \[C7]for \[F]me?
\endchorus
\endsong
\beginscripture{Romans 8:3-4}
For what the law was powerless to do in that it was weakened by the sinful nature, God did by sending his own Son in the likeness of sinful man to be a sin offering. And so he condemned sin in sinful man, in order that the righteous requirements of the law might be fully met in us, who do not live according to the sinful nature but according to the Spirit.
\endscripture
\end{songs}
\showindex{Index of Authors and Composers}{authidx}
\showindex{Index of Scripture}{scripidx}
\end{document}
结果: