* \setuphead
@ 2010-10-18 7:25 Herbert Voss
2010-10-18 7:52 ` \setuphead luigi scarso
0 siblings, 1 reply; 7+ messages in thread
From: Herbert Voss @ 2010-10-18 7:25 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
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] 7+ messages in thread
* Re: \setuphead
2010-10-18 7:25 \setuphead Herbert Voss
@ 2010-10-18 7:52 ` luigi scarso
2010-10-18 8:00 ` \setuphead Herbert Voss
0 siblings, 1 reply; 7+ messages in thread
From: luigi scarso @ 2010-10-18 7:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
2010/10/18 Herbert Voss <Herbert.Voss@fu-berlin.de>:
> 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
___________________________________________________________________________________
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] 7+ messages in thread
* Re: \setuphead
2010-10-18 7:52 ` \setuphead luigi scarso
@ 2010-10-18 8:00 ` Herbert Voss
2010-10-18 8:08 ` \setuphead Hans Hagen
2010-10-18 8:08 ` \setuphead Thomas Schmitz
0 siblings, 2 replies; 7+ messages in thread
From: Herbert Voss @ 2010-10-18 8:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 18.10.2010 09:52, schrieb luigi scarso:
> 2010/10/18 Herbert Voss <Herbert.Voss@fu-berlin.de>:
>> 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
___________________________________________________________________________________
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] 7+ messages in thread
* Re: \setuphead
2010-10-18 8:00 ` \setuphead Herbert Voss
@ 2010-10-18 8:08 ` Hans Hagen
2010-10-18 8:08 ` \setuphead Thomas Schmitz
1 sibling, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2010-10-18 8:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 7+ messages in thread
* Re: \setuphead
2010-10-18 8:00 ` \setuphead Herbert Voss
2010-10-18 8:08 ` \setuphead Hans Hagen
@ 2010-10-18 8:08 ` Thomas Schmitz
2010-10-18 8:12 ` \setuphead Herbert Voss
1 sibling, 1 reply; 7+ messages in thread
From: Thomas Schmitz @ 2010-10-18 8:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, 18 Oct 2010 10:00:40 +0200
Herbert Voss <Herbert.Voss@FU-Berlin.DE> 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
>
> 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
___________________________________________________________________________________
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] 7+ messages in thread
* Re: \setuphead
2010-10-18 8:08 ` \setuphead Thomas Schmitz
@ 2010-10-18 8:12 ` Herbert Voss
2010-10-19 19:37 ` \setuphead Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Herbert Voss @ 2010-10-18 8:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 7+ messages in thread
* Re: \setuphead
2010-10-18 8:12 ` \setuphead Herbert Voss
@ 2010-10-19 19:37 ` Hans Hagen
0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2010-10-19 19:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 7+ messages in thread
end of thread, other threads:[~2010-10-19 19:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-18 7:25 \setuphead Herbert Voss
2010-10-18 7:52 ` \setuphead luigi scarso
2010-10-18 8:00 ` \setuphead Herbert Voss
2010-10-18 8:08 ` \setuphead Hans Hagen
2010-10-18 8:08 ` \setuphead Thomas Schmitz
2010-10-18 8:12 ` \setuphead Herbert Voss
2010-10-19 19:37 ` \setuphead Hans Hagen
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).