我正在使用歌曲编写歌曲集的软件包。它还包括gtab
创建和弦图的命令。
我有以下代码:
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage[chorded,nomeasures,noshading]{songs}
\usepackage{setspace}
\usepackage{geometry}
\geometry{
a4paper,
textwidth=18cm,
left=15mm,
top=20mm
}
\begin{document}
\section{Title for comparison}
\gtab{}{1:X01234:004321} \gtab{}{2:X01234:004321} \gtab{}{3:X01234:004321} \gtab{}{4:X01234:004321}
\gtab{}{5:X01234:004321} \gtab{}{6:X01234:004321} \gtab{}{7:X01234:004321} \gtab{}{8:X01234:004321}
\gtab{}{9:X01234:004321} \gtab{}{10:X01234:004321} \gtab{}{11:X01234:004321} \gtab{}{12:X01234:004321}
\end{document}
它产生以下结果:
如您所见,生成的图表非常小(其中 11 个可以排成一行)。x
对于用户定义的图表,如何使它们放大几倍x > 1
?
答案1
您可以使用graphicx
s\scalebox
宏。以下示例将 的大小加倍\gtab
。
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage[chorded,nomeasures,noshading]{songs}
\usepackage{setspace}
\usepackage{geometry}
\geometry{
a4paper,
textwidth=18cm,
left=15mm,
top=20mm
}
\usepackage{graphicx}
\let\gtabBAK\gtab
\newcommand{\sgtab}[3]{\scalebox{#1}{\gtabBAK{#2}{#3}}}
\renewcommand*\gtab{\sgtab{2}}
\begin{document}
\section{Title for comparison}
\gtab{}{1:X01234:004321} \gtab{}{2:X01234:004321} \gtab{}{3:X01234:004321} \gtab{}{4:X01234:004321}
\gtab{}{5:X01234:004321} \gtab{}{6:X01234:004321} \gtab{}{7:X01234:004321} \gtab{}{8:X01234:004321}
\gtab{}{9:X01234:004321} \gtab{}{10:X01234:004321} \gtab{}{11:X01234:004321} \gtab{}{12:X01234:004321}
\end{document}