* Custom itemize Symbols
@ 2012-03-21 9:19 Malte Stien
2012-03-21 9:32 ` Thomas A. Schmitz
2012-03-21 12:11 ` Wolfgang Schuster
0 siblings, 2 replies; 4+ messages in thread
From: Malte Stien @ 2012-03-21 9:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi all,
Is there a way to define your own itemize symbols? I would like a solid square, as in symbol 8 (referring to Table 10.1 in the Context Manual, but solid/filled whereas 8 is hollow.
I tried to declare my own bullet point, as in:
\def\squarebullet{\vrule height .9ex width .8ex depth -.1ex } % square bullet
and then tried to use it in the \startitemize command, but it appears that command does not take commands as its first argument:
\startitemize[\squarebullet, packed]
\item foo
\item baz
...
\stopitemize
So here goes that idea. Other idea was to use \sym{\squarebullet}. That actually works, however, the problem is that it needs to be specified for the individual bullet point. I need something that can be specified in \setupitemize, such that my writers get that symbol automatically without having any control over it.
Any ideas?
Regards,
Malte
___________________________________________________________________________________
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] 4+ messages in thread
* Re: Custom itemize Symbols
2012-03-21 9:19 Custom itemize Symbols Malte Stien
@ 2012-03-21 9:32 ` Thomas A. Schmitz
2012-03-21 12:11 ` Wolfgang Schuster
1 sibling, 0 replies; 4+ messages in thread
From: Thomas A. Schmitz @ 2012-03-21 9:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 03/21/2012 10:19 AM, Malte Stien wrote:
> Hi all,
>
> Is there a way to define your own itemize symbols? I would like a solid square, as in symbol 8 (referring to Table 10.1 in the Context Manual, but solid/filled whereas 8 is hollow.
>
> I tried to declare my own bullet point, as in:
>
> \def\squarebullet{\vrule height .9ex width .8ex depth -.1ex } % square bullet
>
> and then tried to use it in the \startitemize command, but it appears that command does not take commands as its first argument:
>
> \startitemize[\squarebullet, packed]
> \item foo
> \item baz
> ...
> \stopitemize
>
> So here goes that idea. Other idea was to use \sym{\squarebullet}. That actually works, however, the problem is that it needs to be specified for the individual bullet point. I need something that can be specified in \setupitemize, such that my writers get that symbol automatically without having any control over it.
>
> Any ideas?
have you tried
\definesymbol [1] [\squarebullet] ? Or, if you want it only for a few items
\sym{\squarebullet}
HTH
Thomas
___________________________________________________________________________________
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] 4+ messages in thread
* Re: Custom itemize Symbols
2012-03-21 9:19 Custom itemize Symbols Malte Stien
2012-03-21 9:32 ` Thomas A. Schmitz
@ 2012-03-21 12:11 ` Wolfgang Schuster
2012-03-21 12:18 ` Wolfgang Schuster
1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2012-03-21 12:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 21.03.2012 um 10:19 schrieb Malte Stien:
> Hi all,
>
> Is there a way to define your own itemize symbols? I would like a solid square, as in symbol 8 (referring to Table 10.1 in the Context Manual, but solid/filled whereas 8 is hollow.
>
> I tried to declare my own bullet point, as in:
>
> \def\squarebullet{\vrule height .9ex width .8ex depth -.1ex } % square bullet
>
> and then tried to use it in the \startitemize command, but it appears that command does not take commands as its first argument:
>
> \startitemize[\squarebullet, packed]
> \item foo
> \item baz
> ...
> \stopitemize
>
> So here goes that idea. Other idea was to use \sym{\squarebullet}. That actually works, however, the problem is that it needs to be specified for the individual bullet point. I need something that can be specified in \setupitemize, such that my writers get that symbol automatically without having any control over it.
>
> Any ideas?
\definesymbol[blacksquare][\textmath\blacksquare]
\setupitemize[1][blacksquare]
\starttext
\startitemize
\item One
\item Two
\item Three
\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] 4+ messages in thread
* Re: Custom itemize Symbols
2012-03-21 12:11 ` Wolfgang Schuster
@ 2012-03-21 12:18 ` Wolfgang Schuster
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2012-03-21 12:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 21.03.2012 um 13:11 schrieb Wolfgang Schuster:
>
> Am 21.03.2012 um 10:19 schrieb Malte Stien:
>
>> Hi all,
>>
>> Is there a way to define your own itemize symbols? I would like a solid square, as in symbol 8 (referring to Table 10.1 in the Context Manual, but solid/filled whereas 8 is hollow.
>>
>> I tried to declare my own bullet point, as in:
>>
>> \def\squarebullet{\vrule height .9ex width .8ex depth -.1ex } % square bullet
>>
>> and then tried to use it in the \startitemize command, but it appears that command does not take commands as its first argument:
>>
>> \startitemize[\squarebullet, packed]
>> \item foo
>> \item baz
>> ...
>> \stopitemize
>>
>> So here goes that idea. Other idea was to use \sym{\squarebullet}. That actually works, however, the problem is that it needs to be specified for the individual bullet point. I need something that can be specified in \setupitemize, such that my writers get that symbol automatically without having any control over it.
>>
>> Any ideas?
>
> \definesymbol[blacksquare][\textmath\blacksquare]
And for MkIV one can replace this with \setupsymbolset[text] because the “text” symbol set defines a “blacksquare” symbol.
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] 4+ messages in thread
end of thread, other threads:[~2012-03-21 12:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-21 9:19 Custom itemize Symbols Malte Stien
2012-03-21 9:32 ` Thomas A. Schmitz
2012-03-21 12:11 ` Wolfgang Schuster
2012-03-21 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).