TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Looking around, I have found two different "definitions" for the font generated by the command \mathscr (aka "Ralph Smith’s Formal Script" according to this).


enter image description here

from here.


enter image description here

from here.


Why are there two different fonts that supposedly come from the same command?

My LaTeX environment gives me the first font. How do I get the second?

share|improve this question
you have them switched around, by the way – Nathan Grigg Feb 2 '12 at 0:07
@nathang Just swapped the links. Thanks. – Tyson Williams Feb 2 '12 at 0:24
Here is an image of all available open type math fonts and their math script fonts tex.stackexchange.com/a/226673/59716 – MaxNoe Mar 2 '15 at 8:22
up vote 10 down vote accepted

The command \mathscr and similiar ones don’t refer to a specific font. If you look at different math fonts like Cambria Math, Asana Math, XITS, Minion Math etc. you see that they are designed with different ideas in mind, hence they look different.

Typing \mathscr just request symbols that look script-like. Of course every font designer has had a different idea what “script-like” should be for his font, thus you get different results. This means that there is no precise definition what \mathscr should look like. Some fonts may not have such symbols at all, some may have more than one, like XITS where you can get a “calligraphic” and a “script” like looking variant of the font.

The actual symbols you get depend on what math font is loaded via \setmathfont in case of unicode-math and LuaTeX or the more traditional NFSS in case of PDFTeX. With NFSS setting the math fonts is more involved. So usually this is done by loading an appropriate package via \usepackage that switches to the fonts in question.

share|improve this answer

Different packages define \mathscr in different ways.

The first font is defined in the mathrsfs package (I've seen it in many other places as well).

The second font is actually part of the XITS Math font. You can get it by using the code in the answer you linked. You will have to download the font and install it on your system. You will also need to compile your document using xelatex or lualatex.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.