Class: Asciidoctor::LaTeX::Chem

Inherits:
Extensions::Postprocessor
  • Object
show all
Defined in:
lib/asciidoctor/latex/chem.rb

Overview

Modify the default mathJax script to run mhchem instead of auto numbering of equations. Autonumbering is taken care of by [env.equation], [env.equationalign]

See www.noteshare.io/section/the-chem-environment

This is a hack. #FIXME!

Instance Method Summary (collapse)

Instance Method Details

- (Object) process(document, output)



17
18
19
# File 'lib/asciidoctor/latex/chem.rb', line 17

def process(document, output)
  output.gsub(TEX_SNIPPET, CHEM_SNIPPET)
end