I am using IEEETran document class, from https://www.computer.org/web/tpds/author

My LaTeX source looks like:

(See \S\ref{AnyLabel}--\nameref{AnyLabel}.)
. . .

I get this error:

Undefined control sequence. (See \S\ref{AnyLabel}--\nameref

If I omit \nameref{AnyLabel}, I get the correct section number with no error.

Any help or ideas appreciated.

  • 1
    Welcome to TeX.SE. Did you load the nameref package?
    – Mico
    May 2, 2018 at 18:10
  • Bingo! That was it. Thanks for the amazingly fast response.
    – user162180
    May 2, 2018 at 18:18

1 Answer 1


To enable the \nameref macro, the nameref package has to be loaded.

A full MWE (minimum working example):

\section{Fancy Section Header}\label{sec:fancy}

See \S\ref{sec:fancy}--\nameref{sec:fancy}.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .