Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with siunitx and lastpage packages

178 views
Skip to first unread message

David Lentini

unread,
Jul 28, 2010, 3:54:04 PM7/28/10
to
Hi!

I'm writing a document that requires page numbers in the footer in the
format "Page n of m", requiring the lastpage pageage, and I also want to
use the siunitx package for the text. But when I compile the LaTeX
code, I get a "LaTeX Warning: There were undefined references." message
and the number of the last page does not appear.

If I turn off the calls to siunitx, then everything processes normally.

Any help is much appreciated.

Thanks,
David Lentini

Here's the code:

\documentclass{article}

\usepackage{fancyhdr, lastpage, enumerate, siunitx}
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[L]{***\\Attorney Docket No.:~***\\Serial No.:~***}
\fancyfoot[R]{Page \thepage \ of \pageref{LastPage}}
\renewcommand\headrulewidth{0pt}
\renewcommand\footrulewidth{0pt}
\setlength{\textheight}{8.5in}
\usepackage{setspace}
\setlength{\parskip}{0.1in}
\setlength{\parindent}{0pt}

\begin{document}

This is a \SI{5}{\kilo\dalton} protein.

\end{document}

Here's the log:

Running `LaTeX' on `Siunitx' with ``latex -interaction=nonstopmode
"\input" Siunitx.tex''
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009)
entering extended mode
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax,
dumylang, nohyphenation, german-x-2009-06-19, ngerman-x-2009-06-19,
ancientgreek, ibycus, arabic, basque, bulgarian, catalan, pinyin,
coptic, croatian, czech, danish, dutch, esperanto, estonian, farsi,
finnish, french, galician, german, ngerman, monogreek, greek, hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam,
marathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish,
italian, kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc,
bokmal, nynorsk, polish, portuguese, romanian, russian, sanskrit,
serbian, slovak, slovenian, spanish, swedish, turkish, turkmen,
ukenglish, ukrainian, uppersorbian, welsh, loaded.
(./Siunitx.tex
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/local/texlive/2009/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2009/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/lastpage/lastpage.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/enumerate.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/siunitx/siunitx.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/expl3.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3names.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/etex-pkg/etex.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3basics.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3expan.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3tl.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3intexpr.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3quark.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3seq.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3toks.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3int.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3prg.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3clist.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3token.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3prop.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3msg.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3io.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3skip.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3box.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3keyval.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3keys.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3precom.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3calc.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3xref.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/expl3/l3file.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amstext.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/amsmath/amsgen.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/tools/array.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/xpackages/xtras/l3keys2e.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/xpackages/xbase/xparse.sty))
(/usr/local/texlive/2009/texmf-dist/tex/latex/translator/translator.sty
(/usr/local/texlive/2009/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2009/texmf-dist/tex/latex/translator/translator-language-mappings.tex)))
(/usr/local/texlive/2009/texmf-dist/tex/latex/setspace/setspace.sty
Package: `setspace' 6.7 <2000/12/01>
) (./Siunitx.aux)
(/usr/local/texlive/2009/texmf-dist/tex/latex/translator/translator-basic-dictionary-English.dict)
AED: lastpage setting LastPage

LaTeX Warning: Reference `LastPage' on page 1 undefined on input line 19.

[1]
\newlabel{LastPage}{{}{1}}
(./Siunitx.aux)

LaTeX Warning: There were undefined references.

)
Output written on Siunitx.dvi (1 page, 408 bytes).
Transcript written on Siunitx.log.

LaTeX finished at Wed Jul 28 15:52:57

Joseph Wright

unread,
Jul 28, 2010, 4:29:29 PM7/28/10
to

There have been various bug fixes for expl3, and I think this might be
due to one of those bugs. Could you include \listfiles in your input
and report the result.
--
Joseph Wright

David Lentini

unread,
Jul 28, 2010, 4:49:01 PM7/28/10
to
Thanks, Joseph!

Here's the output:

