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
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 -----------------------------------------------------------------
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
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
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
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 -----------------------------------------------------------------
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 -----------------------------------------------------------------
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Stuart Jansen
-
Taco Hoekwater