
我的MWE,
\documentclass[a4paper,11pt]{book}
\usepackage{makeidx}
\makeindex
\usepackage{filecontents}
\begin{filecontents}{\jobname.mst}
heading_prefix "{\\bfseries\\hfil "
heading_suffix "\\hfil}\\nopagebreak\n"
headings_flag 1
delim_0 "\\dotfill"
delim_1 "\\dotfill"
delim_2 "\\dotfill"
\end{filecontents}
\begin{document}
% No \/
%\index{final position}
%\index{fixed part}
%\index{flow chart}
%\index{feedback}
% With \/
\index{f\/inal position}
\index{f\/ixed part}
\index{f\/low chart}
\index{feedback}
\printindex
\end{document}
顯示,無\/; (真實排序)
顯示,用\/; (排序錯誤)
我沒有找到重複的另一個問題。那麼,有人知道如何修復它嗎?
答案1
makeindex 只能對字母條目進行排序,因此如果您需要將標記新增至排版表單(\/
此處),那麼您需要提供單獨的排序鍵,因此條目需要類似於:
\index{fixed part@f\/ixed part}
@
是預設字符,但如果您需要@
在實際字串中使用,您可以在 makeindex 樣式中指定任何其他分隔符。