Mathematica, xspace and dtx files...



I have a problem (On many levels, but let's stick to LaTeX at the
moment) with trying to compile TeX files generated from Mathematica. I
use the "Save as Special -> TeX" of course, and generate a TeX file and
the appropriate .eps files of my graphs.

I also followed the directions found on:
http://support.wolfram.com/mathematica/interface/export/miktex.html
for making sure MikTeX finds the correct .sty files and such (it needed
to find the notebook2e.sty and wrisym.sty) After all is said and done,
when I try to TeX a document like the example file included with
Mathematica (msymdoc.tex) I run into the error, "LaTeX Error: File
'xspace.sty' not found."

This is kinda a stupid issue, but I cannot get the xspace.sty file.
The dtx file is included in the Tools file downloaded from:
http://www.ctan.org/tex-archive/macros/latex/required/tools/
But every time I try to compile the dtx file to generate the xspace.sty
file, I get the error: "LaTeX Error: File 'xspace.sty' not found"

This says to me I need to xspace.sty file to generate the xspace.sty
file. What am I doing wrong?

Here is an example Mathematica generated File:

%%
%%
%% This is a LaTeX document generated by automatic conversion of a
%% Mathematica notebook using Mathematica 4.0.
%%
%% This document uses special macros that are defined in a LaTeX
%% package file with a name of the form notebook*.sty. Appropriate
%% commands for loading the package have been included in this
document.
%% The LaTeX package files can be found in a directory with path:
%%
%% C:\Program Files\Wolfram
Research\Mathematica\4.0\SystemFiles\IncludeFiles\TeX\
%%
%% The LaTeX package used in this document may require that your
%% LaTeX implementation support fonts other than the standard Computer
%% Modern fonts that are used by LaTeX. See the Additional Information
%% section under the TeXSave entry in the Mathematica Reference Guide
%% for more information.
%%
%% Implementation-specific instructions for installing TeX-related
files
%% can be found at this URL.
%%
%% http://www.wolfram.com/support/FrontEnds/Export/TeX
%%
%%

\documentclass{article}
\usepackage{notebook2e, latexsym}

\begin{document}

\dispSFinmath{
\frac{4\pi }{{x^2}}
}

\end{document}

.



Relevant Pages

  • 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)
  • Re: Evaluating Latex in Mathematica
    ... my LateX output using a mathematics evaluation environment (currently ... Mathematica allows you to paste LateX ... what to do with Macros. ...
    (comp.text.tex)
  • Re: Mathematica 5.0 and Debian Linux
    ... > Save as SPecial to latex and then running latex on the file? ... though at the end a dvi file is produced. ... I have tried only a few times to save Mathematica notebooks to latex. ...
    (Debian-User)
  • Re: [Mathematica] Pages breaks in middle of graphs
    ... Mathematica to be a bit more sensible about where it puts the page breaks? ... I think the best system for page layout is Latex I am afraid. ... Also you can adjust the size of graphics inside Mathematica (using ... empty spaces in the page if you look at the pdf file, ...
    (sci.math.symbolic)
  • 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)

Loading