总结

总结

我用来imakeidx创建跨越多页的长索引。如果(子)子条目扩展到新页面,我希望主条目(加上子条目)在页面顶部重复。因此,在接下来的 MWE 中,我希望第三页再次以“测试、测试、一、二、三、四”开头,然后是“二”挂在其下,然后才是其余的子条目。我该如何实现这一点?

梅威瑟:

\documentclass[10pt, paper=156mm:235mm, BCOR=12mm, headings=optiontotocandhead, headings=openany]{scrbook}

\usepackage[splitindex]{imakeidx}
\makeindex[options= -s index_style2.ist, intoc,name=A,title=\mbox{Appendix A},columns=1]

\makeatletter
\newcommand{\Dotfill}{\leavevmode \leaders \hb@xt@ 0.75em{\hss .\hss }\hfill \kern \z@}
\makeatother

\begin{document}
\frontmatter
\mainmatter
\chapter{The First Chapter} 
\index[A]{Testing, testing, one, two, three, four!1@One!A}\index[A]{Testing, testing, one, two, three, four!1@One!B}\index[A]{Testing, testing, one, two, three, four!1@One!C}\index[A]{Testing, testing, one, two, three, four!1@One!D}\index[A]{Testing, testing, one, two, three, four!1@One!E}\index[A]{Testing, testing, one, two, three, four!1@One!F}\index[A]{Testing, testing, one, two, three, four!1@One!G}\index[A]{Testing, testing, one, two, three, four!1@One!H}\index[A]{Testing, testing, one, two, three, four!1@One!I}\index[A]{Testing, testing, one, two, three, four!1@One!J}\index[A]{Testing, testing, one, two, three, four!1@One!K}\index[A]{Testing, testing, one, two, three, four!1@One!L}\index[A]{Testing, testing, one, two, three, four!1@One!M}\index[A]{Testing, testing, one, two, three, four!1@One!N}\index[A]{Testing, testing, one, two, three, four!1@One!O}\index[A]{Testing, testing, one, two, three, four!1@One!P}\index[A]{Testing, testing, one, two, three, four!1@One!Q}\index[A]{Testing, testing, one, two, three, four!1@One!R}\index[A]{Testing, testing, one, two, three, four!1@One!S}\index[A]{Testing, testing, one, two, three, four!1@One!T}\index[A]{Testing, testing, one, two, three, four!1@One!U}\index[A]{Testing, testing, one, two, three, four!1@One!V}\index[A]{Testing, testing, one, two, three, four!1@One!X}\index[A]{Testing, testing, one, two, three, four!1@One!Y}\index[A]{Testing, testing, one, two, three, four!1@One!Z}\index[A]{Testing, testing, one, two, three, four!2@Two!A}\index[A]{Testing, testing, one, two, three, four!2@Two!B}\index[A]{Testing, testing, one, two, three, four!2@Two!C}\index[A]{Testing, testing, one, two, three, four!2@Two!D}\index[A]{Testing, testing, one, two, three, four!2@Two!E}\index[A]{Testing, testing, one, two, three, four!2@Two!F}\index[A]{Testing, testing, one, two, three, four!2@Two!G}\index[A]{Testing, testing, one, two, three, four!2@Two!H}\index[A]{Testing, testing, one, two, three, four!2@Two!I}\index[A]{Testing, testing, one, two, three, four!2@Two!J}\index[A]{Testing, testing, one, two, three, four!2@Two!K}\index[A]{Testing, testing, one, two, three, four!2@Two!L}\index[A]{Testing, testing, one, two, three, four!2@Two!M}\index[A]{Testing, testing, one, two, three, four!2@Two!N}\index[A]{Testing, testing, one, two, three, four!2@Two!O}\index[A]{Testing, testing, one, two, three, four!2@Two!P}\index[A]{Testing, testing, one, two, three, four!2@Two!Q}\index[A]{Testing, testing, one, two, three, four!2@Two!R}\index[A]{Testing, testing, one, two, three, four!2@Two!S}\index[A]{Testing, testing, one, two, three, four!2@Two!T}\index[A]{Testing, testing, one, two, three, four!2@Two!U}\index[A]{Testing, testing, one, two, three, four!2@Two!V}\index[A]{Testing, testing, one, two, three, four!2@Two!X}\index[A]{Testing, testing, one, two, three, four!2@Two!Y}\index[A]{Testing, testing, one, two, three, four!2@Two!Z}\index[A]{Testing, testing, one, two, three, four!3@Three!A}\index[A]{Testing, testing, one, two, three, four!3@Three!B}\index[A]{Testing, testing, one, two, three, four!3@Three!C}\index[A]{Testing, testing, one, two, three, four!3@Three!D}\index[A]{Testing, testing, one, two, three, four!3@Three!E}\index[A]{Testing, testing, one, two, three, four!3@Three!F}\index[A]{Testing, testing, one, two, three, four!3@Three!G}\index[A]{Testing, testing, one, two, three, four!3@Three!H}\index[A]{Testing, testing, one, two, three, four!3@Three!I}\index[A]{Testing, testing, one, two, three, four!3@Three!J}\index[A]{Testing, testing, one, two, three, four!3@Three!K}\index[A]{Testing, testing, one, two, three, four!3@Three!L}\index[A]{Testing, testing, one, two, three, four!3@Three!M}\index[A]{Testing, testing, one, two, three, four!3@Three!N}\index[A]{Testing, testing, one, two, three, four!3@Three!O}\index[A]{Testing, testing, one, two, three, four!3@Three!P}\index[A]{Testing, testing, one, two, three, four!3@Three!Q}\index[A]{Testing, testing, one, two, three, four!3@Three!R}\index[A]{Testing, testing, one, two, three, four!3@Three!S}\index[A]{Testing, testing, one, two, three, four!3@Three!T}\index[A]{Testing, testing, one, two, three, four!3@Three!U}\index[A]{Testing, testing, one, two, three, four!3@Three!V}\index[A]{Testing, testing, one, two, three, four!3@Three!X}\index[A]{Testing, testing, one, two, three, four!3@Three!Y}\index[A]{Testing, testing, one, two, three, four!3@Three!Z} \index[A]{Testing, testing, one, two, three, four!4@Four!A}\index[A]{Testing, testing, one, two, three, four!4@Four!B}\index[A]{Testing, testing, one, two, three, four!4@Four!C}\index[A]{Testing, testing, one, two, three, four!4@Four!D}\index[A]{Testing, testing, one, two, three, four!4@Four!E}\index[A]{Testing, testing, one, two, three, four!4@Four!F}\index[A]{Testing, testing, one, two, three, four!4@Four!G}\index[A]{Testing, testing, one, two, three, four!4@Four!H}\index[A]{Testing, testing, one, two, three, four!4@Four!I}\index[A]{Testing, testing, one, two, three, four!4@Four!J}\index[A]{Testing, testing, one, two, three, four!4@Four!K}\index[A]{Testing, testing, one, two, three, four!4@Four!L}\index[A]{Testing, testing, one, two, three, four!4@Four!M}\index[A]{Testing, testing, one, two, three, four!4@Four!N}\index[A]{Testing, testing, one, two, three, four!4@Four!O}\index[A]{Testing, testing, one, two, three, four!4@Four!P}\index[A]{Testing, testing, one, two, three, four!4@Four!Q}\index[A]{Testing, testing, one, two, three, four!4@Four!R}\index[A]{Testing, testing, one, two, three, four!4@Four!S}\index[A]{Testing, testing, one, two, three, four!4@Four!T}\index[A]{Testing, testing, one, two, three, four!4@Four!U}\index[A]{Testing, testing, one, two, three, four!4@Four!V}\index[A]{Testing, testing, one, two, three, four!4@Four!X}\index[A]{Testing, testing, one, two, three, four!4@Four!Y}\index[A]{Testing, testing, one, two, three, four!4@Four!Z}

