What do I need to do to define a \mathscr
which can handle both upper and lower case letters and a \mathcal
which can handle both upper and lower case, with the latter staying as close to the default \mathcal
as possible?
A simple approach with a single \usepackage
line along with some options supplied would be desirable. Every other solution I run into which involves a \newcommand
, makeatletter
, \newenvironment
, \setmathfont
, etc., has failed me.
Below, boondox
was as close as I could get to the existing \mathcal
. Note that my definition for scr
did not support lowercase, for some reason.
XeLaTeX/PdfLaTeX make no difference here.
I've gone through a number of posts related to this topic, with none just working for me. I may have an issue with not being able to install font packages correctly? This is mysterious.
\documentclass{article}
\usepackage{mathrsfs}
\usepackage[scr=rsfs,cal=boondox]{mathalfa}
\begin{document}
$$\mathscr{abcdefghijklmnopqrstuvwxyz}$$
$$\mathscr{ABCDEFGHIJKLMNOPQRST}$$
$$\mathcal{abcdefghijklmnopqrstuvwxyz}$$
$$\mathcal{ABCDEFGHIJKLMNOPQRST}$$
\end{document}
UPDATE: This may just be an issue with the rsfs
font. Replacing my usepackage
line above with
\usepackage[scr=esstix,cal=boondox]{mathalfa}
produces results for all four lines. I prefer the rsfs
fonts to esstix
and prefer whatever the default \mathcal
font is to boondox
. But if no one has another solution, this may just need to be what I go with.