-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
numdef
has been life savior for me for a while (Found it here). Thanks a lot for it.
Unfortunately, I am facing difficulty to make \listoffigures
work properly with it. I am using pdflatex
on Linux. Here is a simple code to reproduce the error:
\documentclass{article}
\usepackage{amsmath, amssymb, amsfonts}
\usepackage{numdef}
\num\newcommand{\B0}[0]{B$_{\text{0}}$}
\begin{document}
\listoffigures % works fine without this line
Hello world! This is \B0.
\begin{figure}
\centering
Here goes the fig..
\caption{Hello again! This is \B0-caption.}
\end{figure}
\end{document}
Here is the error:
$ pdflatex test.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 2 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty))
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amssymb.sty
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(/home/cbhushan/texmf/tex/latex/local/numdef.sty) (./test.aux) (./test.lof
(./test.lof (./test.lof (./test.lof (./test.lof (./test.lof (./test.lof
(./test.lof (./test.lof (./test.lof (./test.lof (./test.lof (./test.lof
(./test.lof
! TeX capacity exceeded, sorry [text input levels=15].
\@filef@und ->test.lof
l.1 ...B$_{\text {0}}$\num@count = 0-caption.}}{1}
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on test.log.
And here is the content of test.lof
(test.log
is similar to the output above).
\contentsline {figure}{\numberline {1}{\ignorespaces Hello again! This is \edef \B {\B }\futurelet \@tempa \let \afterassignment \let 0=0B$_{\text {0}}$\num@count = \afterassignment \let 0=0B$_{\text {0}}$\num@count = \afterassignment \let 0=0B$_{\text {0}}$\num@count = 0-caption.}}{1}
Metadata
Metadata
Assignees
Labels
No labels