TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to use the SF298 package for latex and it gives an undefined control sequence error. The error is as follows:

! Undefined control sequence.
\ExecuteOptions ...eserved@a \CurrentOption \@nil
l.104 \ExecuteOptions{config,nofloatlongboxes}

The test latex file I am using is as follows:


\title{Test Title}

\DatesCovered{1 June 1996 --- 31 May 1999}
\Title{Final Report Title}
\Author{Uthor, Joe, A., and Ditor, Jane, E.}
\SubjectTerms{keywords; associated words; other words}
\ResponsiblePerson{Mr.\ Joe A. Uthor}
\RPTelephone{(412) 555--9999}



  \section{Introduction}     % section 1.1
  \subsection{History}       % subsection 1.1.1

  \section{Introduction}     % section 2.1
  \subsection{Usage}         % subsection 2.1.1


[David Carlisle]

the example can be reduced to







On the face of it, seems to be a bug in totpages or one of the packages it loads.

share|improve this question
I updated the example with \title and \author, but I still get the error. I also tried deleting all other files in the folder as well. – LWhitson2 Dec 3 '13 at 13:04
Sorry I deleted previous comments: with your updated example I get the error you get. – David Carlisle Dec 3 '13 at 17:28
If you remove the [titlepage] option (as in your original) then you get no error, I've no idea what the sf298 package is supposed to do, or if it is supposed to support titlepage, so I'm not sure if just removing the option is a possibility for you – David Carlisle Dec 3 '13 at 17:32
I'm out of time today, but I add a simpler example to your question – David Carlisle Dec 3 '13 at 17:53
up vote 4 down vote accepted

For some reasons, \CurrentOption is defined to expand \@nil and not to empty, as LaTeX expects.

This seems to ba a bug in totpages, which processes options in a personalized way.

The problem may be solved by loading totpages before any package that loads it and to add \def\CurrentOption{} after it.


\def\CurrentOption{} % fix bug in totpages


In this way, sf298 will not load totpages again and the problem will not show.

share|improve this answer
thanks:-) ..... – David Carlisle Dec 3 '13 at 18:56
So, I guess my question now is, can I fix the totpages package and push it up to CTAN? – LWhitson2 Dec 4 '13 at 3:53
@LWhitson2 there is an email and postal address for bug reports in the comment at the top of totpages.sty – David Carlisle Dec 4 '13 at 10:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.