From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/638 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: [ConTeXt] Math fonts: cal etc. Date: Tue, 06 Jul 1999 15:17:42 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <378201F6.4102556D@wxs.nl> References: <3780B300.E5C73E5A@gmx.de> <3780C0C0.77A09D67@wxs.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391489 25767 80.91.224.250 (23 Oct 2002 16:44:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:44:49 +0000 (UTC) Cc: NTG-ConTeXt Original-To: "Ed L. Cashin" Xref: main.gmane.org gmane.comp.tex.context:638 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:638 Ed L. Cashin wrote: > > Hans Hagen writes: > > [...] > > \def\fraktur #1{\ifmmode\hbox\fi{\frak#1}} > > \def\gothic #1{\ifmmode\hbox\fi{\goth#1}} > > \def\caligraphic#1{\ifmmode\hbox\fi{\cal #1}} > > > > will do what you want. I can add those if needed/wanted/agreed upon. > > I have only used "if" a little, but is the "fi" really supposed to go > *before* the hbox like that? If it is, then why is it there instead > of after the hbox as I'd expect? imagine not being in hmode: \ifmmode -> false -> fast read until \fi -> {\frak#1} but in mmode: \ifmmode -> true -> start reading h specs until { expanding everything -> meet \fi which ends the \if so ok -> see { -> \hbox{\frak#1} alternatively you can say: \ifmmode\expandafter\hbox\fi{\frak#1} or when in mmode: expandtoken after \hbox being \fi -> so end the \if -> take the \hbox -> etc etc It had to do with the fact that \fi is a signal, not expending to anything to be typeset or read as keyword. In principle such a \fi can even go after the { when suitable! If yoy want to see a real dirty one (there are some more), take a look at \doifnumberelse. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------