Is there a way to reference a place in the text using \hyperref
, instead of using \nameref
to reference the section that portion of text belongs to?
Probably a WME will help in getting my point across:
\documentclass[onecolumn,twoside]{revtex4}
\usepackage{xpatch}% http://ctan.org/pkg/xpatch
\makeatletter
\xpatchcmd{\@ssect@ltx}{\@xsect}{\protected@edef\@currentlabelname{#8}\@xsect}{}{}% Patch \<section>*
\xpatchcmd{\@sect@ltx}{\@xsect}{\protected@edef\@currentlabelname{#8}\@xsect}{}{}% Patch \<section>
\makeatother
\usepackage{hyperref}% http://ctan.org/pkg/hyperref
hypersetup{pdfstartview=FitH,pdfpagemode=UseNone}
\begin{document}
\title{Title}
\author{Author}
\affiliation{Affiliation}
\maketitle
\section*{FirstSection--$E \times H$ vs.$\ \textbf{E} \times \textbf{H}$}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\bf I want to return here, not at the beginning of FirstSection \rm \label{sec:marker1} \nameref{sec:marker2}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\section*{SecondSection} \label{sec:marker2}
You can also see in \nameref{sec:marker1} that \ldots
\end{document}
revtex
and why previous questions answered in this respect didn't answer your question. – Werner Feb 19 '12 at 3:14revtex4-1
. I don't know about anyone else, but I'm inclined to ignore your questions until you begin using a maintained document class. As I've said before, there was about 10 years between 4 and 4.1, so this makes a huge difference. – qubyte Feb 19 '12 at 6:21