%%
%% The LaTeX Companion, 3ed
%%
%% Example 12-4-3 on page II-257 in "Math alphabets revisited".
%%
%% Copyright (C) 2022 Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%% See https://www.latex-project.org/lppl.txt for details.
%%

\documentclass{tlc3exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{135.0pt}
%!TEX program = lualatex
  
%StartShownPreambleCommands
\usepackage{amsmath,unicode-math}
\setmathfontface\mathhw{Miama Nueva}[Scale=.75]
%StopShownPreambleCommands

\begin{document}
\begin{align*} \mathhw{ABCDEFG} &\neq \mathcal{ABCDEFG} \\
        X^\mathhw{Hand}_\mathhw{writing} &\not\approx
        X^\mathrm{Formal}_\mathit{writing}    \end{align*}
\end{document}
