customized item list symbol/graphic
HI All Contexters out there! I'm a Guy from sweden who will appreciate a possible solution to following problem. I'm interested in to do a personalized itemlist with a symbol created in metapost. Here is an example: \startuniqueMPgraphic{square} draw roundedsquare(20,20,2) withrgbcolor (.625,0,0); \stopuniqueMPgraphic \defineoverlay[square][\uniqueMPgraphic{square}] \setupitemgroup [itemize] [1] [symbol=square] \starttext \startitemize[1,columns] \dorecurse{10}{\item itempoint \par} \stopitemize \stoptext This doesn't have any effect so my question is how do I manage this? I did following as an alternative solution and it worked as I wanted but If I run this example the linebreak comes in to the next column(third item), which is not what I want. See example below! \definedescription [task] [text=\uniqueMPgraphic{square}, width=broad] \startcolumns \dorecurse{5}{\task very long sentence i will now write to create this weird issue \par} \stopcolumns How do I prevent this, or is there a better solution? Many thanks in advance Janneman
On 12/11/2010 02:27 PM, Jan-Erik Hägglöf wrote:
HI All Contexters out there!
I'm a Guy from sweden who will appreciate a possible solution to following problem.
I'm interested in to do a personalized itemlist with a symbol created in metapost.
Here is an example:
There are two small problems with your example code:
\defineoverlay[square][\uniqueMPgraphic{square}]
That line should read \definesymbol[square][\uniqueMPgraphic{square}] as you need a symbol, not an overlay
\startitemize[1,columns]
And this '1' should go away: \startitemize[columns] because a '1' there is not a level, but a symbol identifier. Best wishes, Taco
On 2010-12-11 14:42, Taco Hoekwater wrote:
On 12/11/2010 02:27 PM, Jan-Erik Hägglöf wrote:
HI All Contexters out there!
I'm a Guy from sweden who will appreciate a possible solution to following problem.
I'm interested in to do a personalized itemlist with a symbol created in metapost.
Here is an example:
There are two small problems with your example code:
\defineoverlay[square][\uniqueMPgraphic{square}]
That line should read
\definesymbol[square][\uniqueMPgraphic{square}]
as you need a symbol, not an overlay
\startitemize[1,columns]
And this '1' should go away:
\startitemize[columns]
because a '1' there is not a level, but a symbol identifier.
Best wishes, Taco
Thanks that worked but how to manage more vertical whitespace? Janneman
Am 11.12.2010 um 15:37 schrieb Jan-Erik Hägglöf:
Thanks that worked but how to manage more vertical whitespace?
Before and after the list you can set the vertical space with \setupitemize [before={\blank[<dimension> or <keyword>]}, after={\blank[<dimension> or <keyword>]}] and between the individual items with \setupitemize [inbetween={\blank[<dimension> or <keyword>]}] Wolfgang
On 2010-12-11 16:23, Wolfgang Schuster wrote:
Am 11.12.2010 um 15:37 schrieb Jan-Erik Hägglöf:
Thanks that worked but how to manage more vertical whitespace? Before and after the list you can set the vertical space with
\setupitemize [before={\blank[<dimension> or<keyword>]}, after={\blank[<dimension> or<keyword>]}]
and between the individual items with
\setupitemize [inbetween={\blank[<dimension> or<keyword>]}]
Wolfgang None of the above setting worked for me. Even tried
\startitemize[columns,2*broad][inbetween={\blank[1cm]}] ... ... \stopitemize with no luck :-(
On 2010-12-11 17:14, Jan-Erik Hägglöf wrote:
On 2010-12-11 16:23, Wolfgang Schuster wrote:
Am 11.12.2010 um 15:37 schrieb Jan-Erik Hägglöf:
Thanks that worked but how to manage more vertical whitespace? Before and after the list you can set the vertical space with
\setupitemize [before={\blank[<dimension> or<keyword>]}, after={\blank[<dimension> or<keyword>]}]
and between the individual items with
\setupitemize [inbetween={\blank[<dimension> or<keyword>]}]
Wolfgang None of the above setting worked for me. Even tried
\startitemize[columns,2*broad][inbetween={\blank[1cm]}] ... ... \stopitemize
with no luck :-(
___________________________________________________________________________________
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 ___________________________________________________________________________________
I've tested without the "columns" parameter and spacing works, seems to be a bug?? Too bad I want the columns!! Janneman
Am 11.12.2010 um 17:14 schrieb Jan-Erik Hägglöf:
None of the above setting worked for me. Even tried
\startitemize[columns,2*broad][inbetween={\blank[1cm]}]
With the „columns“ keyword you get also packed items, to unset this setting add „unpacked“ to your setup: \startitemize[columns,unpacked,2*broad][inbetween={\blank[1cm]}] Please make complete examples next time which can be used without adding extra lines, e.g. this is what i used for your problem: \starttext \startitemize[columns,unpacked][inbetween={\blank[2*big]}] \dorecurse{4}{\item text} \stopitemize \stoptext Wolfgang
On 2010-12-11 18:24, Wolfgang Schuster wrote:
Am 11.12.2010 um 17:14 schrieb Jan-Erik Hägglöf:
None of the above setting worked for me. Even tried
\startitemize[columns,2*broad][inbetween={\blank[1cm]}] With the „columns“ keyword you get also packed items, to unset this setting add „unpacked“ to your setup:
\startitemize[columns,unpacked,2*broad][inbetween={\blank[1cm]}]
Please make complete examples next time which can be used without adding extra lines, e.g. this is what i used for your problem:
\starttext \startitemize[columns,unpacked][inbetween={\blank[2*big]}] \dorecurse{4}{\item text} \stopitemize \stoptext
Wolfgang
It worked! I will follow your advice next time! Thanks a lot! Jannema
participants (3)
-
Jan-Erik Hägglöf
-
Taco Hoekwater
-
Wolfgang Schuster