我想制作一个不区分大小写的图书索引,这样句子开头的单词将被索引为小写。我的尝试有点奏效,它们在索引中给出了小写项目,但在按字母顺序排列的内容中隐藏了一些东西,并且“One”和“one”的列表并不相同。以下是我尝试过但没有成功的方法:
\documentclass[11pt]{book}
\usepackage{textcase}
\usepackage{makeidx} \makeindex
\begin{document}
%This command is designed to display a word that is being indexed
\def\ix#1{#1 \index{\MakeLowercase{#1}}}
Indexing this sentence creates three different entries in the index:
"\ix{One} can have just \ix{one} copy of version \ix{ONE}."
\clearpage
% here is an alternative command
\def\ix#1{#1 \index{\lowercase{#1}}}
"\ix{One} can have just \ix{one} copy of version \ix{ONE}."
\printindex
\end{document}