ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Mathcal font..
@ 2000-03-31 13:35 Zeljko Vrba
  2000-03-31 16:15 ` Tobias Burnus
  0 siblings, 1 reply; 2+ messages in thread
From: Zeljko Vrba @ 2000-03-31 13:35 UTC (permalink / raw)


When typesetting math, {\cal X} typesets ordinary X, not the one from the
mathcal font. There is no error or anything, I just get the normal X. What
should I do?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mathcal font..
  2000-03-31 13:35 Mathcal font Zeljko Vrba
@ 2000-03-31 16:15 ` Tobias Burnus
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Burnus @ 2000-03-31 16:15 UTC (permalink / raw)
  Cc: NTG-ConTeXt

Hi Zeljko,

> When typesetting math, {\cal X} typesets ordinary X, not the one from the
> mathcal font. There is no error or anything, I just get the normal X. What
> should I do?

In $TEXMF/tex/context/base/font-ini.tex are these lines:
---------------------------------------------------------------
%D \macros
%D   {frak, goth, cal}
%D
%D On behalf of {\frac Tobias Burnus}, we define some more of
%D these: 

\definefont [frak] [Fraktur      sa \currentfontscale]
\definefont [goth] [Gothic       sa \currentfontscale]
\definefont [cal]  [Calligraphic sa \currentfontscale]

\definefontsynonym [Fraktur]      [Serif]
\definefontsynonym [Gothic]       [Serif]
\definefontsynonym [Calligraphic] [Serif]

%D \macros
%D   {fraktur, gothic, calligraphic}
%D
%D For Tobias and friends:

\def\fraktur     #1{\ifmmode\hbox\fi{\frak#1}}
\def\gothic      #1{\ifmmode\hbox\fi{\goth#1}}
\def\calligraphic#1{\ifmmode\hbox\fi{\cal #1}}
---------------------------------------------------------------

Try this:
---------------------------------------------------------------------
% frak and goth are usually the same
% Math: you may want to use \def or \let here
$\calligraphic A$\par
$\fraktur A$\par
$\gothic A$

{\cal ABCDEFGHIJKLMNOPQRSTUVWXYZ}\par
{\frak
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890}\par
{\goth ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890}

% A goody:
\definefont [rsfs]  [RalfSmithFormalScript sa \currentfontscale]
{\rsfs ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\bye
---------------------------------------------------------------------

Tobias


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-03-31 16:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-31 13:35 Mathcal font Zeljko Vrba
2000-03-31 16:15 ` Tobias Burnus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).