Skip to content

Node.js-based Pandoc filters for converting asciimathml into TeX

License

Notifications You must be signed in to change notification settings

yuwash/asciimathml-pandocfilter

 
 

Repository files navigation

asciimathml pandocfilter

Node.js-based Pandoc filters for converting asciimathml into TeX

This is a fork of the asciimathml repository providing the conversion scripts (originally for web browsers):

  • ASCIIMathML.js is a compact JavaScript program that translates simple calculator-style math expressions on a webpage to MathML.
  • asciimath-based/ASCIIMathTeXImg.js provides utility functions AMTparseAMtoTeX, AMparseMath, and AMprocessNode to convert expressions in AsciiMath notation into LaTeX expressions.

Dependencies

You need node.js and the pandoc-filter package:

npm install -g pandoc-filter

Usage

Run pandoc with this filter:

pandoc --filter ./path/to/asciimathfilter.js [your options ...]

The filter will apply conversion on any inline or block math object beginning with :a, e. g. $:a sum_(k=1)^3 k$.

About

Node.js-based Pandoc filters for converting asciimathml into TeX

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.4%
  • HTML 22.1%
  • PHP 8.5%