ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setupitemize[afterhead=...] not working
@ 2008-06-23 12:43 Peter Münster
  2008-06-23 12:57 ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Münster @ 2008-06-23 12:43 UTC (permalink / raw)
  To: ConTeXt list

Hello,

The parameter "afterhead" seems to be ignored (MKII and MKIV):

\setupitemize[afterhead=:]
\starttext
\startitemize
\txt{bla} bla
\stopitemize
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: \setupitemize[afterhead=...] not working
  2008-06-23 12:43 \setupitemize[afterhead=...] not working Peter Münster
@ 2008-06-23 12:57 ` Wolfgang Schuster
  2008-06-23 16:22   ` Peter Münster
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2008-06-23 12:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Jun 23, 2008 at 2:43 PM, Peter Münster <pmlists@free.fr> wrote:
> Hello,
>
> The parameter "afterhead" seems to be ignored (MKII and MKIV):

There is no \head in your numeration.

> \setupitemize[afterhead=:]

Try:

\def\aftercolon{\groupedcommand{}{:}}
\setupitemize[headstyle=\aftercolon]

> \starttext
> \startitemize
> \txt{bla} bla
> \stopitemize
> \stoptext

Regards
Wolfgang
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: \setupitemize[afterhead=...] not working
  2008-06-23 12:57 ` Wolfgang Schuster
@ 2008-06-23 16:22   ` Peter Münster
  2008-06-23 21:07     ` Aditya Mahajan
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Münster @ 2008-06-23 16:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Jun 23 2008, Wolfgang Schuster wrote:

> > The parameter "afterhead" seems to be ignored (MKII and MKIV):
> 
> There is no \head in your numeration.

Indeed, but "headstyle" applies nevertheless.

> > \setupitemize[afterhead=:]
> 
> Try:
> 
> \def\aftercolon{\groupedcommand{}{:}}
> \setupitemize[headstyle=\aftercolon]

Thanks, nice workaround!
Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: \setupitemize[afterhead=...] not working
  2008-06-23 16:22   ` Peter Münster
@ 2008-06-23 21:07     ` Aditya Mahajan
  2008-06-24  7:13       ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Aditya Mahajan @ 2008-06-23 21:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 858 bytes --]

On Mon, 23 Jun 2008, Peter Münster wrote:

> On Mon, Jun 23 2008, Wolfgang Schuster wrote:
>
>>> The parameter "afterhead" seems to be ignored (MKII and MKIV):
>>
>> There is no \head in your numeration.
>
> Indeed, but "headstyle" applies nevertheless.

Yes, this is how \txt is defined

\appendtoks \letvalue\v!txt  \itemgrouptext  \to \itemgroupcommands

\def\itemgrouptext#1%
{\def\symsymbol{\doitemattributes\currentitemlevel\c!headstyle\c!headcolor{#1}}%
    \settrue\symbollistitem
    \settrue\txtlistitem
    \itemgroupitem}

So, headstyle and headcolor are used, but not afterhead. Actually, is you 
use \head, the result is interesting :)

\setupitemize[afterhead=:]
\starttext
\startitemize
   \head This is a test

     what happens here
\stopitemize
\stoptext

Certainly not what I would have expected.

Aditya

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: \setupitemize[afterhead=...] not working
  2008-06-23 21:07     ` Aditya Mahajan
