%% %% This is file `mafxsamp.tex', %% generated with the docstrip utility. %% %% The original source files were: %% %% mathfixs.dtx (with options: `sample') %% %% Copyright (C) 2018 Niklas Beisert %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 %% of this license or (at your option) any later version. %% The latest version of this license is in %% http://www.latex-project.org/lppl.txt %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. %% \NeedsTeXFormat{LaTeX2e}[1996/12/01] \ProvidesFile{mafxsamp.tex}[2018/12/30 v1.01 sample for mathfixs] \documentclass[12pt]{article} \usepackage{geometry} \geometry{layout=a4paper} \geometry{paper=a4paper} \geometry{margin=3cm} \parindent0pt \RequirePackage{amsmath} \RequirePackage[autobold]{mathfixs} \ProvideMathFix{greekcaps,mathbold} \ProvideMathFix{frac,rfrac,vfrac} \ProvideMathFix{multskip} \begin{document} \paragraph{Fractions.} \[ x\frac{a+b}{c+d}\frac{e}{f}. \] Recipe for $\approx 3$ pancakes (scale accordingly): Whisk together one large egg, $\vfrac{1}{8} \ell$ milk, $50\mathinner{\mathrm{g}}$ flour (mix \vfrac{2}{3} wholemeal flour and \vfrac{1}{3} white flour); fry in pan. Feel free to use more flour than indicated. \[ \rfrac{1}{2}x^2 + \rfrac{1}{6} y^3 + \rfrac{1}{4} x^2 y^2 \] \paragraph{Radicals.} \[ y\sqrt{x}z,\qquad y\sqrt[]{x}z,\qquad y\sqrt[i]{x}z,\qquad y\sqrt[n]{x}z,\qquad y\sqrt[3]{x}z,\qquad y\sqrt[123]{x}z \] \ProvideMathFix{root} \[ y\sqrt{x}z,\qquad y\sqrt[]{x}z,\qquad y\sqrt[i]{x}z,\qquad y\sqrt[n]{x}z,\qquad y\sqrt[3]{x}z,\qquad y\sqrt[123]{x}z \] \[ \ProvideMathFix{rootclose} y\sqrt{x}z,\qquad y\sqrt[]{x}z,\qquad y\sqrt[i]{x}z,\qquad y\sqrt[n]{x}z,\qquad y\sqrt[3]{x}z,\qquad y\sqrt[123]{x}z \] \[ \ProvideMathFix{rootclass={\mathinner}} y\sqrt{x}z,\qquad y\sqrt[]{x}z,\qquad y\sqrt[i]{x}z,\qquad y\sqrt[n]{x}z,\qquad y\sqrt[3]{x}z,\qquad y\sqrt[123]{x}z \] \paragraph{Spaces Representing Multiplication.} \newcommand{\der}{\mathrm{d}} \[ \int x\.\der x \] \newcommand{\diff}[1]{\mathinner{\der#1}} \[ \int x\diff{x} \] \paragraph{Greek Letters.} \[ \Gamma \qquad \mathrm{\Gamma} \qquad c\operatorname{\Gamma}(x) \] \paragraph{Bold Text with Math Symbols: $abc123\alpha\Gamma$.} \[ aG\alpha\Gamma \qquad\mathbold{aG\alpha\Gamma} \qquad\ProvideMathFix{greeklower}\mathbold{aG\alpha\Gamma} \] \end{document} \endinput %% %% End of file `mafxsamp.tex'.