索引标题样式不同

索引标题样式不同

我有这样的文件(MWE):

\documentclass[10pt,twoside,final]{book}

\usepackage{xltxtra}
\usepackage{fontspec}

\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage[hang,flushmargin]{footmisc}
\usepackage[titles]{tocloft}
\usepackage[absolute]{textpos}

\usepackage[initsep=16pt,unbalanced=false]{idxlayout}
\usepackage{index}                             
\newindex{default}{idx}{ind}{First index}              

\begin{document}
        \chapter{First}

        Lorem ipsum \index{Lorem@ipsum} et dolorem.

        End of first chapter.

        \printindex

\end{document}

并且索引标题与其他不同。

我很清楚,我可以用某种方式来使用idxlayout(也许是自己的样式文件)。但我每次尝试时都失败了。

版本(Fedora 20):

xelatex -v
XeTeX 3.1415926-2.6-0.9999.3 (TeX Live 2014/dev)
kpathsea version 6.2.0dev
Copyright 2013 SIL International and Jonathan Kew.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 50.1.2; using 50.1.2
Compiled with zlib version 1.2.8; using 1.2.8
Compiled with FreeType2 version 2.5.0; using 2.5.0
Compiled with Graphite2 version 1.2.2; using 1.2.2
Compiled with HarfBuzz version 0.9.24; using 0.9.24
Compiled with fontconfig version 2.11.0; using 2.11.0
Compiled with libpng version 1.6.3; using 1.6.3
Compiled with poppler version 0.24.3

答案1

如文档 2.3 节所述idxlayoutindex必须在 之前加载包idxlayout。使用正确的加载顺序,索引标题将格式化为与其他(未编号)顶级章节标题(在您的 MWE:章节中)一样。

相关内容