@ 2008-06-24  7:13       ` Wolfgang Schuster
  2008-06-24  9:45         ` Peter Münster
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2008-06-24  7:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Jun 23, 2008 at 11:07 PM, Aditya Mahajan <adityam@umich.edu> wrote:
> On Mon, 23 Jun 2008, Peter Münster wrote:
>
>> On Mon, Jun 23 2008, Wolfgang Schuster wrote:
>>
>>>> The parameter "afterhead" seems to be ignored (MKII and MKIV):
>>>
>>> There is no \head in your numeration.
>>
>> Indeed, but "headstyle" applies nevertheless.
>
> Yes, this is how \txt is defined
>
> \appendtoks \letvalue\v!txt  \itemgrouptext  \to \itemgroupcommands
>
> \def\itemgrouptext#1%
> {\def\symsymbol{\doitemattributes\currentitemlevel\c!headstyle\c!headcolor{#1}}%
>   \settrue\symbollistitem
>   \settrue\txtlistitem
>   \itemgroupitem}
>
> So, headstyle and headcolor are used, but not afterhead. Actually, is you
> use \head, the result is interesting :)
>
> \setupitemize[afterhead=:]
> \starttext
> \startitemize
>  \head This is a test
>
>    what happens here
> \stopitemize
> \stoptext
>
> Certainly not what I would have expected.

It is what you expect after you have read the definition but funny for
the first moment.

@Peter: afterhead is meant for vertical material like skips, rules
etc. or you could
use to draw a frame around the itemize head.

Wolfgang
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: \setupitemize[afterhead=...] not working
  2008-06-24  7:13       ` Wolfgang Schuster
@ 2008-06-24  9:45         ` Peter Münster
  2008-06-24  9:57           ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Münster @ 2008-06-24  9:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Jun 24 2008, Wolfgang Schuster wrote:

> @Peter: afterhead is meant for vertical material like skips, rules
> etc. or you could
> use to draw a frame around the itemize head.

Ok, so afterhead applies only to the \head command. I've chosen \txt{},
because I need something like this:

\setupitemize[headstyle=\bf\groupedcommand{}{:}, width=5em, distance=1em]
\starttext
\startitemize
\txt{Short}
\input tufte
\txt{Very very very long}
\input tufte
\stopitemize
\stoptext

Should \head better be used for this purpose? And if yes, how?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: \setupitemize[afterhead=...] not working
  2008-06-24  9:45         ` Peter Münster
@ 2008-06-24  9:57           ` Wolfgang Schuster
  2008-06-24 11:34             ` Peter Münster
  0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2008-06-24  9:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Jun 24, 2008 at 11:45 AM, Peter Münster <pmlists@free.fr> wrote:
> On Tue, Jun 24 2008, Wolfgang Schuster wrote:
>
>> @Peter: afterhead is meant for vertical material like skips, rules
>> etc. or you could
>> use to draw a frame around the itemize head.
>
> Ok, so afterhead applies only to the \head command. I've chosen \txt{},
> because I need something like this:
>
> \setupitemize[headstyle=\bf\groupedcommand{}{:}, width=5em, distance=1em]
> \starttext
> \startitemize
> \txt{Short}
> \input tufte
> \txt{Very very very long}
> \input tufte
> \stopitemize
> \stoptext
>
> Should \head better be used for this purpose? And if yes, how?

You should better use descriptions, this is what your example looks
like and what I guess only by looking at the output.

Regards
Wolfgang
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: \setupitemize[afterhead=...] not working
  2008-06-24  9:57           ` Wolfgang Schuster
@ 2008-06-24 11:34             ` Peter Münster
  2008-06-24 12:18               ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Münster @ 2008-06-24 11:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Jun 24 2008, Wolfgang Schuster wrote:

> > \setupitemize[headstyle=\bf\groupedcommand{}{:}, width=5em, distance=1em]
> > \starttext
> > \startitemize
> > \txt{Short}
> > \input tufte
> > \txt{Very very very long}
> > \input tufte
> > \stopitemize
> > \stoptext
> >
> > Should \head better be used for this purpose? And if yes, how?
> 
> You should better use descriptions, this is what your example looks
> like and what I guess only by looking at the output.

Indeed, but I don't know how to do that with descriptions... :(
Cheers, Peter

-- 
http://pmrb.free.fr/contact/

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: \setupitemize[afterhead=...] not working
  2008-06-24 11:34             ` Peter Münster
@ 2008-06-24 12:18               ` Wolfgang Schuster
  0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2008-06-24 12:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Jun 24, 2008 at 1:34 PM, Peter Münster <pmlists@free.fr> wrote:
> On Tue, Jun 24 2008, Wolfgang Schuster wrote:
>
>> > \setupitemize[headstyle=\bf\groupedcommand{}{:}, width=5em, distance=1em]
>> > \starttext
>> > \startitemize
>> > \txt{Short}
>> > \input tufte
>> > \txt{Very very very long}
>> > \input tufte
>> > \stopitemize
>> > \stoptext
>> >
>> > Should \head better be used for this purpose? And if yes, how?
>>
>> You should better use descriptions, this is what your example looks
>> like and what I guess only by looking at the output.
>
> Indeed, but I don't know how to do that with descriptions... :(

Me too, I come close to what do you want but two problems remain,
it's no possible to set a minimum width for the label and a unwanted
space is between the end of the head text and the colon.

\definedescription
  [peter]
  [align=left,
   location=hanging,
   margin=5em,
   width=broad,
   command=\groupedcommand{}{:}]

\starttext

\peter{Short}
\input tufte

\startpeter{Very very very long}
\input tufte
\stoppeter

\stoptext

Regards
Wolfgang
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-06-24 12:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-23 12:43 \setupitemize[afterhead=...] not working Peter Münster
2008-06-23 12:57 ` Wolfgang Schuster
2008-06-23 16:22   ` Peter Münster
2008-06-23 21:07     ` Aditya Mahajan
2008-06-24  7:13       ` Wolfgang Schuster
2008-06-24  9:45         ` Peter Münster
2008-06-24  9:57           ` Wolfgang Schuster
2008-06-24 11:34             ` Peter Münster
2008-06-24 12:18               ` Wolfgang Schuster

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).