JeSuisCharlie Raif Badawi
A LaTeX package: mathastext
Copyright © 2011-2015 Jean-François Burnol.
Current version number is 1.3d (2014/05/23; doc of 2015/02/26)
README, pdf, sty, dtx, ins,

Optimal typographical results for documents containing mathematical symbols can only be hoped for with math fonts specifically designed to match a given text typeface. Although the list of freely available math fonts for (PDF)LaTeX is slowly expanding (Computer Modern, AMS fonts, PX fonts, TX fonts, Fourier-GUTenberg, Math Design, Kepler Project, newtx, mathabx, others ... ; and ([2012/10/27]) on the Unicode side (XeTeX/LuaTeX): Asana-Math, XITS, Latin Modern Math, TeX Gyre Pagella Math, TeX Gyre Termes Math) it remains limited. Chances are you will not find a math font which fits well with your favorite text font. Try out mathastext: it will simply use the text font also for the math! (additionally to Latin letters, digits, punctuation signs, a few math symbols available in the ascii set, such as +,–,<,>,=, will also be picked up from the text font.) Often this gives quite satisfying results especially if, like the author, you aim at a very unified look for the document, and in particular prefer upright to slanted shapes for math (mathastext does have an option to maintain the usual slanted shape).

The package originates in some (even worse) macros I had been using many years ago to produce handouts as if done on a typewriter, or better said, to produce documents with a somewhat rough, but unified look, done by a real human and meaning to convey some message to real humans. The hope was to coerce the reader into making a real effort at assimilating the entirety of the material, text and math, not knowing in advance which piece would prove to be more important than the others. In a well-crafted mathematical document, every single part is as important as any other one, or, rather, it is up to the reader to uncover the web of links between atoms.

The example on the side uses a typewriter font which well illustrates the purpose. But mathastext will work with all kinds of fonts and can produce less militant math: see the examples (be patient, this page with its embedded png images weighs circa 5 Mo!) A notable feature of mathastext is to give a simple interface to using many distinct math fonts in the same document: special example.

Current version number is 1.3d (2014/05/23; doc of 2015/02/26)
  • Download from the CTAN portal or the TeX catalogue.
  • PDF Documentation
  • Package file: mathastext.sty
  • Documented source: dtx.
  • Installation:
    1. using run unzip -d <foo> where foo is the TDS compliant destination folder.
    2. manually: tex mathastext.dtx to extract the package file mathastext.sty, some test files, and also mathastext.tex. There one can customize the global font size or paper dimensions for producing the documentation with or without source code included via latex mathastext.tex (thrice) and dvipdfmx mathastext.dvi. It is also possible to run directly pdflatex mathastext.dtx. Then move the various files to the correct locations...
Examples (be patient, the page with its embedded png images weighs circa 5 Mo! It contains about 70 examples, as png images and/or as pdf files.)

Valid HTML 4.01 Transitional