\backmatter
\indexprologue{\small Description of Appendix A goes here.}

\printindex[A]

\end{document}

使用index_styel2.ist:

item_0 "\n \\item \\small "

delim_0 " \\Dotfill "
delim_1 " \\Dotfill "
delim_2 " \\Dotfill "

我发现问题,但当我尝试实施我在那里找到的解决方案时,它会在.ind输出文件中产生错误,并且神秘地“它”和“它...”出现在新页面上方,而不是索引条目。这就是在 Overleaf 中使用以下内容时发生的情况(使用相同的.ist文件):

\documentclass[10pt, paper=156mm:235mm, BCOR=12mm, headings=optiontotocandhead, headings=openany]{scrbook}


\usepackage[splitindex]{imakeidx}
\makeindex[options= -s index_style2.ist, intoc,name=A,title=\mbox{Appendix A},columns=1]

\makeatletter
\newcommand{\Dotfill}{\leavevmode \leaders \hb@xt@ 0.75em{\hss .\hss }\hfill \kern \z@}
\makeatother

\usepackage{repeatindex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.mst}
item_0 "\n  \\item ["
delim_0 "], "
\end{filecontents}


\begin{document}
\frontmatter
\mainmatter
\chapter{The First Chapter} 
\index[A]{Testing, testing, one, two, three, four!1@One!A}\index[A]{Testing, testing, one, two, three, four!1@One!B}\index[A]{Testing, testing, one, two, three, four!1@One!C}\index[A]{Testing, testing, one, two, three, four!1@One!D}\index[A]{Testing, testing, one, two, three, four!1@One!E}\index[A]{Testing, testing, one, two, three, four!1@One!F}\index[A]{Testing, testing, one, two, three, four!1@One!G}\index[A]{Testing, testing, one, two, three, four!1@One!H}\index[A]{Testing, testing, one, two, three, four!1@One!I}\index[A]{Testing, testing, one, two, three, four!1@One!J}\index[A]{Testing, testing, one, two, three, four!1@One!K}\index[A]{Testing, testing, one, two, three, four!1@One!L}\index[A]{Testing, testing, one, two, three, four!1@One!M}\index[A]{Testing, testing, one, two, three, four!1@One!N}\index[A]{Testing, testing, one, two, three, four!1@One!O}\index[A]{Testing, testing, one, two, three, four!1@One!P}\index[A]{Testing, testing, one, two, three, four!1@One!Q}\index[A]{Testing, testing, one, two, three, four!1@One!R}\index[A]{Testing, testing, one, two, three, four!1@One!S}\index[A]{Testing, testing, one, two, three, four!1@One!T}\index[A]{Testing, testing, one, two, three, four!1@One!U}\index[A]{Testing, testing, one, two, three, four!1@One!V}\index[A]{Testing, testing, one, two, three, four!1@One!X}\index[A]{Testing, testing, one, two, three, four!1@One!Y}\index[A]{Testing, testing, one, two, three, four!1@One!Z}\index[A]{Testing, testing, one, two, three, four!2@Two!A}\index[A]{Testing, testing, one, two, three, four!2@Two!B}\index[A]{Testing, testing, one, two, three, four!2@Two!C}\index[A]{Testing, testing, one, two, three, four!2@Two!D}\index[A]{Testing, testing, one, two, three, four!2@Two!E}\index[A]{Testing, testing, one, two, three, four!2@Two!F}\index[A]{Testing, testing, one, two, three, four!2@Two!G}\index[A]{Testing, testing, one, two, three, four!2@Two!H}\index[A]{Testing, testing, one, two, three, four!2@Two!I}\index[A]{Testing, testing, one, two, three, four!2@Two!J}\index[A]{Testing, testing, one, two, three, four!2@Two!K}\index[A]{Testing, testing, one, two, three, four!2@Two!L}\index[A]{Testing, testing, one, two, three, four!2@Two!M}\index[A]{Testing, testing, one, two, three, four!2@Two!N}\index[A]{Testing, testing, one, two, three, four!2@Two!O}\index[A]{Testing, testing, one, two, three, four!2@Two!P}\index[A]{Testing, testing, one, two, three, four!2@Two!Q}\index[A]{Testing, testing, one, two, three, four!2@Two!R}\index[A]{Testing, testing, one, two, three, four!2@Two!S}\index[A]{Testing, testing, one, two, three, four!2@Two!T}\index[A]{Testing, testing, one, two, three, four!2@Two!U}\index[A]{Testing, testing, one, two, three, four!2@Two!V}\index[A]{Testing, testing, one, two, three, four!2@Two!X}\index[A]{Testing, testing, one, two, three, four!2@Two!Y}\index[A]{Testing, testing, one, two, three, four!2@Two!Z}\index[A]{Testing, testing, one, two, three, four!3@Three!A}\index[A]{Testing, testing, one, two, three, four!3@Three!B}\index[A]{Testing, testing, one, two, three, four!3@Three!C}\index[A]{Testing, testing, one, two, three, four!3@Three!D}\index[A]{Testing, testing, one, two, three, four!3@Three!E}\index[A]{Testing, testing, one, two, three, four!3@Three!F}\index[A]{Testing, testing, one, two, three, four!3@Three!G}\index[A]{Testing, testing, one, two, three, four!3@Three!H}\index[A]{Testing, testing, one, two, three, four!3@Three!I}\index[A]{Testing, testing, one, two, three, four!3@Three!J}\index[A]{Testing, testing, one, two, three, four!3@Three!K}\index[A]{Testing, testing, one, two, three, four!3@Three!L}\index[A]{Testing, testing, one, two, three, four!3@Three!M}\index[A]{Testing, testing, one, two, three, four!3@Three!N}\index[A]{Testing, testing, one, two, three, four!3@Three!O}\index[A]{Testing, testing, one, two, three, four!3@Three!P}\index[A]{Testing, testing, one, two, three, four!3@Three!Q}\index[A]{Testing, testing, one, two, three, four!3@Three!R}\index[A]{Testing, testing, one, two, three, four!3@Three!S}\index[A]{Testing, testing, one, two, three, four!3@Three!T}\index[A]{Testing, testing, one, two, three, four!3@Three!U}\index[A]{Testing, testing, one, two, three, four!3@Three!V}\index[A]{Testing, testing, one, two, three, four!3@Three!X}\index[A]{Testing, testing, one, two, three, four!3@Three!Y}\index[A]{Testing, testing, one, two, three, four!3@Three!Z} \index[A]{Testing, testing, one, two, three, four!4@Four!A}\index[A]{Testing, testing, one, two, three, four!4@Four!B}\index[A]{Testing, testing, one, two, three, four!4@Four!C}\index[A]{Testing, testing, one, two, three, four!4@Four!D}\index[A]{Testing, testing, one, two, three, four!4@Four!E}\index[A]{Testing, testing, one, two, three, four!4@Four!F}\index[A]{Testing, testing, one, two, three, four!4@Four!G}\index[A]{Testing, testing, one, two, three, four!4@Four!H}\index[A]{Testing, testing, one, two, three, four!4@Four!I}\index[A]{Testing, testing, one, two, three, four!4@Four!J}\index[A]{Testing, testing, one, two, three, four!4@Four!K}\index[A]{Testing, testing, one, two, three, four!4@Four!L}\index[A]{Testing, testing, one, two, three, four!4@Four!M}\index[A]{Testing, testing, one, two, three, four!4@Four!N}\index[A]{Testing, testing, one, two, three, four!4@Four!O}\index[A]{Testing, testing, one, two, three, four!4@Four!P}\index[A]{Testing, testing, one, two, three, four!4@Four!Q}\index[A]{Testing, testing, one, two, three, four!4@Four!R}\index[A]{Testing, testing, one, two, three, four!4@Four!S}\index[A]{Testing, testing, one, two, three, four!4@Four!T}\index[A]{Testing, testing, one, two, three, four!4@Four!U}\index[A]{Testing, testing, one, two, three, four!4@Four!V}\index[A]{Testing, testing, one, two, three, four!4@Four!X}\index[A]{Testing, testing, one, two, three, four!4@Four!Y}\index[A]{Testing, testing, one, two, three, four!4@Four!Z}

