[OS X TeX] Equation Services and \cal
Bruno Voisin
bvoisin at mac.com
Thu Apr 21 23:46:21 CEST 2005
Le 21 avr. 05, à 20:40, Chris Goedde a écrit :
> I'm trying to typeset {\cal{E}}_1 using Equation Services, and it
> produces a regular math italic E, not the script E that it should. Do
> others see this as well? It works fine via LaTeX Equation Editor.
>
> I'm using the basemathmode template in ES, which I think is the
> default. (Same thing occurs with other templates.) Any insight into
> what could be causing this?
Replace \cal by \mathcal. You may also edit the template to replace:
\usepackage{mathptm}
by:
\usepackage{mathptmx}
^
This will produce a more cursive E.
As to why {\cal E} works in LaTeX Equation Editor but not in Equation
Service, the difference lies in the templates (preamble in LaTeX
Equation Editor jargon):
- The basemathmode template in Equation Service uses:
\documentclass{minimal}
- The default preamble in LaTeX Equation Editor uses:
\documentclass{article}
\cal is a deprecated La TeX 2.09 command, to be replaced by \mathcal in
LaTeX 2e (beware, too, that \cal is a declaration while \mathcal is a
command taking an argument). For backward compatibility the article
class defines a command \cal:
\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
This definition is absent from the minimal class, yielding "ordinary"
uppercase letters instead.
You may use the Edit button in Equation Service to edit the
basemathmode template yourself (replacing minimal by article), and
you'll see the output change on a new Typeset.
HTH,
Bruno Voisin
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the macostex-archives
mailing list