For a paper I am typesetting, the author wants subsections to be written with single numerals. So far, OK,
\renewcommand{\thesubsection}{\arabic{subsection}}
does the job.
Yet frequently, he wants to cite the subsection in a later section, and wants both section and subsection numbers in references; i.e., he wants to quote Section 1.1 from Section 2.
My current workaround is to give both the section and subsection numbers in the reference.
MWE
\documentclass[11pt]{amsart}
\usepackage{hyperref}
\usepackage[backend=bibtex,citestyle=alphabetic]{biblatex}
\renewcommand{\thesubsection}{\arabic{subsection}}
\begin{document}
\section{A section} \label{sec:first}
\subsection{A subsection} \label{subsect:first} Something cool.
\section{New section}
Now I want to cite the coolness in Section~\ref{sec:first}.\ref{subsect:first}.
\end{document}
This works fine, except that the hyperref
is set up so that if you click on the first 1, you go to Section 1, not Subsection 1. Yet I would prefer that both numerals go to the same place in the hyperref
links.
I could just wrap each such citation in
\renewcommand{\thesubsection}
's, but is there an easier way to add section numbers when citing subsections from a different section?
Note: Since I'm using biblatex
, titlesec
is not applicable.
biblatex
along withtitlesec
?biblatex
documentation mentions thattitlesec
can redefine thesection
andchapter
commands, and hence conflicts withbiblatex
's usage of these for some reason.titlesec
and theamsart
class (biblatex not loaded, hence independent of it).zref
certainly handles this (if not automatically) by its generality and flexibility. It would be nice, though, to do this automatically, although a conditional is presumably required.