Fonts & Character Setsstandard mathcal with mathdesign

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
dnemoc
Posts: 19
Joined: Mon May 11, 2009 2:29 pm

standard mathcal with mathdesign

Post by dnemoc »

Hi!

I've been trying to use standard mathcal letters with mathdesign-garamond. Mathdesign apparently overloads mathcal with a set of letters resembling the mathscr letters. I tried to do the following:

Code: Select all

\usepackage[urw-garamond, greekuppercase=upright, greeklowercase=italicized, sfscaled=true, ttscaled=true]{mathdesign}
\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
but pdfLaTeX says that mathcal is already defined. Is there a way to use standard mathcal letters with mathdesign?

Best regards, and thanks a lot.
- D.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
dnemoc
Posts: 19
Joined: Mon May 11, 2009 2:29 pm

standard mathcal with mathdesign

Post by dnemoc »

Found two possible solutions after some experimentation:

1. Simply adding

Code: Select all

\usepackage[mathcal]{eucal}
after loading mathdesign works pretty well if one is satisfied with somewhat nonstandard (euscript) mathcal.

2. Adding

Code: Select all

\DeclareSymbolFont{usualmathcal}{OMS}{cmsy}{m}{n}
\DeclareSymbolFontAlphabet{\mathcal}{usualmathcal}
after loading mathdesign produces standard mathcal with mathdesign.
john_perry
Posts: 1
Joined: Tue Jan 12, 2010 10:02 pm

standard mathcal with mathdesign

Post by john_perry »

It isn't in the documentation for some reason, but while I was looking at the source code for mathdesign.sty, I discovered that:
  • mathdesign creates a new math script font;
  • it deliberately conflates this font with the calligraphic font (the documentation does hint at this); and
  • an undocumented option turns it off!

    Code: Select all

    \usepackage[garamond,cal=cmcal]{mathdesign}
I wonder why he didn't put that in the documentation. The other option for cal is script, which substitutes the script for the traditional calligraphic font---but this is the default.
Post Reply