\backmatter
\indexprologue{\small Description of Appendix A goes here.}

\printindex[A]

\end{document}

答案1

除了上述错误之外,上述错误it...来自斜体形状。根据我的想法,我看到以下错误

在此处输入图片描述

这意味着\mathit正在使用并导致错误,因为它需要数学模式。

深入研究repeatindex深入源代码,你会发现

\renewcommand{\subsubitem}{%
    \orig@subsubitem
    \expandafter\hhafterpage\expandafter{\expandafter\par\expandafter{%
        \expandafter\expandafter\itshape\@@entry\dots}}%
    \xdef\@@entry{\@entry}%
  }

负责复制顶级索引项。

该软件包创建于 2001 年,从那时起,LaTeX 源代码中的许多东西都发生了变化,包括\itshape。如果你运行,\show\itshape你会看到

> \itshape=\protected macro:
->\not@math@alphabet \itshape \mathit \fontshape \itdefault \selectfont .
l.75 \show\itshape

因此它被定义为受保护的宏,基本上如果你查找 LaTeX 源base/ltfssaxes.dtx‎,你会发现定义

\protected\def\itshape
     {\not@math@alphabet\itshape\mathit
      \fontshape\itdefault\selectfont}%

这样你就有两个选择:

  1. 修改repeatindex包代码并直接或通过之前\protect添加\itshapeetoolbox\patchcmd

  2. 通过添加其定义或首先声明该命令是强大的,\itshape在序言中改变它本身。\protect

    \makeatletter
    \protected\def\itshape
         {\protect\not@math@alphabet\itshape\mathit
          \fontshape\itdefault\selectfont}%
    \makeatother
    
    \makeatletter
    \DeclareRobustCommand\itshape
            {\not@math@alphabet\itshape\mathit
             \fontshape\itdefault\selectfont}
    \makeatother
    

    任何代码片段都可以完成这个工作。

