Exporting examples for use in other applications



Raymond Toy <toy.raymond at gmail.com> writes:

>>>>>> "Leo" == Leo Butler <l_butler at users.sourceforge.net> writes:
>
>     Leo> Neuwirth Erich <erich.neuwirth at univie.ac.at> writes:
>     >> org-mode for Emacs can embed maxima code in documents.
>
>     Leo> You can embed Maxima, or BC, or what-have-you in LaTeX--all that is
>     Leo> needed is file i/o and the \write18 system command. Here is a near
>     Leo> minimal working example of how to do this (the \exec macro in
>     Leo> exec.tex). I use a more elaborate version to write my beamer lecture
>     Leo> slides, course assignments and so on.
>
> That's interesting.  I didn't know you could do that.
>
>     Leo> My point is that if there were a typesetter written in lisp, we could
>
> A long time ago, I vaguely remember someone trying to reimplement TeX in
> lisp.  I don't know what happened to that project though.

I came across this interview last winter

http://www.tug.org/interviews/weening.html

The description of the lisp-tex interface there is pretty much that used
in emacs by org-mode and muse-mode. Those lead me to want to use calc
in elisp, which is, I think, strictly weaker than maxima in common lisp.

This guy is building a lisp interpreter in tex
https://bitbucket.org/hak7a3/lisp-on-tex/src

There is also this article that I came across which looks quite
interesting, but I need some time to digest it, though I believe that it
describes something quite similar to org-mode in approach.

@article {SPE:SPE485,
author = {Iwasaki, Hideya},
title = {Developing a Lisp-based preprocessor for TEX documents},
journal = {Software: Practice and Experience},
volume = {32},
number = {14},
publisher = {John Wiley & Sons, Ltd.},
issn = {1097-024X},
url = {http://dx.doi.org/10.1002/spe.485},
doi = {10.1002/spe.485},
pages = {1345--1363},
keywords = {document preparation, Lisp, preprocessor, S-expression},
year = {2002},
}
 

-- 
Leo Butler                      leo.butler at member.ams.org
SDF Public Access UNIX System -   http://sdf.lonestar.org