On 4/26/2025 5:22 PM, Joel via ntg-context wrote:
When I have a word like "U.S." in a sentence, I'm using code like this:
After the U.S.\ Army left Vietnam, they focused on...
...that seems to make sure the space between U.S. Army isn't so big.
My copy editor noticed that when I use footnote, there isn't the right
space after, like.
Here is a sentence.\footnote{This is footnote text.} This is
another sentence.
They are saying that after that, the space isn't the right size. Is
there something similar to the first option that makes sure a full end-
of-sentence space width appears?
Interesting that no one brought this up till now. It is something that
has to be solved at either the engine level (kind of cool) or in all
macros that qualify fof this treatment (doable but less cool).
Here is a hack:
\def\FakeSomething#1%
{\begingroup
#1\space
\scratchskip\lastskip
\unskip
\removepunctuation
\hskip\scratchskip
\endgroup}
\protected\def\FakePeriod{\FakeSomething.}
\protected\def\FakeComma {\FakeSomething,}
\starttext
Here is a sentence.\footnote{This is footnote text.} This is another
sentence.
Here is a\footnote{This is footnote text.} sentence. This is another
sentence.
Here is a sentence.\footnote{This is footnote text.}\FakePeriod This is
another sentence.
\stoptext
So you can make the editor happy and not have to defend some shortcoming.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________