* How to use my own symbols?
@ 2002-07-26 11:42 Rob van Swol
2002-07-26 15:44 ` Wybo Dekker
0 siblings, 1 reply; 3+ messages in thread
From: Rob van Swol @ 2002-07-26 11:42 UTC (permalink / raw)
Hi,
In LaTeX I was able to define a symbol (for instance a icon representing
a file or an icon representing a directory) like this:
\font\nf=myfont
\newcommand{\dirpic}{{\nf \char4}~}
\newcommand{\filepic}{{\nf \char5}~}
Within the working directory I had the following files:
myfont.tfm, myfont300pk, myfont600pk.
How can I do similar things in ConTeXt (without putting stuff in
/share/texmf/..) ?
Regards,
Rob
--
_____________________________________________________________
Rob W. van Swol
National Aerospace Laboratory NLR Tel. +31 527 248252
P.O. Box 153 Fax +31 527 248210
8300 AD Emmeloord E-Mail vanswol@nlr.nl
The Netherlands http://www.neonet.nl/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to use my own symbols?
2002-07-26 11:42 How to use my own symbols? Rob van Swol
@ 2002-07-26 15:44 ` Wybo Dekker
2002-07-26 21:41 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Wybo Dekker @ 2002-07-26 15:44 UTC (permalink / raw)
On Fri, 26 Jul 2002, Rob van Swol wrote:
> In LaTeX I was able to define a symbol (for instance a icon representing
> a file or an icon representing a directory) like this:
>
> \font\nf=myfont
> \newcommand{\dirpic}{{\nf \char4}~}
> \newcommand{\filepic}{{\nf \char5}~}
>
> Within the working directory I had the following files:
>
> myfont.tfm, myfont300pk, myfont600pk.
>
> How can I do similar things in ConTeXt (without putting stuff in
> /share/texmf/..) ?
just replace the \newcommands with \defs:
\def\dirpic{{\nf \char4}~}
\def\filepic{{\nf \char5}~}
--
Wybo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to use my own symbols?
2002-07-26 15:44 ` Wybo Dekker
@ 2002-07-26 21:41 ` Hans Hagen
0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2002-07-26 21:41 UTC (permalink / raw)
Cc: ntg-context
At 05:44 PM 7/26/2002 +0200, Wybo Dekker wrote:
>On Fri, 26 Jul 2002, Rob van Swol wrote:
>
> > In LaTeX I was able to define a symbol (for instance a icon representing
> > a file or an icon representing a directory) like this:
> >
> > \font\nf=myfont
> > \newcommand{\dirpic}{{\nf \char4}~}
> > \newcommand{\filepic}{{\nf \char5}~}
> >
> > Within the working directory I had the following files:
> >
> > myfont.tfm, myfont300pk, myfont600pk.
> >
> > How can I do similar things in ConTeXt (without putting stuff in
> > /share/texmf/..) ?
>
>just replace the \newcommands with \defs:
>
>\def\dirpic{{\nf \char4}~}
>\def\filepic{{\nf \char5}~}
\definesymbol[dirpic][\getglyph{myfont}{\char4}]
is better, since (1) it does not clash with commands, and (2) it scales
with the current font.
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-07-26 21:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-26 11:42 How to use my own symbols? Rob van Swol
2002-07-26 15:44 ` Wybo Dekker
2002-07-26 21:41 ` 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).