¿Qué causa este error \discrecional?

¿Qué causa este error \discrecional?

Me gustaría compilar mi antigua tesis de LaTeX en PDF. El texto fue creado en 1999 (emTeX, creo) cuando las computadoras y las herramientas eran un poco diferentes. Léelo, vuelvo a LaTeX después de 14 años; eso es tiempo suficiente para olvidarlo todo :) Babel no se usaba en checo en ese momento.

Hasta ahora (después de varias pruebas/fracasos, buscando la información en mi memoria y buscando un poco), convertí las fuentes a UTF-8 y cambié el formato.

\documentclass[a4paper,11pt]{report}
\usepackage{czech}

a

\documentclass[a4paper,11pt]{report}
\usepackage[czech]{babel}
\usepackage[utf8]{inputenc}

Al ejecutar lo siguiente pdflatex --versionen Windows 7

pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013/W32TeX)
kpathsea version 6.1.1
Copyright 2013 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.5.16; using libpng 1.5.16
Compiled with zlib 1.2.7; using zlib 1.2.7
Compiled with xpdf version 3.03

(y al ejecutar bibtex para mi archivo.aux y volver a ejecutar varias veces pdflatex pri98dis.tex, sigo recibiendo el siguiente problema:

) [141] (./pri98dis.aux (./dekuji.aux) (./abstrakt.aux)
! Missing \endcsname inserted.
<to be read again> 
                   \unhbox 
l.223 ...`\discretionary {-}{}{}step}{{3.1.5}{52}}

The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! Improper alphabetic constant.
<to be read again> 
                   \discretionary 
l.223 ...`\discretionary {-}{}{}step}{{3.1.5}{52}}

A one-character control sequence belongs after a ` mark.
So I'm essentially inserting \0 here.

! Extra \endcsname.
\@newl@bel ... \bbl@tempa \csname #1@#2\endcsname 
                                                  \def \bbl@tempb {#3}\@safe...
l.223 ...`\discretionary {-}{}{}step}{{3.1.5}{52}}

I'm ignoring this, since I wasn't doing a \csname.

)

LaTeX Warning: There were undefined references.


LaTeX Warning: There were multiply-defined labels.

Es [141]la última página del documento. (Observe el ! Missing \endcsname inserted.y luego el ! Extra \endcsname.)

En pri98dis.aux(pertenece al documento principal), las líneas 222 y 223 quedan así:

\@writefile{toc}{\contentsline {paragraph}{Krok modelov\IeC {\'e}ho \IeC {\v c}asu.}{52}}
\newlabel{time\unhbox \voidb@x \kern \z@ \char `\discretionary {-}{}{}step}{{3.1.5}{52}}

Parece que pertenece a la siguiente parte de la fuente:

\paragraph{Krok modelového času.}

... text of one paragraph...

\begin{verbatim}
    in('EvQue', 'head', ?head_time);                               { 1 }
    in('EvQue', 'list', head_time, ?next_time);                    { 2 }
    out('EvQue', 'head', next_time);                               { 3 }
\end{verbatim}
\label{time-step}

Parece que el problema es causado de alguna manera por el archivo \label{time-step}.

¿Cómo puedo solucionar el problema?

(Gracias y les deseo un feliz año nuevo y todos los días posteriores).

Respuesta1

Lo más probable es que esto se deba a un paquete (¿taquigrafía del lenguaje babel?) que lo define -como activo y luego intenta que actúe "normalmente" definiéndolo como

\leavevmode\char`\-

Recibo casi el mismo error (contexto ligeramente diferente, pero el mismo

time\unhbox \voidb@x \char `\discretionary {-}{}{}step

de lo siguiente:

\documentclass{article}

\catcode`\-\active
\def-{\leavevmode\char`\-}

\begin{document}

aa \section{zzz\label{time-step}} aa

zzz\ref{time-step}

\end{document}

Si no desea cambiar las macros, la forma sencilla de evitar el error es no utilizar -los argumentos etiqueta, referencia y cita.

información relacionada