0

I want to reference to my \section*{Foo.} with the \label{sec:foo}. For this, I tried using \nameref{sec:foo} but it doesn't work, i.e. there are no errors but it just doesn't print anything at that place. It works for \section{Foo.} but not for my case although I did the same as described in this answer. Any ideas what could be the problem?

Edit:

MWE:

\documentclass{article}
\usepackage{titlesec}
\usepackage{nameref}

\begin{document}

\section*{One.} \label{sec:one}

\section*{Two.}

\nameref{sec:one}

\end{document}

It seems using nameref together with titlesec and a unnumbered section is the problem.

Autumn
  • 1
  • 1

0 Answers0