I am really fond of mathdesign package, I use it with the font Adobe Utopia Std. Recently, I have found myself in need of a calligraphic alphabet (with lower and uppercases) in math mode. I've thought of start to compile with XeLaTeX and use unicode-math to set such an alphabet, but it would be painful to abandon mathdesign and Utopia. Is there a way to install a script otf or ttf and define a new alphabet in order to use it with PDFLaTeX? Or instead to use the glyphs from mathdesign with unicode-math.
[EDIT]
I have obtained the result by editing mdpus.sty and mathspec.sty. In mdpus.sty, I commented the line 186 (\renewcommand{\rmdefault}{mdpus}\rmfamily) so that the following warning (which appears when the file is compiled with XeLaTeX)would be gone:
/usr/share/texmf-dist/tex/latex/mathdesign/mdpus/mdpus.sty:186: LaTeX Font Warning: Font shape 'TU/mdpus/m/n' undefined(Font)
using 'TU/lmr/m/n' instead on input line 186.
Then I searched the mathspec.sty file for the definition of the command \setmathcal, which I had found in the documentation.
\ernewcommand\setmathcal[2][]{
\zf@fontspec{#1}{#2}
\let\eu@mathcal\zf@family
\DeclareMathAlphabet{\mathcal}{\eu@enc}{\eu@mathcal}{m}{n}}
\ernewcommand\setmathcursiva[2][]{
\zf@fontspec{#1}{#2}
\let\eu@mathcursiva\zf@family
\DeclareMathAlphabet{\mathcursiva}{\eu@enc}{\eu@mathcursiva}{m}{n}}
I duplicated the definition and replaced "cal" by "cursiva" (which means cursive in portuguese). With the command \setmathcursiva[Scale=MatchLowercase]{<font name>}, I achieved the desired result. Between brackets, one can put the same arguments of \fontspec from the fontspec package.
For the alterations I made, this is a working example:
\documentclass{article}
\usepackage{fontspec}
\usepackage[adobe-utopiastd]{mathdesign}
\setmainfont{Utopia Std}% without this line, the the fi ligature is not handled well
%\let\mathcal\undefined %uncomment this if you'd like to change the font of \mathcal
\usepackage{mathspec}
\setmathcursiva[Scale=MatchLowercase]{<font name>}
\begin{document}
\[\mathcuriva{abc}\]
\end{document}
unicode-mathto apply. – cfr Jun 21 '18 at 23:44mathdesign. I am currently using the libertinus math font, which pleases me reasonably, withunicode-mathwich allows me to use a otf\mathscrfont of my choice. I've started searching how to make the mapping of the glyphs frommathdesigntounicode-math, but I haven't made much progress and do not really know how cumbersome it is. – Tera Jun 22 '18 at 00:24<original name>-sena.sty, change the name of the package or class in the file and update the date and description. Since this is incredibly easy and very quick to do, I can't see the point in not doing it. The only time I wouldn't bother would be if it was essential to a bugfix not to or if I was fiddling in a temporary test directory and not in a directory I'd draw files from in production processing. – cfr Jun 24 '18 at 16:59