I'm trying to use \usepackage{hyperref} to reference in the text a section by name. The section to be referenced is
\section{whatever}\label{sec:marker}
However, when I place in the text
\nameref{sec:marker}
I get nothing but a narrow red rectangle without a text in it (I expected the text 'whatever' to appear there). Is there anything else I should do to fix this problem?
Here is a MWE of the problem I have:
\documentclass[onecolumn,twoside]{revtex4}
%\usepackage{float}
%\usepackage{graphicx}
%\usepackage{sansmath}
%\usepackage{amsmath}
%\usepackage{tikz}
%\pdfpagewidth 8.32in
%\pdfpageheight 11in
%\setlength{\topmargin}{-20mm}
%\setlength{\columnsep}{10mm}
%\setlength{\oddsidemargin}{-2mm}
%\setlength{\evensidemargin}{-2mm}
%\setlength{\textwidth}{170mm}
%\usepackage{anttor}
%\bibpunct{(}{)}{;}{s}{,}{,}
%\usepackage{fancyhdr}
%\usepackage{longtable}
%\usepackage{pgothic}
%\usepackage[T1]{fontenc}
%\usepackage{eufrak}
%\usepackage{oldgerm}
%\usepackage[normalem]{ulem}
%\usepackage{cancel}
%\usepackage{wasysym}
\usepackage{hyperref}
\begin{document}
\section*{FirstSection}
In \nameref{sec:marker} it is stated that ...
\section*{SecondSection} \label{sec:marker}
\end{document}

\documentclassand the appropriate packages so that those trying to help don't have to recreate it. Personally, I have often solved my own problems in the process of reducing the amount of code actually required to reproduce the problem. – Peter Grill Feb 16 '12 at 4:06{}). – Peter Grill Feb 16 '12 at 4:06\usepackage{hyperref}instruction. That way, casual readers will pick up right away that the problem is due to some interaction between therevtexdocument class and thehyperrefpackage. – Mico Feb 16 '12 at 14:34