Автор Гілка: Допоможіть розібрати повідомлення про помилку  (Прочитано 7117 раз)

Відсутній Harmyder

  • Новачок
  • *
  • дописів: 11
  • Карма: +0/-0
Що означає це повідомлення про помилку? Як його розібрати?
! Undefined control sequence.
<argument> \@indexfile
                      
\protected@write ...t \edef \reserved@a {\write #1
                                                  {#3}}\reserved@a \endgroup...

\@wrindex ...space {}вп.]\fi \fi \fi :\thepage }
                                                  \endgroup \@esphack
\\ukindex [#1]#2->\index [#1]
                             {\detokenize {#2}}
\indexas ...oup \indexasistrue \ukindex {#1{#2}[]}
                                                  \endgroup
l.5 \indexdivider{*9*ZZZZ}
Я тільки зрозумів, що воно зупинилось на п'ятому рядку.

Також хотілось би знати. що це indexasis. Ось визначення
\newif\ifindexasis  \global\indexasisfalse
Звідки indexasis береться взагалі?

Відсутній Harmyder

  • Новачок
  • *
  • дописів: 11
  • Карма: +0/-0
Наразі зрозуміло, що в цьому макросі незрозуміло, що таке @indexfile

\def\@wrindex#1{%
 \indexmargin{\fbox{\parbox[t]{1in}{#1}}}%
 \protected@write\@indexfile{}{%
   #1%
   \ifindexasis
   \else
     \ifinproblem[0\string\indextagspace{}зд.]%
     \else
       \ifinexercise[0\string\indextagspace{}вп.]\fi
     \fi
   \fi
   :\thepage
 }%
 \endgroup % close group started by \index
 \@esphack
}

Проблема виникла після того як я додав
\RequirePackage[xindy]{imakeidx}

Відсутній Harmyder

  • Новачок
  • *
  • дописів: 11
  • Карма: +0/-0
Ось мінімалістичний приклад, який видає помилку

\documentclass{book}
\usepackage[xindy]{imakeidx}
\makeindex

\makeatletter
\def\@wrindex#1{%
 \protected@write{\@indexfile}{}{%
   #1% some additional code goes here
   :\thepage
 }%
}
\makeatother

\begin{document}

\index{notepad}
\printindex

\end{document}

Цитата
   ! Undefined control sequence. <argument> \@indexfile
                        l.16 \index{
            notepad}


Відсутній yurchor

  • Видавець
  • *******
  • дописів: 3628
  • Карма: +2/-0
  • Grateful for our Iron Lung
    • Вікі користувачів KDE
Мені свого часу з такими складними питаннями помагали тут. Може, й вам спробувати?
Denounce the demagogues
King diamonds to discard
Deploy the dialogue
Your word against the law

Відсутній Harmyder

  • Новачок
  • *
  • дописів: 11
  • Карма: +0/-0
Загалом, покопирсався в imakeidx.sty і виявилось, що сиигнатура функції інша.

Мені свого часу з такими складними питаннями помагали тут. Може, й вам спробувати?
А я і там і тут:)