подзаголовок несовместим с опцией backref гиперрефа

подзаголовок несовместим с опцией backref гиперрефа

У меня проблема с subcaptionпосылкой.

Это приводит к тому, что обратные ссылки на таблицы отображаются только в виде вопросительных знаков.

Минимальный рабочий пример

\RequirePackage{filecontents}

\begin{filecontents}{bibliography.bib}
@inproceedings{namespaces,
title = {Multiple instances of the global linux namespaces},
author = {Biederman, Eric},
booktitle = {Proceedings of the Linux Symposium},
year = {2006},
}
@MISC{kernel_2.4,
title = {Index of /pub/linux/kernel/v2.4},
author = {{The Linux Foundation}},
year = {2013},
}
@MISC{kernel_2.6,
title = {Index of /pub/linux/kernel/v2.6},
author = {{The Linux Foundation}},
year = {2014},
}
\end{filecontents}

\documentclass{report}
\usepackage[backref]{hyperref}
\usepackage{subcaption}

\begin{document}
\chapter{Loranium}
Lorem Ipsum
\section{notable}
this works \cite{namespaces}.
\chapter{Ipsonium}
\begin{table}
    \begin{tabular}{|l|l|l|l|}
        \hline
        A & B & C & D \\ \hline
        a & b & c & d \\ \hline
        a & b & c & d \cite{kernel_2.4} \\ \hline
        a & b & c & d \cite{kernel_2.6} \\ \hline
        a & b & c & d \cite{kernel_2.6} \\ \hline
        a & b & c & d \cite{kernel_2.6} \\ \hline
    \end{tabular}
    \caption{ABCD}
    \label{tab:abcd}
\end{table}

\bibliography{bibliography}
\bibliographystyle{unsrt}
\end{document}

решение1

Соответствующим параметром должен быть backref=page, так как он вставляет правильные ссылки на страницу.

Кроме того, hyperrefпакет должен быть загружен после subcaptionпакета, что в этом минимальном примере вообще не нужно.

\documentclass{report}

\usepackage{subcaption}



\usepackage[backref=page]{hyperref}


\begin{document}
\chapter{Loranium}
Lorem Ipsum
\section{notable}
this works \cite{namespaces}.
\chapter{Ipsonium}
\phantomsection
\begin{table}
    \begin{tabular}{|l|l|l|l|}
        \hline
        A & B & C & D \\ \hline
        a & b & c & d \\ \hline
        a & b & c & d \cite{kernel_2.4} \\ \hline
        a & b & c & d \cite{kernel_2.6} \\ \hline
        a & b & c & d \cite{kernel_2.6} \\ \hline
        a & b & c & d \cite{kernel_2.6} \\ \hline
    \end{tabular}
    \caption{ABCD}
    \label{tab:abcd}
\end{table}

\bibliographystyle{unsrt}
\bibliography{bibliography}
\end{document}

Связанный контент