* Superscript in \date
@ 2010-09-24 15:10 Florian Wobbe
2010-09-24 15:18 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Florian Wobbe @ 2010-09-24 15:10 UTC (permalink / raw)
To: ntg-context
Dear all,
I tried to change the output format of \date so that the day includes the letter suffixes as superscript.
\definefontfeature[sups][sups=yes,script=latn]
\usetypescript[antykwa-torunska]
\setupbodyfont[antykwa,12pt]
\starttext
\date[][day,{\setff{sups}th},~,month,year]
\stoptext
I get the following error.
<inserted text>
\inaccessible
<to be read again>
{
<argument> \unskip {\edef {
sups}\attribute \zerocount 18\relax th}\hskip \da...
\p!compareprocessaction ...commalistelement {#3}#2
\fi \fi
\next2 #1,->\p!doprocessaction {#1}
\doprocesscommaitem
\processnextcommalist ...odoprocesscommaitem #4#5,
]\relax \global \advance \...
...
l.14 \date[][day,{\setff{sups}th},~,month,year]
BTW the output looks fine in spite of the error message.
Using superscripts in this way does not cause errors:
57{\setff{sups}th} or \date[][day,$^{\mr th}$,~,month,year]
What is going wrong here?
Thanks!
Florian
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Superscript in \date
2010-09-24 15:10 Superscript in \date Florian Wobbe
@ 2010-09-24 15:18 ` Aditya Mahajan
2010-09-24 15:28 ` Florian Wobbe
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2010-09-24 15:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, 24 Sep 2010, Florian Wobbe wrote:
> 57{\setff{sups}th} or \date[][day,$^{\mr th}$,~,month,year]
Don't know about \setff, but using \high{th} is better than going to math
mode.
Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Superscript in \date
2010-09-24 15:18 ` Aditya Mahajan
@ 2010-09-24 15:28 ` Florian Wobbe
0 siblings, 0 replies; 3+ messages in thread
From: Florian Wobbe @ 2010-09-24 15:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
Well, and I didn't know about \high - thanks for pointing out. My aim was actually to make use of the superscript font feature of Antykwa.
Florian
On Sep 24, 2010, at 17:18 , Aditya Mahajan wrote:
> On Fri, 24 Sep 2010, Florian Wobbe wrote:
>
>> 57{\setff{sups}th} or \date[][day,$^{\mr th}$,~,month,year]
>
> Don't know about \setff, but using \high{th} is better than going to math mode.
>
> Aditya
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-24 15:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-24 15:10 Superscript in \date Florian Wobbe
2010-09-24 15:18 ` Aditya Mahajan
2010-09-24 15:28 ` Florian Wobbe
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).