Article View: comp.text.tex
Article #367Re: ligatures, kern pairs, and \relax
From: Prof. Dr. Klaus Lagally
Date: Thu, 23 Jul 1992 14:16
Date: Thu, 23 Jul 1992 14:16
23 lines
1688 bytes
1688 bytes
In article <25545@life.ai.mit.edu> bkph@kauai.ai.mit.edu (Berthold K.P. Horn) writes:
>Suppose there is a font that has a ligature -- ==> endash
>Now suppose I have a keyboard that doesn't have a -, but does have a + key.
>So I decide to make + active and redefine it to generate the appropriate
>character code for minus, something like
> \catcode`\+=\active \def+{\char45}
^^^
>Now I can type ++ and have it print endash, but...
>if a number follows the endash I am in trouble - for example:
> pp.~23++67
>`cause now TeX complains about bad character code since it expands into
>pp.~23\char4567
^^^^
What happens is that TeX tries to read a number up to the first non-digit.
The definition \def+{\char45 }
will probably work as the blank will be gobbled up by TeX.
What I dont understand now is why you only got one substitution.
--
Prof.Dr.Klaus Lagally lagally@informatik.uni-stuttgart.de
Institut fuer Informatik Tel. +49-711-7816392 Zeige mir deine Uhr,
Breitwiesenstrasse 20-22 FAX +49-711-7801044 und ich sage dir,
D-7000 Stuttgart 80, GERMANY wie spaet es ist.
Technical Details
Message-ID:
<23492@ifi.informatik.uni-stuttgart.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!destroyer!gumby!yale!yale.edu!ira.uka.de!news.belwue.de!news.uni-stuttgart.de!ifistg!lagally@azu.informatik.uni-stuttgart.deReferences:
<25545@life.ai.mit.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!destroyer!gumby!yale!yale.edu!ira.uka.de!news.belwue.de!news.uni-stuttgart.de!ifistg!lagally@azu.informatik.uni-stuttgart.de From: lagally@azu.informatik.uni-stuttgart.de (Prof. Dr. Klaus Lagally) Newsgroups: comp.text.tex Subject: Re: ligatures, kern pairs, and \relax Message-ID: <23492@ifi.informatik.uni-stuttgart.de> Date: 23 Jul 92 14:16:34 GMT References: <25545@life.ai.mit.edu> Sender: news@ifistg.uucp Organization: Informatik, Uni Stuttgart, Germany Lines: 23