[TxMt] Mathematica + LaTeX

Evan Berkowitz evan.berkowitz at gmail.com
Fri Oct 17 04:40:32 UTC 2008


I work thoroughly in Mathematica and in LaTeX and would enjoy the  
following capability:

select some tex-math.  Use a macro on it to do the following:
--expand out any short-hand I use as specified in an arbitrary style  
file.
--call MathKernel on the TeX line.
	--Convert from the TeX to Mathematica standard form using  
Mathematica's ToExpression.
	--Evaluate the math
	--use Mathematica's TeXForm to convert the math output into LaTeX
--insert the result into the file or into the clipboard.

my Mathematica installation came with a command-line MathKernel  
program which I've been trying to call with

MathKernel -noprompt <<EOF
TeX expression that I want evaluated
EOF

However, when I tried this in bash, the escaping of the TeX  
backslashes on the way in and then again on the way out of the  
MathKernel program was causing major headaches.

Has anyone ever interfaced the two programs in this way?  Anyone have  
any advice as to how to approach this problem?  I can't seem to find  
any Mathematica interaction bundle for TM.

Thanks very much,


Evan Berkowitz



--------------------------------------------------
Physics is like sex. Sure, it may give some practical results, but  
that's not why we do it.

           Richard Feynman


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20081017/5d2fed51/attachment.html>


More information about the textmate mailing list