话虽如此,值得一提的是,repeatindex需要特殊的语法才能正常工作

您必须以特殊格式生成 .ind 文件,并将 的条目\item 括在其中[...](例如 \item [Main Item A], 1, 3, 6 :)。

正如我所见,你正试图通过

\usepackage{filecontents}

\begin{filecontents}{\jobname.mst}
item_0 "\n  \\item ["
delim_0 "], "
\end{filecontents}

但由于您已指定index_style2.ist为样式文件,因此上述代码完全不起作用。您最好修改样式文件index_style2.ist本身,包括这些更改。

总结

repeatindex自 2001 年以来一直没有更新,一些基本命令已经更改,即\itshape。在前面添加以下代码\printindex[A]即可修复

\makeatletter
\DeclareRobustCommand\itshape
        {\not@math@alphabet\itshape\mathit
         \fontshape\itdefault\selectfont}
\makeatother

还要对您的程序包进行一些更改,index_style2.ist以使该程序包正常工作:

item_0 "\n \\small\\item ["
item_x1 "]\n    \\subitem "

delim_0 "] \\Dotfill "
delim_1 " \\Dotfill "
delim_2 " \\Dotfill "

完整 MWE:

\documentclass[10pt, paper=156mm:235mm, BCOR=12mm, headings=optiontotocandhead, headings=openany]{scrbook}