LaTeX Warning: Reference `LastPage' on page 1 undefined on input line 21.

[1]
\newlabel{LastPage}{{}{1}}
(./Siunitx.aux)

*File List*
article.cls 2007/10/19 v1.4h Standard LaTeX document class
size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
fancyhdr.sty
lastpage.sty 1994/06/25 v0.1b LaTeX2e package for refs to last page
number (JPG)
enumerate.sty 1999/03/05 v3.00 enumerate extensions (DPC)
siunitx.sty 2010/07/21 v2.0o A comprehensive (SI) units package
expl3.sty 2010/03/23 v1866 L3 Experimental code bundle wrapper
l3names.sty 2010/03/21 v1853 L3 Experimental Naming Scheme for TeX
Primitives
etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
l3basics.sty 2010/03/21 v1853 L3 Experimental basic definitions
l3expan.sty 2010/03/24 v1873 L3 Experimental Argument Expansion module
l3tl.sty 2010/03/24 v1873 L3 Experimental Token Lists
l3intexpr.sty 2009/03/20 v1086 L3 Integer Expressions
l3quark.sty 2010/03/21 v1853 L3 Experimental Quark Commands
l3seq.sty 2010/03/21 v1857 L3 Experimental sequences and stacks
l3toks.sty 2010/03/23 v1867 L3 Experimental Token Registers
l3int.sty 2010/03/23 v1867 L3 Experimental Integer module
l3prg.sty 2010/03/21 v1853 L3 Experimental control structures
l3clist.sty 2010/03/29 v1878 L3 Experimental comma separated lists
l3token.sty 2010/03/21 v1857 L3 Experimental token investigation and
manipulation
l3prop.sty 2010/03/21 v1857 L3 Experimental Property Lists
l3msg.sty 2010/03/23 v1866 L3 Experimental LaTeX Messages module
l3io.sty 2010/03/21 v1853 L3 Experimental i/o module
l3skip.sty 2010/03/23 v1867 L3 Experimental skip registers
l3box.sty 2010/03/23 v1867 L3 Experimental Box module
l3keyval.sty 2010/03/24 v1872 L3 Experimental keyval processing
l3keys.sty 2010/03/22 v1863 L3 Experimental key-value support
l3precom.sty 2010/02/09 v1793 L3 Experimental precompilation module
l3calc.sty 2010/02/07 v1776 L3 Experimental calc module
l3xref.sty 2010/02/09 v1786 L3 Experimental cross referencing
l3file.sty 2010/03/21 v1853 L3 Experimental file loading
amstext.sty 2000/06/29 v2.01
amsgen.sty 1999/11/30 v2.0
array.sty 2008/09/09 v2.4c Tabular extension package (FMi)
l3keys2e.sty 2009/08/24 v1494 Parsing LaTeX3 keyvals as LaTeX2e
package options
xparse.sty 2010/04/26 v1897 Generic document command parser
translator.sty 2007/03/11 ver 1.00
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
translator-language-mappings.tex
setspace.sty 2000/12/01 6.7 Contributed and Supported LaTeX2e package
translator-basic-dictionary-English.dict
***********


LaTeX Warning: There were undefined references.

)
Output written on Siunitx.dvi (1 page, 408 bytes).
Transcript written on Siunitx.log.

LaTeX finished at Wed Jul 28 16:47:45

Joseph Wright

unread,
Jul 28, 2010, 5:19:50 PM7/28/10
to
On Jul 28, 9:49 pm, David Lentini <dplent...@hotmail.com> wrote:
> Thanks, Joseph!
>
> Here's the output:
>

I think your problem is a bug in l3io, which was fixed a while ago.
This is available from CTAN, and of course in the upcoming TeX Live
2010.
--
Joseph Wright

David Lentini

unread,
Jul 29, 2010, 9:36:09 AM7/29/10
to
Thanks Joseph. I hate to look like a N00b, but how can I fix this?
Where does the l3io file live?

David Lentini

unread,
Jul 29, 2010, 9:40:09 AM7/29/10
to
Well, I think I just answered my own question.

Maybe I'm not such a N00b after all! :-)

Martin Muench

unread,
Sep 30, 2010, 11:10:31 AM9/30/10
to
On 28.07.2010 22:49, David Lentini wrote:
> lastpage.sty 1994/06/25 v0.1b LaTeX2e package for refs to last page
> number (JPG)

By the way: That's an older version of the lastpage package. If it
works, it's fine, but maybe you want to have a look at the recent
version 1.2f? It is available at CTAN:
http://ctan.org/tex-archive/macros/latex/contrib/lastpage/

Sincerely yours
Martin
PS: and if you are looking, you might also want to have a look at the
pagesLTS package, also at CTAN:
http://ctan.org/tex-archive/macros/latex/contrib/pageslts/
--
Martin DOT Muench AT Uni-Bonn DOT de

0 new messages