Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

130 lines (127 sloc) 4.929 kb
% \iffalse
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}
\ProvidesExplPackage{exmathalpha}{2012/05/17}{2.0}{Extra math alphabets}
% \fi
%
% \section{ExMathAlpha}
%
% \subsection{Macros}
%
% This package makes all the \pkg{unicode-math} font shape macros available.
% But not all may have proper effects. Table~\ref{tab:exmathalpha} shows the
% effects of these macros using the Minion Math font. The purpose of this
% package is that if one switch from the \pkg{unicode-math} package to a Type
% 1 PostScript math font package (for example, to speed up the compilation
% while writing), at least the document can be compiled.
%
% \begin{table}[t]
% \def\numb{01234}
% \def\latn{abcdef}
% \def\Latn{ABCDEF}
% \def\greek{\alpha\beta\gamma\delta\quad}
% \def\Greek{\Theta\Lambda\Sigma\Phi\quad}
% \caption{Extra math alphabets defined by the \pkg{exmathalpha} package}
% \label{tab:exmathalpha}
% \begin{tabu}{XXXXXX}
% \toprule
% Macros & $\numb$ & $\latn$ & $\Latn$ & $\greek$ & $\Greek$ \\
% \midrule
% \mac{mathup}
% & $\mathup{\numb}$ & $\mathup{\latn}$ & $\mathup{\Latn}$
% & $\mathup{\greek}$ & $\mathup{\Greek}$ \\
% \mac{mathbfup}
% & $\mathbfup{\numb}$ & $\mathbfup{\latn}$ & $\mathbfup{\Latn}$
% & $\mathbfup{\greek}$ & $\mathbfup{\Greek}$ \\
% \mac{mathit}
% & $\mathit{\numb}$ & $\mathit{\latn}$ & $\mathit{\Latn}$
% & $\mathit{\greek}$ & $\mathit{\Greek}$ \\
% \mac{mathbfit}
% & $\mathbfit{\numb}$ & $\mathbfit{\latn}$ & $\mathbfit{\Latn}$
% & $\mathbfit{\greek}$ & $\mathbfit{\Greek}$ \\
% \mac{mathsfup}
% & $\mathsfup{\numb}$ & $\mathsfup{\latn}$ & $\mathsfup{\Latn}$
% & $\mathsfup{\greek}$ & $\mathsfup{\Greek}$ \\
% \mac{mathbfsfup}
% & $\mathbfsfup{\numb}$ & $\mathbfsfup{\latn}$ & $\mathbfsfup{\Latn}$
% & $\mathbfsfup{\greek}$ & $\mathbfsfup{\Greek}$ \\
% \mac{mathsfit}
% & $\mathsfit{\numb}$ & $\mathsfit{\latn}$ & $\mathsfit{\Latn}$
% & $\mathsfit{\greek}$ & $\mathsfit{\Greek}$ \\
% \mac{mathbfsfit}
% & $\mathbfsfit{\numb}$ & $\mathbfsfit{\latn}$ & $\mathbfsfit{\Latn}$
% & $\mathbfsfit{\greek}$ & $\mathbfsfit{\Greek}$ \\
% \mac{mathtt}
% & $\mathtt{\numb}$ & $\mathtt{\latn}$ & $\mathtt{\Latn}$
% & $\mathtt{\greek}$ & $\mathtt{\Greek}$ \\
% \mac{mathbb}
% & $\mathbb{\numb}$ & $\mathbb{\latn}$ & $\mathbb{\Latn}$
% & $\mathbb{\greek}$ & $\mathbb{\Greek}$ \\
% \mac{mathbbit}
% & $\mathbbit{\numb}$ & $\mathbbit{\latn}$ & $\mathbbit{\Latn}$
% & $\mathbbit{\greek}$ & $\mathbbit{\Greek}$ \\
% \mac{mathcal}
% & $\mathcal{\numb}$ & $\mathcal{\latn}$ & $\mathcal{\Latn}$
% & $\mathcal{\greek}$ & $\mathcal{\Greek}$ \\
% \mac{mathbfcal}
% & $\mathbfcal{\numb}$ & $\mathbfcal{\latn}$ & $\mathbfcal{\Latn}$
% & $\mathbfcal{\greek}$ & $\mathbfcal{\Greek}$ \\
% \mac{mathscr}
% & $\mathscr{\numb}$ & $\mathscr{\latn}$ & $\mathscr{\Latn}$
% & $\mathscr{\greek}$ & $\mathscr{\Greek}$ \\
% \mac{mathbfscr}
% & $\mathbfscr{\numb}$ & $\mathbfscr{\latn}$ & $\mathbfscr{\Latn}$
% & $\mathbfscr{\greek}$ & $\mathbfscr{\Greek}$ \\
% \mac{mathfrak}
% & $\mathfrak{\numb}$ & $\mathfrak{\latn}$ & $\mathfrak{\Latn}$
% & $\mathfrak{\greek}$ & $\mathfrak{\Greek}$ \\
% \mac{mathbffrak}
% & $\mathbffrak{\numb}$ & $\mathbffrak{\latn}$ & $\mathbffrak{\Latn}$
% & $\mathbffrak{\greek}$ & $\mathbffrak{\Greek}$ \\
% \bottomrule
% \end{tabu}
% \end{table}
%
% \subsection{Implementations}
%
% \begin{macrocode}
\cs_gset:Nn \exma_mathup:n {\mathrm{#1}}
\cs_gset:Nn \exma_mathbfup:n {\mathbf{#1}}
\cs_gset:Nn \exma_mathit:n {#1}
\cs_gset:Nn \exma_mathbfit:n {\mathbf{#1}}
\cs_gset:Nn \exma_mathsfup:n {\mathsf{#1}}
\cs_gset:Nn \exma_mathbfsfup:n {\mathsf{#1}}
\cs_gset:Nn \exma_mathsfit:n {\mathsf{#1}}
\cs_gset:Nn \exma_mathbfsfit:n {\mathsf{#1}}
\cs_gset:Nn \exma_mathtt:n {\mathtt{#1}}
\cs_gset:Nn \exma_mathbb:n {#1}
\cs_gset:Nn \exma_mathbbit:n {\mathbb{#1}}
\cs_gset:Nn \exma_mathcal:n {#1}
\cs_gset:Nn \exma_mathbfcal:n {\mathcal{#1}}
\cs_gset:Nn \exma_mathscr:n {\mathcal{#1}}
\cs_gset:Nn \exma_mathbfscr:n {\mathscr{#1}}
\cs_gset:Nn \exma_mathfrak:n {#1}
\cs_gset:Nn \exma_mathbffrak:n {\mathfrak{#1}}
\cs_gset:Nn \exma_check_use:n {
\cs_if_exist:cF {#1} {\cs_gset_eq:cc{#1}{exma_#1:n}}
}
\AtBeginDocument{
\exma_check_use:n{mathup}
\exma_check_use:n{mathbfup}
\exma_check_use:n{mathit}
\exma_check_use:n{mathbfit}
\exma_check_use:n{mathsfup}
\exma_check_use:n{mathbfsfup}
\exma_check_use:n{mathsfit}
\exma_check_use:n{mathbfsfit}
\exma_check_use:n{mathtt}
\exma_check_use:n{mathbb}
\exma_check_use:n{mathbbit}
\exma_check_use:n{mathcal}
\exma_check_use:n{mathbfcal}
\exma_check_use:n{mathscr}
\exma_check_use:n{mathbfscr}
\exma_check_use:n{mathfrak}
\exma_check_use:n{mathbffrak}
}
% \end{macrocode}
Jump to Line
Something went wrong with that request. Please try again.