in http://wiki.contextgarden.net/Titles is an example for a wrong setting: \starttext \setuphead[section][textstyle=\em,textcommand=\WORD] \section{A not so long title} \stoptext the wiki sais, that this leads to \WORD{\EM A not so long title} which should give an error. However, the above works for me in the same way as \starttext \setuphead[section][textstyle=\em,deeptextcommand=\WORD] \section{A not so long title} \stoptext mkiv, TeXLive2010 Herbert
2010/10/18 Herbert Voss
in http://wiki.contextgarden.net/Titles is an example for a wrong setting:
\starttext \setuphead[section][textstyle=\em,textcommand=\WORD] \section{A not so long title} \stoptext
the wiki sais, that this leads to \WORD{\EM A not so long title} which should give an error. However, the above works for me in the same way as
\starttext \setuphead[section][textstyle=\em,deeptextcommand=\WORD] \section{A not so long title} \stoptext Also this works \starttext \setuphead[section][textstyle=\WORD,textcommand=\emphit] \section{A not so long title} \stoptext
mkiv, TeXLive2010
Herbert ___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- luigi
Am 18.10.2010 09:52, schrieb luigi scarso:
2010/10/18 Herbert Voss
: in http://wiki.contextgarden.net/Titles is an example for a wrong setting:
\starttext \setuphead[section][textstyle=\em,textcommand=\WORD] \section{A not so long title} \stoptext
the wiki sais, that this leads to \WORD{\EM A not so long title} which should give an error. However, the above works for me in the same way as
Also this works \starttext \setuphead[section][textstyle=\WORD,textcommand=\emphit] \section{A not so long title} \stoptext
I know ... I want to know if the wiki text is outdated or not. However, I am looking for an example where deeptextcommand is really needed Herbert
On 18-10-2010 10:00, Herbert Voss wrote:
I know ... I want to know if the wiki text is outdated or not. However, I am looking for an example where deeptextcommand is really needed
This was introduced for very special purposes when one wants to work directly on the content (I never used it my self but it was a user request). Normally #1 and #2 for hooked in commands get more pases than the number and title: they get also the font and color switching so operating on the title directly is no fun then. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Mon, 18 Oct 2010 10:00:40 +0200
Herbert Voss
I know ... I want to know if the wiki text is outdated or not. However, I am looking for an example where deeptextcommand is really needed
Herbert
I get an error when I compile your code in mkii; deeptextcommand is needed. It's only in mkiv that your code works, AFAICS. So the wiki is not outdated but cautious. Thomas
Am 18.10.2010 10:08, schrieb Thomas Schmitz:
I want to know if the wiki text is outdated or not. However, I am looking for an example where deeptextcommand is really needed
I get an error when I compile your code in mkii; deeptextcommand is needed. It's only in mkiv that your code works, AFAICS.
I see thanks Herbert
On 18-10-2010 10:12, Herbert Voss wrote:
Am 18.10.2010 10:08, schrieb Thomas Schmitz:
I want to know if the wiki text is outdated or not. However, I am looking for an example where deeptextcommand is really needed
I happen to need deeptextcommand ... \definetype [boldtype] [style=\ttbf] \definehead [summary] [subsubsubsubject] \setuphead [summary] [style=, deeptextcommand=\boldtype, command=\MySummaryHead, color=blue] \startsummary[title={bla \relax}] .... \stopsummary In the proces I figured out that in mkiv the argument was not passed expanded so that's fixed in the next beta \type is typical a command that needs to be applied directly Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Herbert Voss
-
luigi scarso
-
Thomas Schmitz