Leadsheets 包中沒有「maj13」和弦

Leadsheets 包中沒有「maj13」和弦

所以我試著用 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}

在此輸入影像描述

相關內容