CTeX-org / ctex-kit

Macro Packages and Scripts for Chinese TeX users
972 stars 124 forks source link

ctexheading breaks makeidx under koma-script documents #564

Open suxpert opened 3 years ago

suxpert commented 3 years ago

How to reproduce:

\documentclass{scrbook}
\usepackage[heading=true]{ctex}
\usepackage{makeidx}
\makeindex

\begin{document}
ctex\index{ctex}
\printindex
\end{document}

Then

latexmk -xelatex

will fail generating pdf file with error:

./main.ind:1: LaTeX Error: Float(s) lost. ... l.1 \begin{theindex}

Use ctexheading gives the same error.


It's OK if I use imakeidx, but it seems that koma-script works better with makeidx.

Environments: TeXlive in kali linux (wsl2), with ctex version 2.5.5, koma-script version 3.28.