아래와 같이 ist를 만들어서 ind를 만들었습니다.
preamble "
\\begin{theindex}
\\newcounter{indexanchor}
\\def\\indexhead#1{\\stepcounter{indexanchor}\\pdfbookmark[1]{#1}{\\theindexanchor}\\textbf{#1}}
\\newcommand*{\\idxmark}[1]{#1\\markboth{\#1}{#1}}
\\def\\hindexhead#1{\\ifcase#1ㄱ\\or ㄴ\\or ㄷ\\or ㄹ\\or
ㅁ\\or ㅂ\\or ㅅ\\or ㅿ\\or ㅇ\\or ㆁ\\or ㅈ\\or ㅊ\\or ㅋ\\or
ㅌ\\or ㅍ\\or ㅎ\\or ㆆ\\or ㅏ\\or ㅑ\\or ㅓ\\or ㅕ\\or ㅗ\\or
ㅛ\\or ㅜ\\or ㅠ\\or ㅡ\\or ㅣ\\or ㆍ\\else 종성\\fi}
\n"
symhead_positive "기호"
numhead_positive "숫자"
headings_flag 1
group_skip "\n\n\\indexspace\n"
heading_prefix "\\indexhead{"
heading_suffix "}\\nopagebreak"
item_0 "\n\\item \\idxmark{"
delim_0 "}, "
item_1 "\n\\subitem "
이걸 만든 목적은 메므와 설명서에서처럼 찾아보기의 표제어가 면주에 들어가게 하는 것입니다.
전에 이걸 시험삼아 만들어 써 본 적이 있습니다.
첨부한 ind 파일을 갖고 아래와 같이 tex 문서를 만들었습니다.
\documentclass[twoside]{oblivoir}
\usepackage{fixltx2e}
\makeevenhead{ruled}{\rightmark}{}{\leftmark}
\makeoddhead{ruled}{\rightmark}{}{\leftmark}
\begin{document}
\pagestyle{ruled}
\printindex[HzGuide]
\end{document}
이걸 pdflatex으로 돌리면 아래 그림처럼 나옵니다.
하지만 xelatex으로 돌리면 아래처럼 메시지가 나옵니다.
<to be read again>
\xk@lastlast@char
l.157 \subitem
{\ttfamily SandolMyeonjo}, \hyperpage{24}
?
찾아보니 \xk@lastlast@char는 xetexko-space와 xetexko-josa 패키지에 정의되어 있더군요.
이런 문제가 생기는 까닭이 무엇일까요?