-
Notifications
You must be signed in to change notification settings - Fork 773
footnote environment #4218
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
footnote environment #4218
Conversation
7bfec78
to
4a1fc9b
Compare
... and (drum roll) with a slight patch to detect "shall", "may", "should" also inside footnotes, we now find lex.tex:672:characters may produce a long external identifier, but \Cpp{} does not <--- "shall", "should", or "may" inside a note |
5e550da
to
10ba138
Compare
@godbyk , I think I need your help here. Please have a look at this pull request and consider the definition of the "footnoteenv" macro in macros.tex. The goal is to have a proper environment for footnotes and not the inline-style I essentially got it working with some "lrbox" operations, and it looks as before (except for a hyphenation change that I can only explain by some difference in hyphenation regime in footnotes, but that's not the point here). In order to make the "footnoteenv" work inside tables inside floats, I need to make sure I employ \global to have the footnote's contents "escape" properly. So far, so good. However, I am unable to achieve this with a named box; it only works with a numbered box. See the line that copies the local \box99 to the \global named box. Of course, using a specific numbered box risks conflicts. For example, \box0 seems to cause such a conflict; all page numbers in the cross-reference are off by the size of the table of contents. My attempts at using a named box have failed with "expected a <box> here" errors. Do you have any ideas? |
Rebased due to conflict. |
fd4397c
to
ac76e2c
Compare
Rebased again. This is now ready for revuew/merge, from my perspective. |
source/macros.tex
Outdated
% \show \lrbox | ||
% \show \endlrbox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove these comments.
Create a "footnoteenv" environment for footnotes.
This allows to clearly separate them in the LaTeX source, enabling automatic checking for normative words such as "shall" or "may" inside them.
[temp.constr.order] has an example each inside two footnotes that now gets formatted differently.
We should get rid of that for unrelated reasons (bad rendering with the new separate-paragraph examples).
With this compensated, this patch has no visible differences in "appearance" mode except for footnote 12 (different hyphenation) and footnote 256 (slight differences in spacing/kerning, it seems).