\setupitemize[afterhead=...] not working
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/
On Mon, Jun 23, 2008 at 2:43 PM, Peter Münster
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
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/
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
On Mon, Jun 23, 2008 at 11:07 PM, Aditya Mahajan
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
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/
On Tue, Jun 24, 2008 at 11:45 AM, Peter Münster
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
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/
On Tue, Jun 24, 2008 at 1:34 PM, Peter Münster
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
participants (3)
-
Aditya Mahajan
-
Peter Münster
-
Wolfgang Schuster