
そこで、leadsheets パッケージを使って修士論文を仕上げようとしています。今のところすべてうまくいっていますが、"major13" コードを "major7" や "major9" のように上付き "maj13" として正しく表示できないようです。作業に使用しているテンプレートを使用して、最小限の例を作成してみました。おわかりのように、私は 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}