| 1 |
%\CheckSum{129} |
| 2 |
% |
| 3 |
% \iffalse |
| 4 |
% |
| 5 |
% File `fixmath.dtx'. |
| 6 |
% Copyright (c) 2000--2003 Walter Schmidt |
| 7 |
% Copyright (c) 2022-- Keiran Harcombe |
| 8 |
% |
| 9 |
% This program may be distributed and/or modified under the |
| 10 |
% conditions of the LaTeX Project Public License, either version 1.3c |
| 11 |
% of this license or (at your option) any later version. |
| 12 |
% The latest version of this license is in |
| 13 |
% http://www.latex-project.org/lppl.txt |
| 14 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 15 |
% version 1999/12/01 or later. |
| 16 |
% This work has the LPPL maintennace status 'maintained'. |
| 17 |
% |
| 18 |
% The Current Maintainer of this work is Keiran Harcombe |
| 19 |
% |
| 20 |
% This program consists of the files fixmath.dtx and fixmath.ins |
| 21 |
% |
| 22 |
% \fi |
| 23 |
% |
| 24 |
% \iffalse |
| 25 |
% |
| 26 |
%<*driver> |
| 27 |
\ProvidesFile{fixmath.drv} |
| 28 |
%</driver> |
| 29 |
%<package>\ProvidesPackage{fixmath} |
| 30 |
[2022/10/06 v0.9.1 (WaS)] |
| 31 |
%<*driver> |
| 32 |
\documentclass{ltxdoc} |
| 33 |
\usepackage{url} |
| 34 |
\CodelineNumbered |
| 35 |
\begin{document} |
| 36 |
\DocInput{fixmath.dtx} |
| 37 |
\end{document} |
| 38 |
%</driver> |
| 39 |
% \fi |
| 40 |
% |
| 41 |
% \GetFileInfo{fixmath.drv} |
| 42 |
% \DeleteShortVerb{\|} |
| 43 |
% \MakeShortVerb{\+} |
| 44 |
% |
| 45 |
% \title{The \textsf{fixmath} package for \LaTeXe} |
| 46 |
% \author{Walter Schmidt & Keiran Harcombe\thanks{{\ttfamily [email protected]}}} |
| 47 |
% \date{(\fileversion{} -- \filedate)} |
| 48 |
% \maketitle |
| 49 |
% \sloppy |
| 50 |
% |
| 51 |
% \noindent |
| 52 |
% \LaTeX's default style of typesetting mathematics does unfortunately |
| 53 |
% not comply with the International Standards ISO31-0:1992 to ISO31-13:1992, |
| 54 |
% as summarized, e.\,g., in |
| 55 |
% \path{<http://physics.nist.gov/Document/typefaces.pdf>}: |
| 56 |
% \begin{itemize} |
| 57 |
% \item Uppercase Greek letters are always typset upright, |
| 58 |
% as opposed to italic, even though they are usually to represent variables. |
| 59 |
% \item There is no obvious way to typset variables in a bold italic style, |
| 60 |
% even though the required fonts are available. (The \textsf{bm} package |
| 61 |
% is overly complex and not always reliable.) |
| 62 |
% \end{itemize} |
| 63 |
% If you are using the default Computer Modern math fonts, |
| 64 |
% this can be fixed by loading the package \textsf{fixmath}: |
| 65 |
% \begin{itemize} |
| 66 |
% \item Uppercase Greek will be typeset in italic style then. |
| 67 |
% \item Upright $\Delta$ and $\Omega$ symbols are still available |
| 68 |
% through the commands +\upDelta+ and +\upOmega+. |
| 69 |
% \item A new math alphabet +\mathbold+ will provide bold italic |
| 70 |
% letters. |
| 71 |
% \end{itemize} |
| 72 |
% The \textsf{fixmath} package should be used \emph{only} |
| 73 |
% in conjunction with the CM math fonts; most likely, |
| 74 |
% it will not work with others. |
| 75 |
% Many packages for using alternative math fonts, such as |
| 76 |
% \textsf{mathpazo} (for Palatino), |
| 77 |
% provide the +\mathbold+ alphabet already |
| 78 |
% and can be loaded with an option \texttt{slantedGreek} to make |
| 79 |
% the uppercase Greek letters cursive. |
| 80 |
% |
| 81 |
% \StopEventually{} |
| 82 |
% |
| 83 |
% \section*{The package code} |
| 84 |
% Save uppercase $\Delta$ and $\Omega$: |
| 85 |
% \begin{macrocode} |
| 86 |
%<*package> |
| 87 |
\let\upOmega\Omega |
| 88 |
\let\upDelta\Delta |
| 89 |
% \end{macrocode} |
| 90 |
% Provide italic uppercase Greek: |
| 91 |
% \begin{macrocode} |
| 92 |
\DeclareMathSymbol{\Gamma}{\mathalpha}{letters}{0} |
| 93 |
\DeclareMathSymbol{\Delta}{\mathalpha}{letters}{1} |
| 94 |
\DeclareMathSymbol{\Theta}{\mathalpha}{letters}{2} |
| 95 |
\DeclareMathSymbol{\Lambda}{\mathalpha}{letters}{3} |
| 96 |
\DeclareMathSymbol{\Xi}{\mathalpha}{letters}{4} |
| 97 |
\DeclareMathSymbol{\Pi}{\mathalpha}{letters}{5} |
| 98 |
\DeclareMathSymbol{\Sigma}{\mathalpha}{letters}{6} |
| 99 |
\DeclareMathSymbol{\Upsilon}{\mathalpha}{letters}{7} |
| 100 |
\DeclareMathSymbol{\Phi}{\mathalpha}{letters}{8} |
| 101 |
\DeclareMathSymbol{\Psi}{\mathalpha}{letters}{9} |
| 102 |
\DeclareMathSymbol{\Omega}{\mathalpha}{letters}{10} |
| 103 |
% \end{macrocode} |
| 104 |
% Prepare lowercase Greek for +\mathbold+: |
| 105 |
% \begin{macrocode} |
| 106 |
\DeclareMathSymbol{\alpha}{\mathalpha}{letters}{11} |
| 107 |
\DeclareMathSymbol{\beta}{\mathalpha}{letters}{12} |
| 108 |
\DeclareMathSymbol{\gamma}{\mathalpha}{letters}{13} |
| 109 |
\DeclareMathSymbol{\delta}{\mathalpha}{letters}{14} |
| 110 |
\DeclareMathSymbol{\epsilon}{\mathalpha}{letters}{15} |
| 111 |
\DeclareMathSymbol{\zeta}{\mathalpha}{letters}{16} |
| 112 |
\DeclareMathSymbol{\eta}{\mathalpha}{letters}{17} |
| 113 |
\DeclareMathSymbol{\theta}{\mathalpha}{letters}{18} |
| 114 |
\DeclareMathSymbol{\iota}{\mathalpha}{letters}{19} |
| 115 |
\DeclareMathSymbol{\kappa}{\mathalpha}{letters}{20} |
| 116 |
\DeclareMathSymbol{\lambda}{\mathalpha}{letters}{21} |
| 117 |
\DeclareMathSymbol{\mu}{\mathalpha}{letters}{22} |
| 118 |
\DeclareMathSymbol{\nu}{\mathalpha}{letters}{23} |
| 119 |
\DeclareMathSymbol{\xi}{\mathalpha}{letters}{24} |
| 120 |
\DeclareMathSymbol{\pi}{\mathalpha}{letters}{25} |
| 121 |
\DeclareMathSymbol{\rho}{\mathalpha}{letters}{26} |
| 122 |
\DeclareMathSymbol{\sigma}{\mathalpha}{letters}{27} |
| 123 |
\DeclareMathSymbol{\tau}{\mathalpha}{letters}{28} |
| 124 |
\DeclareMathSymbol{\upsilon}{\mathalpha}{letters}{29} |
| 125 |
\DeclareMathSymbol{\phi}{\mathalpha}{letters}{30} |
| 126 |
\DeclareMathSymbol{\chi}{\mathalpha}{letters}{31} |
| 127 |
\DeclareMathSymbol{\psi}{\mathalpha}{letters}{32} |
| 128 |
\DeclareMathSymbol{\omega}{\mathalpha}{letters}{33} |
| 129 |
\DeclareMathSymbol{\varepsilon}{\mathalpha}{letters}{34} |
| 130 |
\DeclareMathSymbol{\vartheta}{\mathalpha}{letters}{35} |
| 131 |
\DeclareMathSymbol{\varpi}{\mathalpha}{letters}{36} |
| 132 |
\DeclareMathSymbol{\varphi}{\mathalpha}{letters}{39} |
| 133 |
\DeclareMathSymbol{\varrho}{\mathalpha}{letters}{37} |
| 134 |
\DeclareMathSymbol{\varsigma}{\mathalpha}{letters}{38} |
| 135 |
% \end{macrocode} |
| 136 |
% Define +\mathbold+: |
| 137 |
% \begin{macrocode} |
| 138 |
\DeclareMathAlphabet{\mathbold}{OML}{cmm}{b}{it} |
| 139 |
%</package> |
| 140 |
% \end{macrocode} |
| 141 |
% |
| 142 |
% The next line of code prevents DocStrip from adding the |
| 143 |
% character table to all modules: |
| 144 |
% \begin{macrocode} |
| 145 |
\endinput |
| 146 |
% \end{macrocode} |
| 147 |
% \Finale |
| 148 |
%% \CharacterTable |
| 149 |
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z |
| 150 |
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z |
| 151 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 152 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 153 |
%% Dollar \$ Percent \% Ampersand \& |
| 154 |
%% Acute accent \' Left paren \( Right paren \) |
| 155 |
%% Asterisk \* Plus \+ Comma \, |
| 156 |
%% Minus \- Point \. Solidus \/ |
| 157 |
%% Colon \: Semicolon \; Less than \< |
| 158 |
%% Equals \= Greater than \> Question mark \? |
| 159 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 160 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 161 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 162 |
%% Right brace \} Tilde \~} |
| 163 |
%% |