![](https://secure.gravatar.com/avatar/ba39713919d7892615fd6559523b80e3.jpg?s=120&d=mm&r=g)
I started to edit an old document with capitalized headings. Making the headings was rather difficult (as can be seen on this list about a year ago), and now it seems to have broken again. I have: \setuphead[title] [page=yes, before={\strut\blank[5*big]}, after={\textrule\blank}, align=middle, style=\tfb, textcommand=\WORD ] This worked fine in the past. Not anymore: 8<--- ! You can't use `\relax' after \the. <recently read> \@sl@\@@pnstate \pushmacro ...ame \@sl@ \@@pushedmacro \endcsname \@@pushedmacro \endcsname #1 \makesectionformat ...macro \@@shortsectionnumber \let \@@shortsectionnumber... \rawreference ...veryreference \makesectionformat \writereference {#2} {\sec... <argument> ...\finalsectionnumber }{\asciititle }} }\fi \executeifdefi! Missing \endcsname inserted. <to be read again> \let \@@shortsectionnumber ...@EA \ifx \csname \??se #1 \c!ownnumber \endcsname \r... \makesectionformat ... \@@shortsectionnumber \let \@@shortsectionnumber \@@s... \rawreference ...veryreference \makesectionformat \writereference {#2} {\sec... <argument> ...\finalsectionnumber }{\asciititle }} }\fi \executeifdefined {\?... \douppercase ...rstoftwoarguments \edef \ascii {#1 }\edef \ascii {\expandafte... ... 8<--- Using the trivial solution (\uppercase) does not work because with a non-il1 regime it does not handle the accented characters (A umlat, O umlaut) correctly. I use UTF, as it contains all the characters I need. So, what has changed in the \WORD? It works \WORD{fine} within text but not in the headings. TIA, - Ville
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Ville Voipio wrote:
I started to edit an old document with capitalized headings. Making the headings was rather difficult (as can be seen on this list about a year ago), and now it seems to have broken again.
I have:
\setuphead[title] [page=yes, before={\strut\blank[5*big]}, after={\textrule\blank}, align=middle, style=\tfb, textcommand=\WORD ]
This worked fine in the past. Not anymore:
8<---
! You can't use `\relax' after \the. <recently read> \@sl@\@@pnstate
\pushmacro ...ame \@sl@ \@@pushedmacro \endcsname \@@pushedmacro \endcsname #1 \makesectionformat ...macro \@@shortsectionnumber \let \@@shortsectionnumber...
\rawreference ...veryreference \makesectionformat \writereference {#2} {\sec... <argument> ...\finalsectionnumber }{\asciititle }} }\fi \executeifdefi! Missing \endcsname inserted. <to be read again> \let \@@shortsectionnumber ...@EA \ifx \csname \??se #1 \c!ownnumber \endcsname \r...
\makesectionformat ... \@@shortsectionnumber \let
\@@shortsectionnumber \@@s...
\rawreference ...veryreference \makesectionformat \writereference {#2} {\sec... <argument> ...\finalsectionnumber }{\asciititle }} }\fi \executeifdefined {\?...
\douppercase ...rstoftwoarguments \edef \ascii {#1 }\edef \ascii {\expandafte... ...
8<---
Using the trivial solution (\uppercase) does not work because with a non-il1 regime it does not handle the accented characters (A umlat, O umlaut) correctly. I use UTF, as it contains all the characters I need.
So, what has changed in the \WORD? It works \WORD{fine} within text but not in the headings.
TIA,
- Ville
------------------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Ville Voipio wrote:
I started to edit an old document with capitalized headings. Making the headings was rather difficult (as can be seen on this list about a year ago), and now it seems to have broken again.
I have:
\setuphead[title] [page=yes, before={\strut\blank[5*big]}, after={\textrule\blank}, align=middle, style=\tfb, textcommand=\WORD ]
it's nearly impossible to get this working for all features (keep in mind that tex has no real feature to map font chars to other font chars) esp those with special chars. the best solution is to use a caps font (or to create a pseudo caps font ) btw, \starttext \title{test \eacute \beta} \stoptext works ok here (can you try the latest version - beta?) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Ville Voipio wrote:
I started to edit an old document with capitalized headings. Making the headings was rather difficult (as can be seen on this list about a year ago), and now it seems to have broken again.
I have:
\setuphead[title] [page=yes, before={\strut\blank[5*big]}, after={\textrule\blank}, align=middle, style=\tfb, textcommand=\WORD ]
This worked fine in the past. Not anymore:
Something like this is why there is a new syntax: \setuphead[title] [deeptextcommand=\WORD] Does that work? Taco
participants (3)
-
Hans Hagen
-
Taco Hoekwater
-
Ville Voipio