\usepackage[splitindex]{imakeidx}
\makeindex[options= -s index_style2.ist, intoc,name=A,title=\mbox{Appendix A},columns=1]

\makeatletter
\newcommand{\Dotfill}{\leavevmode \leaders \hb@xt@ 0.75em{\hss .\hss }\hfill \kern \z@}
\makeatother

\usepackage{repeatindex}

\begin{document}
\frontmatter
\mainmatter
\chapter{The First Chapter} 
\index[A]{Testing, testing, one, two, three, four!1@One!A}\index[A]{Testing, testing, one, two, three, four!1@One!B}\index[A]{Testing, testing, one, two, three, four!1@One!C}\index[A]{Testing, testing, one, two, three, four!1@One!D}\index[A]{Testing, testing, one, two, three, four!1@One!E}\index[A]{Testing, testing, one, two, three, four!1@One!F}\index[A]{Testing, testing, one, two, three, four!1@One!G}\index[A]{Testing, testing, one, two, three, four!1@One!H}\index[A]{Testing, testing, one, two, three, four!1@One!I}\index[A]{Testing, testing, one, two, three, four!1@One!J}\index[A]{Testing, testing, one, two, three, four!1@One!K}\index[A]{Testing, testing, one, two, three, four!1@One!L}\index[A]{Testing, testing, one, two, three, four!1@One!M}\index[A]{Testing, testing, one, two, three, four!1@One!N}\index[A]{Testing, testing, one, two, three, four!1@One!O}\index[A]{Testing, testing, one, two, three, four!1@One!P}\index[A]{Testing, testing, one, two, three, four!1@One!Q}\index[A]{Testing, testing, one, two, three, four!1@One!R}\index[A]{Testing, testing, one, two, three, four!1@One!S}\index[A]{Testing, testing, one, two, three, four!1@One!T}\index[A]{Testing, testing, one, two, three, four!1@One!U}\index[A]{Testing, testing, one, two, three, four!1@One!V}\index[A]{Testing, testing, one, two, three, four!1@One!X}\index[A]{Testing, testing, one, two, three, four!1@One!Y}\index[A]{Testing, testing, one, two, three, four!1@One!Z}\index[A]{Testing, testing, one, two, three, four!2@Two!A}\index[A]{Testing, testing, one, two, three, four!2@Two!B}\index[A]{Testing, testing, one, two, three, four!2@Two!C}\index[A]{Testing, testing, one, two, three, four!2@Two!D}\index[A]{Testing, testing, one, two, three, four!2@Two!E}\index[A]{Testing, testing, one, two, three, four!2@Two!F}\index[A]{Testing, testing, one, two, three, four!2@Two!G}\index[A]{Testing, testing, one, two, three, four!2@Two!H}\index[A]{Testing, testing, one, two, three, four!2@Two!I}\index[A]{Testing, testing, one, two, three, four!2@Two!J}\index[A]{Testing, testing, one, two, three, four!2@Two!K}\index[A]{Testing, testing, one, two, three, four!2@Two!L}\index[A]{Testing, testing, one, two, three, four!2@Two!M}\index[A]{Testing, testing, one, two, three, four!2@Two!N}\index[A]{Testing, testing, one, two, three, four!2@Two!O}\index[A]{Testing, testing, one, two, three, four!2@Two!P}\index[A]{Testing, testing, one, two, three, four!2@Two!Q}\index[A]{Testing, testing, one, two, three, four!2@Two!R}\index[A]{Testing, testing, one, two, three, four!2@Two!S}\index[A]{Testing, testing, one, two, three, four!2@Two!T}\index[A]{Testing, testing, one, two, three, four!2@Two!U}\index[A]{Testing, testing, one, two, three, four!2@Two!V}\index[A]{Testing, testing, one, two, three, four!2@Two!X}\index[A]{Testing, testing, one, two, three, four!2@Two!Y}\index[A]{Testing, testing, one, two, three, four!2@Two!Z}\index[A]{Testing, testing, one, two, three, four!3@Three!A}\index[A]{Testing, testing, one, two, three, four!3@Three!B}\index[A]{Testing, testing, one, two, three, four!3@Three!C}\index[A]{Testing, testing, one, two, three, four!3@Three!D}\index[A]{Testing, testing, one, two, three, four!3@Three!E}\index[A]{Testing, testing, one, two, three, four!3@Three!F}\index[A]{Testing, testing, one, two, three, four!3@Three!G}\index[A]{Testing, testing, one, two, three, four!3@Three!H}\index[A]{Testing, testing, one, two, three, four!3@Three!I}\index[A]{Testing, testing, one, two, three, four!3@Three!J}\index[A]{Testing, testing, one, two, three, four!3@Three!K}\index[A]{Testing, testing, one, two, three, four!3@Three!L}\index[A]{Testing, testing, one, two, three, four!3@Three!M}\index[A]{Testing, testing, one, two, three, four!3@Three!N}\index[A]{Testing, testing, one, two, three, four!3@Three!O}\index[A]{Testing, testing, one, two, three, four!3@Three!P}\index[A]{Testing, testing, one, two, three, four!3@Three!Q}\index[A]{Testing, testing, one, two, three, four!3@Three!R}\index[A]{Testing, testing, one, two, three, four!3@Three!S}\index[A]{Testing, testing, one, two, three, four!3@Three!T}\index[A]{Testing, testing, one, two, three, four!3@Three!U}\index[A]{Testing, testing, one, two, three, four!3@Three!V}\index[A]{Testing, testing, one, two, three, four!3@Three!X}\index[A]{Testing, testing, one, two, three, four!3@Three!Y}\index[A]{Testing, testing, one, two, three, four!3@Three!Z} \index[A]{Testing, testing, one, two, three, four!4@Four!A}\index[A]{Testing, testing, one, two, three, four!4@Four!B}\index[A]{Testing, testing, one, two, three, four!4@Four!C}\index[A]{Testing, testing, one, two, three, four!4@Four!D}\index[A]{Testing, testing, one, two, three, four!4@Four!E}\index[A]{Testing, testing, one, two, three, four!4@Four!F}\index[A]{Testing, testing, one, two, three, four!4@Four!G}\index[A]{Testing, testing, one, two, three, four!4@Four!H}\index[A]{Testing, testing, one, two, three, four!4@Four!I}\index[A]{Testing, testing, one, two, three, four!4@Four!J}\index[A]{Testing, testing, one, two, three, four!4@Four!K}\index[A]{Testing, testing, one, two, three, four!4@Four!L}\index[A]{Testing, testing, one, two, three, four!4@Four!M}\index[A]{Testing, testing, one, two, three, four!4@Four!N}\index[A]{Testing, testing, one, two, three, four!4@Four!O}\index[A]{Testing, testing, one, two, three, four!4@Four!P}\index[A]{Testing, testing, one, two, three, four!4@Four!Q}\index[A]{Testing, testing, one, two, three, four!4@Four!R}\index[A]{Testing, testing, one, two, three, four!4@Four!S}\index[A]{Testing, testing, one, two, three, four!4@Four!T}\index[A]{Testing, testing, one, two, three, four!4@Four!U}\index[A]{Testing, testing, one, two, three, four!4@Four!V}\index[A]{Testing, testing, one, two, three, four!4@Four!X}\index[A]{Testing, testing, one, two, three, four!4@Four!Y}\index[A]{Testing, testing, one, two, three, four!4@Four!Z}

\backmatter
\indexprologue{\small Description of Appendix A goes here.}

\makeatletter
\DeclareRobustCommand\itshape
        {\not@math@alphabet\itshape\mathit
         \fontshape\itdefault\selectfont}
\makeatother
\printindex[A]

\end{document}

在此处输入图片描述

相关内容