I have a problem with jumping to figure (not to the figure's caption) that has caption that includes inparaenum.
Minimal not working example:
\documentclass{article}
\usepackage{blindtext}
\usepackage{paralist}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{caption} % see: https://tex.stackexchange.com/a/27102/44382
\begin{document}
Fig.~\ref{fig:test} is beatiful!
\blindtext[4]
\begin{figure}
\centering
\includegraphics[width=0.5\textwidth]{test}
\caption[]{Linux distros: \begin{inparaenum}\item Ubuntu cat, \item Linux tux, \item Android \end{inparaenum}}
\label{fig:test}
\end{figure}
\blindtext[4]
\end{document}
(To compile the above example you need some image called test.* – for example test.jpg.)
If you compile it, you'll see that jump to label doesn't work correctly unless you remove this inparaenum list:
\begin{inparaenum}\item Ubuntu cat, \item Linux tux, \item Android \end{inparaenum}
How can I solve this problem?
\usepackage[demo]{graphicx}, this way, nobody needs thetestfile – Jun 05 '17 at 16:52\usepackage[demo]{graphicx}. – patryk.beza Jun 05 '17 at 17:14\itemdoes\refstepcounter(for possible reference to the items). – egreg Jun 06 '17 at 07:09