* customized item list symbol/graphic
@ 2010-12-11 13:27 Jan-Erik Hägglöf
2010-12-11 13:42 ` Taco Hoekwater
0 siblings, 1 reply; 8+ messages in thread
From: Jan-Erik Hägglöf @ 2010-12-11 13:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1095 bytes --]
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
[-- Attachment #2: test.tex --]
[-- Type: text/x-tex, Size: 596 bytes --]
\startuniqueMPgraphic{square}
draw roundedsquare(20,20,2) withrgbcolor (.625,0,0);
\stopuniqueMPgraphic
\defineoverlay[square][\uniqueMPgraphic{square}]
\definedescription
[task]
[text=\uniqueMPgraphic{square}, width=broad]
\setupitemgroup
[itemize]
[1]
[symbol=square]
\starttext
\section {First try to change symbol}
\startitemize[1,columns]
\dorecurse{10}{\item itempoint \par}
\stopitemize
\section {Next try to define an own description}
\startcolumns
\dorecurse{5}{\task very long sentence i will now write to create this weird issue \par}
\stopcolumns
\stoptext
[-- Attachment #3: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: customized item list symbol/graphic
2010-12-11 13:27 customized item list symbol/graphic Jan-Erik Hägglöf
@ 2010-12-11 13:42 ` Taco Hoekwater
2010-12-11 14:37 ` Jan-Erik Hägglöf
0 siblings, 1 reply; 8+ messages in thread
From: Taco Hoekwater @ 2010-12-11 13:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 8+ messages in thread
* Re: customized item list symbol/graphic
2010-12-11 13:42 ` Taco Hoekwater
@ 2010-12-11 14:37 ` Jan-Erik Hägglöf
2010-12-11 15:23 ` Wolfgang Schuster
0 siblings, 1 reply; 8+ messages in thread
From: Jan-Erik Hägglöf @ 2010-12-11 14:37 UTC (permalink / raw)
To: Taco Hoekwater, mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 8+ messages in thread
* Re: customized item list symbol/graphic
2010-12-11 14:37 ` Jan-Erik Hägglöf
@ 2010-12-11 15:23 ` Wolfgang Schuster
2010-12-11 16:14 ` Jan-Erik Hägglöf
0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2010-12-11 15:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 8+ messages in thread
* Re: customized item list symbol/graphic
2010-12-11 15:23 ` Wolfgang Schuster
@ 2010-12-11 16:14 ` Jan-Erik Hägglöf
2010-12-11 17:22 ` Jan-Erik Hägglöf
2010-12-11 17:24 ` Wolfgang Schuster
0 siblings, 2 replies; 8+ messages in thread
From: Jan-Erik Hägglöf @ 2010-12-11 16:14 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: customized item list symbol/graphic
2010-12-11 16:14 ` Jan-Erik Hägglöf
@ 2010-12-11 17:22 ` Jan-Erik Hägglöf
2010-12-11 17:24 ` Wolfgang Schuster
1 sibling, 0 replies; 8+ messages in thread
From: Jan-Erik Hägglöf @ 2010-12-11 17:22 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
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] 8+ messages in thread
* Re: customized item list symbol/graphic
2010-12-11 16:14 ` Jan-Erik Hägglöf
2010-12-11 17:22 ` Jan-Erik Hägglöf
@ 2010-12-11 17:24 ` Wolfgang Schuster
2010-12-11 17:39 ` customized item list symbol/graphic [solved] Jan-Erik Hägglöf
1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2010-12-11 17:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 8+ messages in thread
* Re: customized item list symbol/graphic [solved]
2010-12-11 17:24 ` Wolfgang Schuster
@ 2010-12-11 17:39 ` Jan-Erik Hägglöf
0 siblings, 0 replies; 8+ messages in thread
From: Jan-Erik Hägglöf @ 2010-12-11 17:39 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
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] 8+ messages in thread
end of thread, other threads:[~2010-12-11 17:39 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-11 13:27 customized item list symbol/graphic Jan-Erik Hägglöf
2010-12-11 13:42 ` Taco Hoekwater
2010-12-11 14:37 ` Jan-Erik Hägglöf
2010-12-11 15:23 ` Wolfgang Schuster
2010-12-11 16:14 ` Jan-Erik Hägglöf
2010-12-11 17:22 ` Jan-Erik Hägglöf
2010-12-11 17:24 ` Wolfgang Schuster
2010-12-11 17:39 ` customized item list symbol/graphic [solved] Jan-Erik Hägglöf
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).