Questions tagged [wolfram-mathematica]

a Computer Algebra System (CAS) used for symbolic manipulation, graphing, and many more mathematical/scientific tasks. There is a SE site dedicated to it at mathematica.stackexchange.com.

Filter by
Sorted by
Tagged with
51
votes
4answers
27k views

Fanciest way to include Mathematica code in LaTeX

I am trying to include a Mathematica code in LaTeX. To obtain the Mathematica code I just exported notebook as PDF. I didn't like the way it was included in my TEX code so I just thought of adding a ...
35
votes
5answers
5k views

Can I have a flexible partial derivative macro?

I was thinking about writing a partial derivative macro that has a similar syntax to the Mathematica D function. (example) The syntax could be like this: \D{f}{x} expands to \frac{\partial f}{\...
28
votes
1answer
4k views

Does a tool exist which can take a LaTeX equation and convert it to a format suitable for evaluation in Wolfram's Mathematica?

I use LaTeX to type up my homework, but as I work I often need to pop things into Mathematica (or manually type them in, or manually use my TI-89, etc.). Currently, I've been manually translating ...
24
votes
3answers
19k views

How to plot a surface from a set of data?

Disclaimer: I already read questions like 2D surface on a 3D surface plot external data in a file and 3D surface plots in TikZ but these did not solve my problem. I have this set of data: x y ...
21
votes
6answers
2k views

Truncation of Napier’s number (e) to an amount of decimal digits of my choice

My students are always very happy when I write a number of decimal digits of the transcendental Napier's number e. I only remember 30 decimal digits as from example. I remind all readers that I'm not ...
21
votes
2answers
6k views

Mathematica notebook into latex document

Whereas Mathematica allows us to dump an entire notebook into a readable LaTeX file. However, the formatting of that file is not optimal. There are many posts on how to "beautify" a single ...
19
votes
4answers
15k views

How can I include Mathematica code in a document?

I want to include some Mathematica code in a LaTeX document. It's along the lines of f[a_,b_]:=a^2+b^2+4b^3+25a*b*c ; However, when I build my PDF, the _ and ^ always render. Is there a way to get ...
19
votes
2answers
5k views

convert Mathematica LaTeX to regular LaTeX

I often want to copy formulas from Mathematica into a LaTeX document. Mathematica has a “copy as LaTeX” function, but it gives me not really the results that I want: \text{Cos}[x]+\text{Sin}[x] I ...
16
votes
2answers
3k views

Export Mathematica 8 plot to TikZ

Is it possible to generate a plot in Mathematica 8 and then somehow export the data so that I can plot it using TikZ? I do not like how Mathematica's plots are rendered and would like to use proper ...
14
votes
4answers
3k views

Plotting the solution of inequalities with WolframAlpha or Maple

I want to plot the solution of two inequalities and include them in a LaTeX paper. I really like they way this looks: Wolfram Alpha. Unfortunately, I have no idea how to export this into a LaTeX-...
14
votes
1answer
2k views

How to show similar display of codes of different programming languages in LaTeX

I am very new to LaTeX and I am writing my thesis. In a chapter, I want to show my codes, which are in Mathematica. I use the listings package as follows: \documentclass{article} \usepackage{...
13
votes
1answer
3k views

How use Mathematica fonts with LaTeX - which method?

I want to be able to use Mathematica fonts with LaTeX. I find two sets of instructions for this: Robert's post there Kuska's instructions in mysymdoc.pdf, a file in the Mathematica 8 folder ...
12
votes
3answers
2k views

Drawing spherical harmonics with pst-3dplot

For my lecture notes in theoretical physics (namely quantum mechanics) I'm trying to visualize the spherical harmonics. I got Mathematica to plot them an this is what I did: SphericalPlot3D[(Sqrt[3/(...
9
votes
1answer
2k views

LaTeX and Mathematica

Does anyone any have experience with writing large works (fx. a thesis, BA, ...) in Mathematica and then successfully converting it to LaTeX code of reasonably quality or should I just stick to my ...
8
votes
5answers
2k views

Mathematica equations to LaTeX but equation is too long, how to split it?

I am new user of LaTeX. I have a problem of splitting long equation which I generate by Mathematica. I tried to use \\, multiline, and split commands but it gives error. Is there way to export ...
8
votes
2answers
1k views

Are there any tools that convert Mathematica code into LaTeX code?

My roommate knows Mathematica. He draw 3-d graph for each term of (a+b)^3 = a^3 + 3a^2b + 3ab^2 + b^3. He doesn't know LaTeX. I want to write his thesis document in LaTeX. So, If there is a tool that ...
7
votes
1answer
2k views

Mathematica code into TikZ code

In my search to understand the creation of a guilloche and in relation to my post Recreating a guilloche with TikZ, I came about the code below, Guilloche[a_, b_, c_, d_, e_, f_] := PolarPlot[...
7
votes
1answer
412 views

How to paste a Mathematica formula to the latex(\unicode{} included)?

Recently, I'm learning how to use Mathematica, and I want to make some notes with LaTeX. I noticed that Mathematica have provide a function "TeXForm", but when dealing with this: the output is \text{...
6
votes
5answers
772 views

How to plot a complicated multi-variable function in a tex document automatically, not just importing an image

I have the following Tex functions and I want to plot them in my tex thesis, but I don't know how. I mean, I want the Tex to draw the function, not just to include an external image to it. y[\text{x$\...
6
votes
2answers
684 views

Prettying up this equation from Mathematica

I like to type in 2d maths into Mathematica and then generate latex code for it. It has been working fine so far until I attempted this expression: TeXForm[HoldForm[ S (k*L) = (4*l + 1)/ 2 (...
6
votes
2answers
515 views

Import from Wolfram Mathematica: Purpose of \pmb and \noindent?

The code below was created from Mathematica software: %% AMS-LaTeX Created with the Wolfram Language : www.wolfram.com \documentclass{article} \usepackage{amsmath, amssymb, graphics, setspace} \...
6
votes
1answer
616 views

Mathematica code in LaTeX document

Consider the following example: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{mathtools} \usepackage{xcolor} \newcommand*\variable[1]{\textcolor{teal}{\texttt{#1}}} \begin{document} ...
6
votes
1answer
1k views

LaTeX: Syntax highlighting for Maple, Mathematica, Sage

I'm typing up a short comparison of Maple, Mathematica, and Sage in LaTeX. My problem is this: I'd like to include highlighted source code in one column (left) and output in another (right). I ...
6
votes
0answers
151 views

How to create vertical Bullet Graphs with PSTricks? [duplicate]

I was looking for a package to create bullet gauge graphs, but I couldn't find any. A good person in this forum show me how he would make it in TikZ, with a little options. I was waiting any moths ...
5
votes
1answer
333 views

How to align this long equation which out put from Mathematica

I use Mathematica, and use the command TeXForm from Mathematica, I get \{\{x\to -19,y\to 4,z\to 11,t\to -14,m\to 11,n\to 19\},\{x\to -19,y\to 4,z\to 11,t\to 19,m\to 11,n\to -14\},...
5
votes
1answer
590 views

Is there a way to change styles in imported EPS files?

I know how to replace simple textual tags in imported EPS files using psfrag; but to ensure a consistent appearance for graphics in my documents, I would like to also be able to make substitutions to ...
5
votes
1answer
1k views

Plotting streams of vector fields

So I have the vector field ${x^2+2*x*y,y^2+2*x*y} and I would like to plot 'streams.' quiver from pgfplots does produce arrows (which I normalise) but I think that streams would make things easier to ...
5
votes
1answer
816 views

Can I use Wolfram Mathematica fonts in XeTeX / LuaTeX?

Wolfram Mathematica comes with full (?) set of math fonts. Is it possible to use these fonts in XeLaTeX and LuaLaTeX? I mean something like \usepackage[math-style=ISO,bold-style=ISO]{unicode-math} \...
5
votes
1answer
403 views

PGF Contour Plot with complicated (nested) functions

I have succeeded in making a simple contour plot by using the function \newcommand\expr[2]{ (-#2^4+#2^2)*e^-(#2^2+#1^2) + (cos((-#1/1.85*pi-0.45) r)/2.0-#1/3.0)/1.5 } MWE: \documentclass{report} \...
4
votes
1answer
760 views

Tikz surface plot

Does anyone know how to replicate this Mathematica plot in tikz? (If possible: I'd like to use "pattern=crosshatched dots" to fill in the shaded region.) Below is the Mathematica code: Show[(*...
4
votes
2answers
913 views

Exporting Mathematica table to LaTeX

I have generated a code for a table using Mathematica using TeX as output. The code did not get compile. Kindly guide me. %% AMS-LaTeX Created by Wolfram Mathematica 7.0 : www.wolfram.com \...
4
votes
2answers
1k views

Strange lack of scaling/resizing of an embedded swf-animation

I am a noob in adding animations. I'm making progress, but new problems apparently show up all the time. Hardly a surprise actually. Anyway. System: WinEdt 7.0, MikTeX 2.9, Windows 7 \documentclass{...
4
votes
2answers
804 views

Why does my Mathematica figure not work with PSFrag?

I created an image in Mathematica with some labels that, for some reason, refuse to be substituted when using PSFrag. Specifically, the Mathematica code image = Plot[Sin[x], {x, 0, 2 π}, PlotLabel-&...
4
votes
2answers
145 views

Figure from Mathematica is printed on separate page

I am trying to include a Mathematica code in LaTeX. To do that, I just exported the code as PDF. The thing is that when I am trying to include the PDF figure in my TeX code, the figure is printed on ...
4
votes
2answers
371 views

PDF's not working in LATEX

I was not sure if I should ask this on Mathematica or LATEX or here. I am very new to LATEX and using \includegraphics to put images into my paper. I am using plots generated in Mathematica as PDF's. ...
4
votes
1answer
1k views

TikZ semi transparent contiguous shapes with no gaps

Short Question: The short question can be stated as follows: Is there a way to perfectly align filled (but possibly not drawn) shapes that completely cover contiguous areas? Consider the MWE: \...
4
votes
1answer
522 views

Mathematical symbols as keywords in listing

Is it possible to use mathematical symbols as keywords in listing? I'm using listings package to typeset Mathematica code and I have used emph parameter of lstset to use blue bold font for some of my ...
4
votes
1answer
244 views

Implementing Moving Graphics from Computational Software Packages

I know that you can implement movies into your LaTeX document, but I wanted to know is there a way to implement moving graphics after source code is compiled in Matlab? This questions can really ...
4
votes
0answers
614 views

Embed interactive 3d objects in a pdf

I have seen pdf files with interactive objects. For example, objects that you can rotate by using the mouse. I would like to know what such formats can be embedded into a pdf using latex, and how. I ...
4
votes
0answers
500 views

Creating plots in Latex - easy to learn? [closed]

I am currently working on my summer project for which I created the following plot with Mathematica: Now I am not 100% satisfied with the results and one of my professors recommended PGF and TikZ. ...
3
votes
2answers
1k views

Convert a latex-terminology equation into a version suitable for wolfram alpha [closed]

I asked a combinatorics question on math stack exchange and received the following LaTeX-flavored answer. I have attempted to convert that equation into something that can be understood by wolfram ...
3
votes
2answers
190 views

\(\(f(x)\)\) double \('s problem

Here is one problem I encountered with in Converting Mathematica Notebook to TeX: https://mathematica.stackexchange.com/questions/25928/save-as-tex-fx-double-s-problem And I got some double \('s \(\(...
3
votes
2answers
115 views

Does TexShop include the exscale, lmodern, and pdf/standalone pkgs,& Ghostscript 9.15+?

I'm interested in installing MaTeX, a LaTeX typesetting package for Mathematica. The installation instructions say I need the following. Are they included with the latest TexShop distribution? A ...
3
votes
1answer
97 views

Link to Open local Mathematica file in Latex

I know that one can use href or url to create links to open webpages, is there a way to insert a link to open a notebook file (mathematica?) i have it in the local folder but I cannot seem to get it ...
3
votes
1answer
1k views

Installing Mathematica Fonts in MikTeX

I would like to use Mathematica fonts with pdfLaTex in Miktex, but I'm having trouble installing them. I have only found guides as to how to install them in TexLive and I don't know how to alter the ...
3
votes
3answers
616 views

LaTeX and Mathematica plot with same font/style

I know there are a couple of questions with answers to this but none of them seems to work for me so I ask here. Some basic facts: I have 1. Mac OSX 2. Very limited knowledge in Terminal (so things ...
3
votes
0answers
195 views

Math application/library that uses LaTeX?

I don't want to re-invent the wheel here, and I know that there are a lot of good math libraries out there for all sorts of things; what I'm wondering is if there's one that generates its answers in ...
2
votes
3answers
110 views

Plotting a function defined by equation without closed form solution

I'm trying to have the a silimiar plot to the one Wolfram Alpha provides me here to the equation $24.6347 \left(246.347 x + \sqrt{(246.347 x + 20)^2 + 1} + 20\right)^{-a} =\ 30.2879 \left(-33.6532 x +...
2
votes
1answer
374 views

TikZ \filldraw command acting strange

I am attempting to plot a region in TikZ using data exported from a Mathematica RegionPlot. But the TikZ \filldraw command is giving me a strange-looking output. The problem with the generated TikZ ...
2
votes
1answer
177 views

Tikz picture of two mathematical functions

I'm trying to draw the functions y=(0.05*0.4+0.1*2*x)/(0.05+0.1*2) and x=-0.1/(2*10*(y - 0.1))+y, by using tikz as follows \begin{tikzpicture} \begin{axis}[xmin=0,xmax=1,ymin=0,ymax=1, samples=1000, ...