* [NTG-context] How to make superscript text match footnote mark formatting?
[not found] <769759528.2453623.1714238203650.ref@mail.yahoo.com>
@ 2024-04-27 17:16 ` Joel via ntg-context
2024-04-27 18:08 ` [NTG-context] " Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Joel via ntg-context @ 2024-04-27 17:16 UTC (permalink / raw)
To: Mailing List for ConTeXt Users; +Cc: Joel
[-- Attachment #1.1: Type: text/plain, Size: 459 bytes --]
\starttext
test\high{1}test\footnote{some text}
\stoptext
How can I create a superscript number that has exactly the same formatting as a footnote, but which won't create a footnote. I tried \high{}, which I believe should be the way to superscript text, but if you compile this, you can see the first "1" and second "1" have entirely different formatting. How do I make the first one have the same exact formtating as the real footnote?
--Joel
[-- Attachment #1.2: Type: text/html, Size: 827 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: How to make superscript text match footnote mark formatting?
2024-04-27 17:16 ` [NTG-context] How to make superscript text match footnote mark formatting? Joel via ntg-context
@ 2024-04-27 18:08 ` Wolfgang Schuster
2024-04-27 19:57 ` Joel via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2024-04-27 18:08 UTC (permalink / raw)
To: mailing list for ConTeXt users, Joel via ntg-context
Joel via ntg-context schrieb am 27.04.2024 um 19:16:
> \starttext
> test\high{1}test\footnote{some text}
> \stoptext
>
> How can I create a superscript number that has exactly the same
> formatting as a footnote, but which won't create a footnote. I tried
> \high{}, which I believe should be the way to superscript text, but if
> you compile this, you can see the first "1" and second "1" have entirely
> different formatting. How do I make the first one have the same exact
> formtating as the real footnote?
Footnotes apply the \tx style to the number in the running text and to
get the same text size with \high you need \tx before the argument.
Another solution is to create your own \high command where you set the
text size as default value but now you have to pass \txx as value
because by default \high already uses style=\tx. When you now combine
the default \tx from \high and the \tx from the footnote you get the
\txx size (which is used in the custom \high command).
%%%% begin example
\definehigh[fakenotesymbol][style=\txx]
\starttext
\startlines
test\footnote{\unknown}
test\high{\tx 1}
test\fakenotesymbol{1}
\stoplines
\stoptext
%%%% end example
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: How to make superscript text match footnote mark formatting?
2024-04-27 18:08 ` [NTG-context] " Wolfgang Schuster
@ 2024-04-27 19:57 ` Joel via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: Joel via ntg-context @ 2024-04-27 19:57 UTC (permalink / raw)
To: mailing list for ConTeXt users, Wolfgang Schuster; +Cc: Joel
[-- Attachment #1.1: Type: text/plain, Size: 1383 bytes --]
Thank you! --Joel
On Saturday, April 27, 2024 at 12:08:13 PM MDT, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
Joel via ntg-context schrieb am 27.04.2024 um 19:16:
> \starttext
> test\high{1}test\footnote{some text}
> \stoptext
>
> How can I create a superscript number that has exactly the same
> formatting as a footnote, but which won't create a footnote. I tried
> \high{}, which I believe should be the way to superscript text, but if
> you compile this, you can see the first "1" and second "1" have entirely
> different formatting. How do I make the first one have the same exact
> formtating as the real footnote?
Footnotes apply the \tx style to the number in the running text and to
get the same text size with \high you need \tx before the argument.
Another solution is to create your own \high command where you set the
text size as default value but now you have to pass \txx as value
because by default \high already uses style=\tx. When you now combine
the default \tx from \high and the \tx from the footnote you get the
\txx size (which is used in the custom \high command).
%%%% begin example
\definehigh[fakenotesymbol][style=\txx]
\starttext
\startlines
test\footnote{\unknown}
test\high{\tx 1}
test\fakenotesymbol{1}
\stoplines
\stoptext
%%%% end example
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 2853 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-04-27 20:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <769759528.2453623.1714238203650.ref@mail.yahoo.com>
2024-04-27 17:16 ` [NTG-context] How to make superscript text match footnote mark formatting? Joel via ntg-context
2024-04-27 18:08 ` [NTG-context] " Wolfgang Schuster
2024-04-27 19:57 ` Joel via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).