
큰 PDF를 5권으로 나누어 여러 권의 작품을 쓰고 있는데, 색인이 첫 번째 권의 끝에 나타나야 하기 때문에 책 중간에 색인을 포함시켜야 합니다.
\printidex
색인을 원하는 위치에 하면 해당 지점까지 색인이 생성된 항목만 나타납니다. 나머지는 \indexentry
LaTeX에 의해 stdout에 기록되므로 색인에 포함되지 않습니다.
이에 대한 간단한 해결책이 있습니까?
MWE:
\documentclass[12pt]{article}
\usepackage{imakeidx}
\makeindex
\begin{document}
aaa\index{aaa}
\printindex
\clearpage % with this in, the index omits bbb; otherwise it's ok :(
bbb\index{bbb}
\end{document}