From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2207 Path: main.gmane.org!not-for-mail From: "Christopher G D Tipper" Newsgroups: gmane.comp.tex.context Subject: Re: \pounds problem Date: Fri, 2 Jun 2000 16:00:50 +0300 Sender: owner-ntg-context@let.uu.nl Message-ID: <000901bfcc92$a8982ce0$e60761c3@chris> References: <000501bfcb2b$d0919fa0$530761c3@chris> <3.0.6.32.20000602004514.00b7e260@pop.wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035392994 6979 80.91.224.250 (23 Oct 2002 17:09:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:09:54 +0000 (UTC) Cc: "ConTeXT Mailing List" Original-To: "Hans Hagen" Xref: main.gmane.org gmane.comp.tex.context:2207 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2207 > At 11:50 PM 5/31/2000 +0300, Christopher G D Tipper wrote: > >Well, I have played around a bit, and I find the following in enco-win: > > > >\defineactivecharacter © {\copyright{}} > >\defineactivecharacter £ {\pounds{}} > > >So I'm stuck, and it looks like you've got the same problem too. Hans? > > I never needed the pound (and not even enco-win), but I know it's \sterling > -) > > Pound and Dollar are tricky ones, since in the tex fonts they are in the > same slot but not in each font. So, there is also \dollar. The saga continues... Basically, \sterling produces the right results with cmr fonts, but cussed old me is working in pos (URW postscript fonts), where it produces an italic $ symbol. So I cook up the following which produces exactly the right results: \setupbodyfont [ber,pos,ver,12pt] \def\pounds{\char191} \starttext \dollar dollar symbol \sterling pound sterling symbol \pounds \ss \pounds \stoptext Then I add \def\pounds{\char191} to the original document, and I get the following: ! Bad character code (19120). l.163 ...Raphael has called it the \pounds 20 problem. Given \pounds 20, he ? ! Emergency stop. Obviously it is appending the 20 in £20 to the character code. Is there a TeX trick for forcing it out of \char mode? Christopher PS I tried the \character[191] command and it complains: ! Missing number, treated as zero. [ \character #1->\ifcase #1 \unknowncharacter \or a\or b\or c\or d\or e\... l.163 ...ael has called it the \character[ 191] 20 problem. Given %\po... ? ! Emergency stop.