Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Latest commit

 

History

History
34 lines (24 loc) · 1010 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 1010 Bytes

AsciiMath Pandoc Filter

Node.js-based Pandoc filter for converting AsciiMath 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 to install the required modules.

npm install

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 or ?, e. g. $?a^2+b^2 = c^2$.