ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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

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