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
___________________________________________________________________________________

Reply via email to