[vox-tech] TeX question: writing a robust fraction macro
Peter Jay Salzman
vox-tech@lists.lugod.org
Sat, 13 Jul 2002 00:42:58 -0700
you can do this with conditionals in latex. i don't know the
conditionals offhand, but you can test which font is being used to
typeset the current hbox, and use the appropriate kerns.
i know... i know... easier said than done. i think david soloman's
"the advanced texbook" would have the required conditionals. that book
has everything...
pete
begin Henry House <hajhouse@houseag.com>
> On Fri, Jul 12, 2002 at 06:00:51PM -0700, Shawn P. Neugebauer wrote:
> [...]
> > My current opinion (having blown a bit of time putting together
> > this note) is to leave well enough alone. In other words, don't
> > worry about the italic issue--even latex doesn't bother with that
> > (see Test 7). Furthermore, I bet most of the time you should just
> > spell such fractions out. But, if you really want or need a slanted
> > fraction, I think the myslantfrac macro below looks just fine.
>
> The macro is to be used for typesetting a cookbook; comparable usage suggests
> that fractions should be not be written out in words but should change to
> italics in italic text. (Keeping maths in roman in italic blocks is of course
> the correct usage in the mathematical papers for which LaTeX was designed.)
>
> Thanks for the suggestions!
--
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D