From 49363496d112c5542ae9ca4fc48a96ae2c0ac6d9 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 17 Jan 2018 23:48:18 +0000 Subject: mathfixs (17jan18) git-svn-id: svn://tug.org/texlive/trunk@46365 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/mathfixs/README.txt | 34 ++++++ Master/texmf-dist/doc/latex/mathfixs/mafxsamp.tex | 126 ++++++++++++++++++++++ Master/texmf-dist/doc/latex/mathfixs/mathfixs.pdf | Bin 0 -> 301544 bytes 3 files changed, 160 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/mathfixs/README.txt create mode 100644 Master/texmf-dist/doc/latex/mathfixs/mafxsamp.tex create mode 100644 Master/texmf-dist/doc/latex/mathfixs/mathfixs.pdf (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/latex/mathfixs/README.txt b/Master/texmf-dist/doc/latex/mathfixs/README.txt new file mode 100644 index 00000000000..e45626f964a --- /dev/null +++ b/Master/texmf-dist/doc/latex/mathfixs/README.txt @@ -0,0 +1,34 @@ +mathfixs v1.0 +Copyright 2018 Niklas Beisert + +mathfixs is a LaTeX2e package to fix some odd behaviour in math mode +such as spacing around fractions and roots, math symbols within bold +text as well as capital Greek letters. It also adds some related +macros. + +The package consists of the files + + README.txt readme file + mathfixs.ins installation file + mathfixs.dtx source file + mathfixs.sty package file + mafxsamp.tex sample latex file + mathfixs.pdf manual + +The distribution consists of the files +README.txt, mathfixs.ins and mathfixs.dtx. + +Run "(pdf)latex mathfixs.dtx" to compile the manual mathfixs.pdf. + +Run "latex mathfixs.ins" to create the package mathfixs.sty +and the sample mafxsamp.tex. +Copy the file mathfixs.sty to an appropriate directory of your LaTeX +distribution, e.g. texmf-root/tex/latex/mathfixs. + +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. diff --git a/Master/texmf-dist/doc/latex/mathfixs/mafxsamp.tex b/Master/texmf-dist/doc/latex/mathfixs/mafxsamp.tex new file mode 100644 index 00000000000..59d514f1670 --- /dev/null +++ b/Master/texmf-dist/doc/latex/mathfixs/mafxsamp.tex @@ -0,0 +1,126 @@ +%% +%% 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/01/17 v1.0 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'. diff --git a/Master/texmf-dist/doc/latex/mathfixs/mathfixs.pdf b/Master/texmf-dist/doc/latex/mathfixs/mathfixs.pdf new file mode 100644 index 00000000000..6bea02f2e42 Binary files /dev/null and b/Master/texmf-dist/doc/latex/mathfixs/mathfixs.pdf differ -- cgit v1.2.3