home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.claremont.edu!ucivax!news.service.uci.edu!unogate!mvb.saic.com!info-tex
- From: mroth@afit.af.mil (Mark A. Roth)
- Newsgroups: comp.text.tex
- Subject: RE: hyphen in math
- Message-ID: <9212161420.AA11001@hawkeye.afit.af.mil>
- Date: Wed, 16 Dec 92 09:20:05 EST
- Organization: Info-Tex<==>Comp.Text.Tex Gateway
- X-Gateway-Source-Info: Mailing List
- Lines: 29
-
- >\def\text#1{\ifmmode\leavevmode\hbox{#1}\else
- > \typeout{Warning: \string\text \space used outside math mode!}
- > \begingroup\hbox{#1}\endgroup\fi}
-
- Using \text is a very bad idea since it defined in lfonts.new the replacement
- lfonts.tex loaded for the NFSS. This then affects the definitions of
- \pdollar and \ppounds which use \text. The definitions are
- %% \changes{v1.1e}{90/01/25}{Completely redefined.}
- \def\${\protect\pdollar}
- \def\pdollar{\text{\ifdim \fontdimen\@ne\font >\z@
- \sl \else \normalshape \fi\char`\$}}
- \def\pounds{{\protect\ppounds}}
- \def\ppounds{\text{\ifdim \fontdimen\@ne\font >\z@
- \it \else \fontshape u\selectfont \fi \char'44}}
- %% \changes{v1.1e}{90/01/25}{Macro added.}
- %% \changes{v1.1k}{90/06/23}{Changed to `mbox.}
- \def\text{\mbox}
-
- I'm not sure why \mbox needs to have an alias of \text but this is the way
- it is.
-
- Be forwarned, this caused me major grief sometime ago when a local macro
- had redefined \text and then the user used math ($...$) as part of the
- argument to \text. Very messy!!
-
- Note: this is not a problem with the original LaTeX lfonts.tex file.
-
- Mark Roth
-
-