Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hypcap is not working in wrapfigure environment #2

Open
NeverGameStar opened this issue Nov 21, 2024 · 0 comments
Open

hypcap is not working in wrapfigure environment #2

NeverGameStar opened this issue Nov 21, 2024 · 0 comments

Comments

@NeverGameStar
Copy link

The hypcap package seems to have no effect on a wrapfigure environment from the wrapfig / wrapfig2 package.

MWE:

\documentclass[fontsize=12pt, twoside]{scrreprt}

\usepackage{wrapfig} % also works with wrapfig2
\usepackage{blindtext}
\usepackage{graphicx}
	
\usepackage{hyperref}
\usepackage[figure]{hypcap}

\begin{document}
\listoffigures
\clearpage

\blindtext
\begin{wrapfigure}[16]{r}{0.5\textwidth}
 \centering
  \includegraphics[scale=7]{Black.png}
   \caption{Black}
  \label{fig:Black}
\end{wrapfigure}
\blindtext
\blindtext

\newpage
\blindtext
\begin{figure}[h!]
 \centering
  \includegraphics[scale=7]{Black.png}
   \caption{Black2}
  \label{fig:Black2}
\end{figure}
\blindtext

\end{document}

using the following image file named "Black.png":
Black

When clicking the reference (using e.x. MSEdge as the .pdf-viewer) from List of Figures, the jump ends above the caption for the wrapfigure environment, instead of above the image like it's intended and working in the figure environment.

Video Demonstration:

VidDem.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant