在德国和斯堪的纳维亚半岛,通常使用 H 而不是 B(自然音)。但是,降 B 仍然写为 Bb 而不是 Hb。在软件包中可以这样做吗Songs
?
\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage[danish]{babel}
\usepackage[top=2cm, bottom=2cm, left=1cm, right=1cm]{geometry}
\usepackage[chorded]{songs} %change between chorded, lyric, slides, rawtext
\notenamesin{A}{B}{C}{D}{E}{F}{G}
\notenamesout{A}{H}{C}{D}{E}{F}{G}
\begin{document}
\begin{songs}{}
\beginsong{Test}[]
\beginverse
\[A]A, \[B&]Bb, \[B]H, \[C]C
\endverse
\endsong
\end{songs}
\end{document}
答案1
看起来该包允许您使用任何您选择的字母,即使这些字母最初没有定义为注释。因此,无需调整默认设置或使用 和 转换输入和输出\notenamesin
。\notenamesout
您可以直接输入您想要得到的内容并执行以下操作(故意添加了一些无意义的注释):
\documentclass{article}
\usepackage[latin1]{inputenc}
\usepackage[danish]{babel}
\usepackage[top=2cm, bottom=2cm, left=1cm, right=1cm]{geometry}
\usepackage[chorded]{songs} %change between chorded, lyric, slides, rawtext
\begin{document}
\begin{songs}{}
\beginsong{Test}[]
\beginverse
\[A]A, \[B&]Bb, \[H]H, \[C]C, \[B]B, \[H&]Hb, \[X&]X
\endverse
\endsong
\end{songs}
\end{document}
输出为:
答案2
当使用注释名称转换时,使用括号来抑制名称转换:\[{B}&]
。
或者,和弦名称可以采用任意文本或宏代码。
平均能量损失
\documentclass{article}
%\usepackage[latin1]{inputenc}
\usepackage[danish]{babel}
\usepackage[top=2cm, bottom=2cm, left=1cm, right=1cm]{geometry}
\usepackage[chorded]{songs} %change between chorded, lyric, slides, rawtext
\notenamesin{A}{B}{C}{D}{E}{F}{G}
\notenamesout{A}{H}{C}{D}{E}{F}{SOL}
\newcommand\Bflat{B\flt}
\begin{document}
\begin{songs}{}
\beginsong{Test}[]
\beginverse
\[A]A, \[\Bflat]{\Bflat macro}, \[B]B=H, \[C]C, \[G]G, \[B&]{\Bflat}, \[{B}&]\ \ \llap{\{B\}\&}
\endverse
\endsong
\end{songs}
\end{document}
答案3
让我这么说吧:
\notnames
作品- 放置和对齐存在一些奇怪的问题
首先,我删除了你的和弦,并使用了手册中的副本。为了让更改更加明显,我将 放在了两列中。
其次,当我尝试让事情运行的时候,我在 Texmaker 中得到了这个:
- 编译为
pdflatex
- 必须禁用
\inputenc
并babel
[chorded]
尝试通过禁用和并添加歌曲信息来影响对齐效果geometry
,但没有成功:文本设置得太靠左了
\documentclass{article}
%\usepackage[latin1]{inputenc}
%\usepackage[danish]{babel}
%\usepackage[top=2cm, bottom=2cm, left=2cm, right=1cm]{geometry}
\usepackage{songs}
%\usepackage[chorded]{songs} %change between chorded, lyric, slides, rawtext
\notenamesin{A}{B}{C}{D}{E}{F}{G}
\notenamesout{A}{H}{C}{D}{E}{F}{G}
\begin{document}
\songsection{Tests}
\begin{songs}{}
\beginsong{Test - with names}[by={me}]
\beginverse% from manual, for reference
\[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
\nextcol% <<<
\beginsong{Test2 - Standard}[by={me}]
\beginverse
\notenames
\[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
\end{songs}
\end{document}