[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#284882: tetex-extra: minitoc broken : pdftex says "undefined control sequence"



Package: tetex-extra
Version: 2.0.2c-2
Severity: important

Consider this sample file :

\documentclass{article}
\usepackage{minitoc}
\begin{document}
	\dominitoc
	\tableofcontents
	\section{foo}
	\section{bar}
\end{document}

Try latex/pdflatex foo.tex, you should get :
(/usr/share/texmf/tex/latex/minitoc/minitoc.sty
*** minitoc package, version 34 ***
*** patched for hyperref ***
*** part level macros available ***
*** section level macros available ***
*** Autoconfiguration of extensions ***
(./foo.mtc1)
*** Long extensions (Unix-like) will be used ***
==> this version is configured for UNIX-like (long extensions) file
names.
(/usr/share/texmf/tex/latex/minitoc/english.mld))
No file foo.aux.
! Undefined control sequence.
l.4 \dominitoc

So the pkg is loaded but commands like \dominitoc or \minitoc are not
recognized ...
However :
$ grep dominitoc `locate minitoc.sty`
%               \minitoc, \dominitoc and \faketableofcontents added
\def\@dominitoc#1{{%
\def\dominitoc{\@ifnextchar[{\dominitoc@}{\dominitoc@[l]}}
\def\dominitoc@[#1]{%
\@@dominitoc}
\def\@@dominitoc{\@dominitoc{\jobname}\immediate\closeout\tf@mtc}


-- Package-specific info:
Please read and follow the instructions in the first lines below
the text: "-- Package-specific info:".
Thank you.

Press ENTER to continue
If you report an error when running one of the TeX-related binaries 
(latex, pdftex, metafont,...), or if the bug is related to bad or wrong
output, please include a MINIMAL example input file that produces the
error in your report. Don't forget to also include minimal examples of
other files that are needed, e.g. bibtex databases. Often it also helps
to include the logfile. Please, never send included pictures!

If your example file isn't short or produces more than one page of
output (except when multiple pages are needed to show the problem),
you can probably minimize it further. Instructions on how to do that
can be found at

http://www.latex-einfuehrung.de/mini-en.html (english)

or 

http://www.latex-einfuehrung.de/mini.html (german)

##################################
minimal input file


##################################
other files

######################################
 List of ls-R files

-rw-rw-r--  1 root staff 91 2004-12-08 17:12 /usr/local/lib/texmf/ls-R
-rw-rw-r--  1 root users 910 2004-12-08 17:12 /var/lib/texmf/ls-R
lrwxrwxrwx  1 root root 29 2004-12-08 15:44 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1)

Versions of packages tetex-extra depends on:
ii  dpkg                      1.10.25        Package maintenance system for Deb
ii  gsfonts                   8.14+v8.11-0.1 Fonts for the Ghostscript interpre
ii  tetex-base                2.0.2c-2       Basic library files of teTeX
ii  tetex-bin                 2.0.2-24       The teTeX binary files
ii  ucf                       1.13           Update Configuration File: preserv

-- no debconf information



Reply to: