scribble-math/metrics
Emily Eisenberg 6ee2ecf47e Add \dots commands
Add all of the \dots commands, and import their metrics from the ttf files.

Fixes #23

Auditors: alpert
2014-09-12 15:02:18 -07:00
..
extract_tfms.py Add support for \left and \right 2014-09-04 21:58:43 -07:00
extract_ttfs.py Add \dots commands 2014-09-12 15:02:18 -07:00
mapping.pl Update metrics using TeX metrics instead of TTF metrics 2014-09-03 20:12:00 -07:00
parse_tfm.py Update metrics using TeX metrics instead of TTF metrics 2014-09-03 20:12:00 -07:00
README.md Add the ability to extract metrics from ttfs 2014-09-12 14:59:28 -07:00
replace_line.py Update metrics using TeX metrics instead of TTF metrics 2014-09-03 20:12:00 -07:00

How to generate new metrics


There are several requirements for generating the metrics used by KaTeX.

  • You need to have an installation of TeX which supports kpathsea. You can check this by running tex --version, and seeing if it has a line that looks like

    kpathsea version 6.2.0

  • You need the JSON module for perl. You can install this either from CPAN or with your package manager.

  • You need the python fontforge module. This is probably either installed with fontforge or can be installed from your package manager.

Once you have these things, run

make metrics

which should generate new metrics and place them into fontMetrics.js. You're done!