* custom itemize bullet
@ 2005-07-28 18:44 Stuart Jansen
2005-07-28 19:52 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Stuart Jansen @ 2005-07-28 18:44 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 808 bytes --]
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 <sjansen@gurulabs.com>
Guru Labs, L.C.
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: custom itemize bullet
2005-07-28 18:44 custom itemize bullet Stuart Jansen
@ 2005-07-28 19:52 ` Hans Hagen
2005-07-28 20:41 ` Stuart Jansen
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2005-07-28 19:52 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: custom itemize bullet
2005-07-28 19:52 ` Hans Hagen
@ 2005-07-28 20:41 ` Stuart Jansen
2005-07-28 20:47 ` Taco Hoekwater
2005-07-28 21:45 ` Hans Hagen
0 siblings, 2 replies; 8+ messages in thread
From: Stuart Jansen @ 2005-07-28 20:41 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 1086 bytes --]
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 <sjansen@gurulabs.com>
Guru Labs, L.C.
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: custom itemize bullet
2005-07-28 20:41 ` Stuart Jansen
@ 2005-07-28 20:47 ` Taco Hoekwater
2005-07-28 21:25 ` Stuart Jansen
2005-07-28 21:46 ` Hans Hagen
2005-07-28 21:45 ` Hans Hagen
1 sibling, 2 replies; 8+ messages in thread
From: Taco Hoekwater @ 2005-07-28 20:47 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: custom itemize bullet
2005-07-28 20:47 ` Taco Hoekwater
@ 2005-07-28 21:25 ` Stuart Jansen
2005-07-28 21:48 ` Hans Hagen
2005-07-28 21:46 ` Hans Hagen
1 sibling, 1 reply; 8+ messages in thread
From: Stuart Jansen @ 2005-07-28 21:25 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 370 bytes --]
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 <sjansen@gurulabs.com>
Guru Labs, L.C.
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: custom itemize bullet
2005-07-28 20:41 ` Stuart Jansen
2005-07-28 20:47 ` Taco Hoekwater
@ 2005-07-28 21:45 ` Hans Hagen
1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2005-07-28 21:45 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: custom itemize bullet
2005-07-28 20:47 ` Taco Hoekwater
2005-07-28 21:25 ` Stuart Jansen
@ 2005-07-28 21:46 ` Hans Hagen
1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2005-07-28 21:46 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: custom itemize bullet
2005-07-28 21:25 ` Stuart Jansen
@ 2005-07-28 21:48 ` Hans Hagen
0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2005-07-28 21:48 UTC (permalink / raw)
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
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-07-28 21:48 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-28 18:44 custom itemize bullet Stuart Jansen
2005-07-28 19:52 ` Hans Hagen
2005-07-28 20:41 ` Stuart Jansen
2005-07-28 20:47 ` Taco Hoekwater
2005-07-28 21:25 ` Stuart Jansen
2005-07-28 21:48 ` Hans Hagen
2005-07-28 21:46 ` Hans Hagen
2005-07-28 21:45 ` Hans Hagen
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).