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

Unable to apply patch 'footnote' warning and footnote hyperlink failures due to setspace being loaded after hyperref #6

Closed
zixingjiang opened this issue Oct 7, 2024 · 1 comment

Comments

@zixingjiang
Copy link

Hi Prof. Boeing, thanks for sharing your wonderful template. I noticed a small problem with the .tex file that I would like to point out and offer a solution.

Description

When the setspace package is loaded after the hyperref package, it leads to the warning Unable to apply patch 'footnote' and breaks footnote hyperlinks because setspace overwrites hyperref's definition of \@footnotetext, as explained here. This issue can be resolved by loading setspace package before the hyperref package.

Steps to Preproduce

  1. Load the setspace package after the hyperref package in the LaTeX document preamble.
  2. Compile the document.
  3. Observe warnings in the log and check footnote hyperlinks in the compiled PDF.

Excepted Behavior

The document should compile without warnings, and all footnote hyperlinks should work correctly.

Actual Behavior

The document compilation produces the warning Unable to apply patch 'footnote', and footnote hyperlinks always point to the beginning of the document.

warnings

Solution

Load the setspace package before the hyperref package in the LaTeX document preamble.

@gboeing gboeing closed this as completed in 677f371 Oct 8, 2024
@gboeing
Copy link
Owner

gboeing commented Oct 8, 2024

Thanks. Resolved by 677f371.

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

2 participants