所以我正尝试使用 leadsheets 包完成我的硕士论文。到目前为止,一切都运行良好,但我似乎无法让“major13”和弦正确显示为上标“maj13”,就像“major7”和“major9”的情况一样。我尝试使用我使用的模板创建一个最小示例。正如您可能看到的,我对 LaTex 或编程一点也不熟悉,但我希望这是一个小问题,即使是没有经验的初学者也可以快速解决。感谢您的帮助!
%% LyX 2.3.4 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,oneside,ngerman,a4paper,titlepage,12pt,numbered]{PhDThesisLyX}
\usepackage[T1]{fontenc}
\usepackage[latin9]{luainputenc}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{setspace}
\usepackage[authoryear]{natbib}
\onehalfspacing
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{leadsheets}
\useleadsheetslibraries{chords}
\makeatother
\usepackage{babel}
\begin{document}
\chapter{minimal example}
\writechord{Fmaj7} - is what I want; \writechord{Cmaj13} - is what I get
\end{document}
答案1
我认为你误解了输入样式。你还必须修改默认输出样式。
\documentclass{book}
\usepackage{leadsheets}
\useleadsheetslibraries{chords}
\setchords{
major=\textsuperscript{maj},
minor=\textsuperscript{min},
}
\begin{document}
\writechord{Fma7} - is what I want; \writechord{Cma13} - is what I get
\writechord{Fmi7} - is what I want; \writechord{Cmi13} - is what I get
\end{document}