From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/8836 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: How to use my own symbols? Date: Fri, 26 Jul 2002 23:41:47 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020726233942.031e42b8@server-1> References: <3D4135BA.CE590011@nlr.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035399211 30862 80.91.224.250 (23 Oct 2002 18:53:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:53:31 +0000 (UTC) Cc: ntg-context Original-To: Wybo Dekker In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:8836 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:8836 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 -------------------------------------------------------------------------