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

hyperref changes spacing of \footnote #50

Closed
nbeisert opened this Issue Nov 5, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@nbeisert

nbeisert commented Nov 5, 2018

Hi,

I noticed that using hyperref changes the default latex behaviour of \footnote as follows:

Latex removes any spaces at the beginning of the \footnote argument. This is implemented by the combination "\ignorespaces#1" in @footnotetext. Presumably the intention is to ignore any line breaks after "\footnote{" which people may use to format the source file. The footnote mark will then be followed immediately by the footnote text without any space irrespectively of whether there are spaces following "\footnote{" or not.

Hyperref hooks into the macro @footnotetext, adds some additional code into the argument before passing on to the original definition and thus masks out the \ignorespaces command. Therefore footnote marks and text are separated by a space depending on spaces in the latex source. This may spoil the uniform look of the footnote section.

In general, I would expect the usage of hyperref not to change the spacing behaviour of latex. It may or may not be desirable to change this behaviour, but e.g. I found no note concerning this change in the manual. Note that in either situation one can add or remove the space with additional latex code, so requesting the original latex behaviour does not break functionality.

The attached test file compares the default behaviour and provides some suggested replacement code for hyperref. Note that @mpfootnotetext might have to be adjusted as well, I did not look into this.

relevant versions:
hyperref 2018/09/30 v6.88a
LaTeX2e <2018-04-01> patch level 5 (TeX Live 2018)

Best Regards,
Niklas Beisert

test.zip
test.pdf

u-fischer pushed a commit to ho-tex/hyperref that referenced this issue Nov 30, 2018

@u-fischer

This comment has been minimized.

u-fischer commented Nov 30, 2018

Thanks for the report. That is actually a hyperref and not an oberdiek issue. It will be resolved with the next update of hyperref.

@u-fischer u-fischer closed this Nov 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment