Re: [NTG-context] Custom itemize Symbols
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 ___
Re: [NTG-context] Custom itemize Symbols
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 ___
Re: [NTG-context] Custom itemize Symbols
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 ___
[NTG-context] Custom itemize Symbols
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 ___
Re: [NTG-context] custom itemize
On Fri, 4 Aug 2006, Renaud AUBIN wrote: > > % frenchitemize > \setbox0=\hbox{--~} > \def\indenteddash#1{\hskip\parindent--~} > \definesymbol[indentdash][\indenteddash] > \def\startfrenchitemize{\startitemize[indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr > \parindent + \wd0 \relax]} > \def\stopfrenchitemize{\stopitemize} > > % frenchenumerate > \setbox1=\hbox{0.~} > \def\indentedfrenchnumber#1{\hskip\parindent#1.~} > \defineconversion[frenchnumber][\indentedfrenchnumber] > \def\startfrenchenumerate{\startitemize[frenchnumber,packed,joinedup,intext][stopper={},indentnext=yes,width=\dimexpr > \parindent + \wd1 \relax]} > \def\stopfrenchenumerate{\stopitemize} There is \setupitemgroup and \defineitemgroup for this kind of things. So you can do \defineitemgroup[frenchitemize] \setupitemgroup[frenchitemize] [each] [indentdash,packed,joinedup,intext] [indentnext=yes,width=\dimexpr \parindent + \wd0 \relax] etc. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] custom itemize
% frenchitemize \setbox0=\hbox{--~} \def\indenteddash#1{\hskip\parindent--~} \definesymbol[indentdash][\indenteddash] \def\startfrenchitemize{\startitemize[indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr \parindent + \wd0 \relax]} \def\stopfrenchitemize{\stopitemize} % frenchenumerate \setbox1=\hbox{0.~} \def\indentedfrenchnumber#1{\hskip\parindent#1.~} \defineconversion[frenchnumber][\indentedfrenchnumber] \def\startfrenchenumerate{\startitemize[frenchnumber,packed,joinedup,intext][stopper={},indentnext=yes,width=\dimexpr \parindent + \wd1 \relax]} \def\stopfrenchenumerate{\stopitemize} % default behavior of itemize (frenchitemize) \setupitemize[each][indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr \parindent + \wd0 \relax] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] custom itemize
Renaud AUBIN wrote: > > Hi all, > > Some times ago, Taco helps me to define a custom itemize: > \setbox0=\hbox{--~} > \def\indenteddash#1{\hskip\parindent--~} > \definesymbol[indentdash][\indenteddash] > \setupitemize[each][indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr > > \parindent + \wd0 \relax] > Now, I would a new custom itemize with numbered items: > > 1. first paragraph .. > with a lot of text (multiline), > 2. second paragraph .. > with a lot of text (multiline). > > How to do that ? \setbox0=\hbox{0.~} \def\indenteddash#1{\hskip\parindent #1.~} \defineconversion[indentdash][\indenteddash] \setup... % as before Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] custom itemize
Hi all, Some times ago, Taco helps me to define a custom itemize: \setbox0=\hbox{--~} \def\indenteddash#1{\hskip\parindent--~} \definesymbol[indentdash][\indenteddash] \setupitemize[each][indentdash,packed,joinedup,intext][indentnext=yes,width=\dimexpr \parindent + \wd0 \relax] The result of, for example: \startitemize \item first paragraph ... with a lot of text (multiline), \item second paragraph ... with a lot of text (multiline). \stopitemize is: -- first paragraph .. with a lot of text (multiline), -- second paragraph .. with a lot of text (multiline). Now, I would a new custom itemize with numbered items: 1. first paragraph .. with a lot of text (multiline), 2. second paragraph .. with a lot of text (multiline). How to do that ? TIA Renaud ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] custom itemize bullet
Stuart Jansen wrote: On Thu, 2005-07-28 at 22:47 +0200, Taco Hoekwater wrote: \definesymbol[mysymbol][{$\diamond$}] \startitemize[mysymbol,packed] \item foo \item bar \item baz \stopitemize /me slaps forehead as penalty add taco's solution to te wiki -) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] custom itemize bullet
Taco Hoekwater wrote: Stuart Jansen wrote: For the benefit of anyone reading the archives, the solution requires a \bgroup \egroup pair. Alternatively, if you choose an as-of-yet unknown name for the symbol, then you need to explicitly use it, but no harm is done to the 'normal' environment: \definesymbol[mysymbol][{$\diamond$}] \startitemize[mysymbol,packed] \item foo \item bar \item baz \stopitemize right, best choose such a verbose name otherwise you get a clash with potential keys (taco and i have such a hard wired list of context keys built in our heads -) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] custom itemize bullet
Stuart Jansen wrote: On Thu, 2005-07-28 at 21:52 +0200, Hans Hagen wrote: I've added a custom font and defined symbols from it: *snip* This produces the right symbol. But I can't figure out how to use that bullet in an itemized list. I don't think I can use \usesymbols because in some lists I want the regular bullet, and in others I want the custom bullet. Any tips would be appreciated. see symb-mis.tex \definesymbol [1] [{\symbol[bullet]}] \definesymbol [2] [{\symbol[dash]}] ... so \definesymbol[1]{{\symbol[Glamocon Retrobats][GuruBullet]}} \definesymbol[xx]{{\symbol[Glamocon Retrobats][GuruBullet]}} For the benefit of anyone reading the archives, the solution requires a \bgroup \egroup pair. \starttext %% Using custom bullet \bgroup \definesymbol[1][{$\diamond$}] \startitemize[packed] \item foo \item bar \item baz \stopitemize \egroup %% Using normal bullet \startitemize[packed] \item foo \item bar \item baz \stopitemize \starttext it depends, \definesymbol[11][{$\diamond$}] \startitemize[11,packed] does not need grouping; alternatively one can define a new itemgroup with its own symbols Hans -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] custom itemize bullet
On Thu, 2005-07-28 at 22:47 +0200, Taco Hoekwater wrote: >\definesymbol[mysymbol][{$\diamond$}] >\startitemize[mysymbol,packed] >\item foo >\item bar >\item baz >\stopitemize /me slaps forehead Of course. I was trying \startitemize[symbol=mysymbol] and getting nowhere. -- Stuart Jansen <[EMAIL PROTECTED]> Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] custom itemize bullet
Stuart Jansen wrote: For the benefit of anyone reading the archives, the solution requires a \bgroup \egroup pair. Alternatively, if you choose an as-of-yet unknown name for the symbol, then you need to explicitly use it, but no harm is done to the 'normal' environment: \definesymbol[mysymbol][{$\diamond$}] \startitemize[mysymbol,packed] \item foo \item bar \item baz \stopitemize Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] custom itemize bullet
On Thu, 2005-07-28 at 21:52 +0200, Hans Hagen wrote: > >I've added a custom font and defined symbols from it: *snip* > >This produces the right symbol. But I can't figure out how to use that > >bullet in an itemized list. I don't think I can use \usesymbols because > >in some lists I want the regular bullet, and in others I want the custom > >bullet. Any tips would be appreciated. > > > see symb-mis.tex > > \definesymbol [1] [{\symbol[bullet]}] > \definesymbol [2] [{\symbol[dash]}] > ... > > so > > \definesymbol[1]{{\symbol[Glamocon Retrobats][GuruBullet]}} > > \definesymbol[xx]{{\symbol[Glamocon Retrobats][GuruBullet]}} For the benefit of anyone reading the archives, the solution requires a \bgroup \egroup pair. \starttext %% Using custom bullet \bgroup \definesymbol[1][{$\diamond$}] \startitemize[packed] \item foo \item bar \item baz \stopitemize \egroup %% Using normal bullet \startitemize[packed] \item foo \item bar \item baz \stopitemize \starttext -- Stuart Jansen <[EMAIL PROTECTED]> Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] custom itemize bullet
Stuart Jansen wrote: I've added a custom font and defined symbols from it: % \loadmapfile[texnansi-glambats.map] \definefontsynonym [GlamoconRetrobats][texnansi-glambats][encoding=texnansi] \def\GlamoconRetrobatsSym#1{\getglyph{GlamoconRetrobats}{\char#1}} \startsymbolset[Glamocon Retrobats] \definesymbol[GuruBullet][\GlamoconRetrobatsSym{121}] % other symbols \stopsymbolset \starttext \symbol[Glamocon Retrobats][GuruBullet] \stoptext % This produces the right symbol. But I can't figure out how to use that bullet in an itemized list. I don't think I can use \usesymbols because in some lists I want the regular bullet, and in others I want the custom bullet. Any tips would be appreciated. see symb-mis.tex \definesymbol [1] [{\symbol[bullet]}] \definesymbol [2] [{\symbol[dash]}] ... so \definesymbol[1]{{\symbol[Glamocon Retrobats][GuruBullet]}} \definesymbol[xx]{{\symbol[Glamocon Retrobats][GuruBullet]}} etc - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] custom itemize bullet
I've added a custom font and defined symbols from it: % \loadmapfile[texnansi-glambats.map] \definefontsynonym [GlamoconRetrobats][texnansi-glambats][encoding=texnansi] \def\GlamoconRetrobatsSym#1{\getglyph{GlamoconRetrobats}{\char#1}} \startsymbolset[Glamocon Retrobats] \definesymbol[GuruBullet][\GlamoconRetrobatsSym{121}] % other symbols \stopsymbolset \starttext \symbol[Glamocon Retrobats][GuruBullet] \stoptext % This produces the right symbol. But I can't figure out how to use that bullet in an itemized list. I don't think I can use \usesymbols because in some lists I want the regular bullet, and in others I want the custom bullet. Any tips would be appreciated. -- Stuart Jansen <[EMAIL PROTECTED]> Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context