# holdenk/schemetex forked from abarbu/schemetex

Chicken egg that generates code from inline TeX
This branch is 36 commits behind abarbu:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.

# schemetex

This is early work in progress. It allows you to write inline TeX equations which get compiled to Scheme functions. Try out emacs and org-preview-latex if you're going to use this module, it renders the TeX inside your buffer making is especially easy to read.

(tex #@"$TeX$")
(tex-hash #@"$TeX$")
This is the basic interface, it currently performs the conversion at runtime, although there's no reason why this couldn't be done at compile time. You're better off using tex-hash as the conversion can be expensive for more complex expressions. This module defines a reader macro #@"$...$". This is because charactere escaping is performed differently in TeX than in scheme. Dollar signs are present to allow 'org-preview-latex' to find and render the inline LaTeX.

(tex #@"$\sum_x\{x^2+y^3\}$")
Will for example return a function that takes two arguments, 'x' and 'y',

(tex->lambda #@"TeX")
This will return the code produced for a particular TeX string.

   Copyright 2012 Andrei Barbu. All rights reserved.