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

feature request: add socket at beginning of footnote text #726

Open
schlcht opened this issue Oct 6, 2024 · 0 comments
Open

feature request: add socket at beginning of footnote text #726

schlcht opened this issue Oct 6, 2024 · 0 comments

Comments

@schlcht
Copy link

schlcht commented Oct 6, 2024

following a discussion with @u-fischer here I'd like to ask for a socket that's executed right at the beginning of the footnote text. As you might be aware, microtype patches several commands to add protrusion, \@footnotetext being one of them. It would be great to be able to use hooks instead of patching, but as yet the hooks provided in latex-lab-footnotes don't really offer a feasible solution: microtype's \leftprotrusion command peeks ahead, so it would already stumble over the hook management code itself, and furthermore could also be distracted by other code added to the hook by other packages or the user. So it would be great to replace, as Ulrike suggested in the above discussion, \ignorespaces#1 (or just #1) with \socket_use:n{fntext/peek}{#1}, so that microtype could simply plug into that socket.

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

No branches or pull requests

2 participants