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

bad hyperref links for supp figs #1

Open
wsdewitt opened this issue Jul 4, 2020 · 0 comments
Open

bad hyperref links for supp figs #1

wsdewitt opened this issue Jul 4, 2020 · 0 comments

Comments

@wsdewitt
Copy link

wsdewitt commented Jul 4, 2020

Just wanted to note: with the current supp fig approach, hyperref will erroneously link to main text figures with the same number.

tex-template/main.tex

Lines 14 to 20 in e44558e

% http://bytesizebio.net/2013/03/11/adding-supplementary-tables-and-figures-in-latex/
\newcommand{\beginsupplement}{%
\setcounter{table}{0}
\renewcommand{\thetable}{S\arabic{table}}%
\setcounter{figure}{0}
\renewcommand{\thefigure}{S\arabic{figure}}%
}

This can be resolved by using a custom counter as shown here.

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