索引標題樣式不同

索引標題樣式不同

我有這樣的文件(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:章節中)一樣。

相關內容