diff --git a/modules/LatinModern/GUST-FONT-LICENSE.txt b/modules/LatinModern/GUST-FONT-LICENSE.txt new file mode 100644 index 0000000..60b5500 --- /dev/null +++ b/modules/LatinModern/GUST-FONT-LICENSE.txt @@ -0,0 +1,30 @@ +% This is a preliminary version (2006-09-30), barring acceptance from +% the LaTeX Project Team and other feedback, of the GUST Font License. +% (GUST is the Polish TeX Users Group, http://www.gust.org.pl) +% +% For the most recent version of this license see +% http://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt +% or +% http://tug.org/fonts/licenses/GUST-FONT-LICENSE.txt +% +% This work may be distributed and/or modified under the conditions +% of the LaTeX Project Public License, either version 1.3c of this +% license or (at your option) any later version. +% +% Please also observe the following clause: +% 1) it is requested, but not legally required, that derived works be +% distributed only after changing the names of the fonts comprising this +% work and given in an accompanying "manifest", and that the +% files comprising the Work, as listed in the manifest, also be given +% new names. Any exceptions to this request are also given in the +% manifest. +% +% We recommend the manifest be given in a separate file named +% MANIFEST-.txt, where is some unique identification +% of the font family. If a separate "readme" file accompanies the Work, +% we recommend a name of the form README-.txt. +% +% The latest version of the LaTeX Project Public License is in +% http://www.latex-project.org/lppl.txt and version 1.3c or later +% is part of all distributions of LaTeX version 2006/05/20 or later. + diff --git a/modules/LatinModern/MANIFEST-Latin-Modern-Math.txt b/modules/LatinModern/MANIFEST-Latin-Modern-Math.txt new file mode 100644 index 0000000..b8ec614 --- /dev/null +++ b/modules/LatinModern/MANIFEST-Latin-Modern-Math.txt @@ -0,0 +1,60 @@ +########################################################################### +############ The TeX Gyre Collection of Fonts ############ +########################################################################### + +Font: Latin Modern Math +Authors: Bogus\l{}aw Jackowski, Piotr Strzelczyk and Piotr Pianowski +Version: 1.958 +Date: 14 I 2013 + +Copyright 2012--2013 for TeX Gyre math extensions by B. Jackowski, +P. Strzelczyk and P. Pianowski (on behalf of TeX Users Groups). + +This work can be freely used and distributed under +the GUST Font License (GFL -- see GUST-FONT-LICENSE.txt) +which is actually an instance of the LaTeX Project Public License +(LPPL -- see http://www.latex-project.org/lppl.txt). + +This work has the maintenance status "maintained". The Current Maintainer +of this work is Bogus\l{}aw Jackowski, Piotr Strzelczyk and Piotr Pianowski. + +This work consists of the files listed in this file. + +Below, in three sections required by the GUST Font License, +font names and file names specific for the Latin Modern Math +font are listed. + +NOTE: the names of the directories are not subject to the renaming +restrictions. + +1. Fonts whose names should be changed in derived works as requested + by clause 1 of GUST-FONT-LICENSE.txt + + 1.1 OTF menu names + Latin Modern Math + LatinModernMath-Regular + +2. Files whose names should be changed in derived works as requested + by clause 1 of GUST-FONT-LICENSE.txt + + 2.1 otf/latinmodern-math.otf + + 2.2 doc/MANIFEST-Latin-Modern-Math.txt + doc/README-Latin-Modern-Math.txt + doc/presentation-lmodern_math.pdf + doc/math-test.tex + doc/math-test-context.tex + doc/test-context-latinmodern_math.pdf + doc/test-context-latinmodern_math.tex + doc/test-lualatex-latinmodern_math.pdf + doc/test-lualatex-latinmodern_math.tex + doc/test-xelatex-latinmodern_math.pdf + doc/test-xelatex-latinmodern_math.tex + doc/test-word-tg_latinmodern_math.docx + doc/test-word-tg_latinmodern_math.pdf + +3. Files whose names need not be changed in derived works as requested + by clause 1 of GUST-FONT-LICENSE.txt + + doc/GUST-FONT-LICENSE.txt + doc/INSTALL.txt diff --git a/modules/LatinModern/README-Latin-Modern-Math.txt b/modules/LatinModern/README-Latin-Modern-Math.txt new file mode 100644 index 0000000..6697b5d --- /dev/null +++ b/modules/LatinModern/README-Latin-Modern-Math.txt @@ -0,0 +1,83 @@ +########################################################################### +############ Latin Modern Collection of Fonts ############ +########################################################################### + +Font: Latin Modern Math +Authors: Bogus\l{}aw Jackowski, Piotr Strzelczyk and Piotr Pianowski +Version: 1.958 +Date: 14 I 2013 + +License: + % Copyright 2012--2013 for the Latin Modern math extensions by B. Jackowski, + % P. Strzelczyk and P. Pianowski (on behalf of TeX Users Groups). + % + % This work can be freely used and distributed under + % the GUST Font License (GFL -- see GUST-FONT-LICENSE.txt) + % which is actually an instance of the LaTeX Project Public License + % (LPPL -- see http://www.latex-project.org/lppl.txt). + % + % This work has the maintenance status "maintained". The Current Maintainer + % of this work is Bogus\l{}aw Jackowski, Piotr Strzelczyk and Piotr Pianowski. + % + % This work consists of the files listed + % in the MANIFEST-Latin-Modern-Math.txt file. + +########################################################################### +############ A BRIEF DESCRIPTION OF THE FONT ############ +########################################################################### + +Latin Modern Math is a math companion for the Latin Modern family +of fonts (see http://www.gust.org.pl/projects/e-foundry/latin-modern) in +the OpenType format. + +The math OTF fonts should contain a special table, MATH, described in the +confidential Microsoft document "The MATH table and OpenType Features +for Math Processing". Moreover, they should contain a broad collection +of special characters (see "Draft Unicode Technical Report #25. +UNICODE SUPPORT FOR MATHEMATICS" by Barbara Beeton, Asmus Freytag, +and Murray Sargent III). In particular, math OTF fonts are expected +to contain the following scripts: a basic serif script (regular, bold, +italic and bold italic), a calligraphic script (regular and bold), +a double-struck script, a fraktur script (regular and bold), a sans-serif +script (regular, bold, oblique and bold oblique), and a monospaced script. + +The basic script is, obviously, Latin Modern. Some scripts, however, +are borrowed from other fonts (the current selection, however, may +be subject to change), belonging, however, to the "TeX circle": + + * the calligraphic and fraktur alphabets are excerpted from the renowned + Euler family (http://en.wikipedia.org/wiki/AMS_Euler); + + * the double struck script is excerpted from Alan Jeffrey's bbold font + (http://www.tug.org/texlive/Contents/live/texmf-dist/doc/latex/bbold/bbold.pdf) + + * the sans serif and monospaced alphabets are excerpted from + the Latin Modern Sans and Latin Modern Mono fonts + (http://www.gust.org.pl/projects/e-foundry/latin-modern); + sans serif bold Greek symbols (required by the already mentioned + "Unicode Technical Report #25") were prepared using D.E. Knuth's + font sources with some manual tuning + +The main math component, that is, the math extension, was programmed +from scratch, with an attempt to retain the visual compatiblility +with the original D.E. Knuth's fonts. In particular, all symbols +(with a few exceptions) appearing in the D.E. Knuth's "canonical" fonts +have the same width (rounded) as the corresponding Knuthian ones. + +Note that the members of all the mentioned alphabets, except +the main roman alphabet, should be considerd symbols, not letters; +symbols are not expected to occur in a text stream; instead, +they are expected to appear lonely, perhaps with some embellishments +like subscripts, superscripts, primes, dots above and below, etc. + +To produce the font, MetaType1 and the FontForge library were used: +the Type1 PostScript font containing all relevant characters was +generated with the MetaType1 engine, and the result was converted +into the OTF format with all the necessary data structures by +a Python script employing the FontForge library. + +The TeX Gyre Math Project was launched and is supported by +TeX USERS GROUPS (CS TUG, DANTE eV, GUST, NTG, TUG India, TUG, UK TUG). +Hearty thanks to the representatives of these groups and also +to all people who helped with their work, comments, ideas, +remarks, bug reports, objections, hints, consolations, etc. diff --git a/modules/LatinModern/latinmodern-math.woff b/modules/LatinModern/latinmodern-math.woff new file mode 100644 index 0000000..0b46642 Binary files /dev/null and b/modules/LatinModern/latinmodern-math.woff differ diff --git a/modules/ext.math.css b/modules/ext.math.css index 48bccb8..7098b2d 100644 --- a/modules/ext.math.css +++ b/modules/ext.math.css @@ -13,8 +13,20 @@ .mwe-math-fallback-source-inline { display: inline; vertical-align: middle} .mwe-math-fallback-source-display { display: block; margin-left: auto; margin-right: auto;} - @-moz-document url-prefix() { .mwe-math-mathml-inline { display: inline !important; } .mwe-math-mathml-display { display: block !important; margin:auto!important;} -} \ No newline at end of file +} + +/* Set the fonts to use for the MathML rendering */ +@namespace m url('http://www.w3.org/1998/Math/MathML'); +m|math { + /* Try OpenType MATH fonts, the WOFF fallback and the old math fonts */ + font-family: Cambria Math, Latin Modern Math, STIX Math, LatinModernMathWOFF, MathJax_Main, STIXGeneral, serif; +} +@font-face { + /* WOFF version of Latin Modern Math. + See https://github.com/fred-wang/MathFonts */ + font-family: LatinModernMathWOFF; + src: url(./LatinModern/latinmodern-math.woff); +}