Re: Evaluating Latex in Mathematica



Andrew M <mattare2@xxxxxxxxx> writes:
Hi--I'm relatively new to Latex (I am using Lyx to familiarize
myself), so please bear with me. I would like to be able to evaluate
my LateX output using a mathematics evaluation environment (currently
I am using mathematica). Mathematica allows you to paste LateX
directly into their interface and converts it into their system so
that it can be evaluated. Unfortunately, Mathematica doesn't know
what to do with Macros. Any ideas? Is there a way to convert a LateX
macro into its literal expression? Thanks,

you can't always tell whether a macro is statically convertible into
its expansion. if you're using a macro as a shorthand to save typing
(say, \Z for \mathbb{Z}), then you can convert by a global replace in
your editor. macros like \section do significant computation on their
environment and their arguments to determine what to do; static
conversion is obviously out.

thus a general converter for macros is a pretty hopeless aim: the
program that does it is called latex, and any other that tries (such
as latex2html) is at best a partial solution.

(you confuse me by your reference to lyx: how exactly are you using it
as a familiarisation tool?)
--
Robin Fairbairns, Cambridge
.



Relevant Pages

  • Re: Evaluating Latex in Mathematica
    ... my LateX output using a mathematics evaluation environment (currently ... Mathematica allows you to paste LateX ... tool for documentation. ...
    (comp.text.tex)
  • Evaluating Latex in Mathematica
    ... Hi--I'm relatively new to Latex (I am using Lyx to familiarize ... my LateX output using a mathematics evaluation environment (currently ... Mathematica allows you to paste LateX ... what to do with Macros. ...
    (comp.text.tex)
  • Re: tex or latex for page layout intensive application
    ... short books where the page layout is a much bigger deal. ... something where I should use plain TeX instead of LaTeX or if it is ... set by a macro (or macros), then Plain TeX, LaTeX or ConTeXt (or some ... You will need to set the pdf box information, and most printers will ...
    (comp.text.tex)
  • Re: Very poor Lisp performance
    ... >> are similar in power to Lisp's macros. ... >> have to learn something about Common Lisp macros. ... > So given that you can programmatically manipulate Mathematica symbolic ... > it from evaluating in the future. ...
    (comp.lang.lisp)
  • Re: Mathematica - what replaces AuthorTools?
    ... embedding graphics, centering ... Latex is much better in all of these. ... Mathematica to import it to Latex manually (and having to do this again each ... scientific publications. ...
    (sci.math.symbolic)