Questions tagged [latex]

Questions about any kind of interaction with TeX, LaTeX, and friends, including transferring text/code to/from TeX, using Mathematica graphics in LaTeX documents etc.

Filter by
Sorted by
Tagged with
2 votes
3 answers
76 views

How to type special characters used in $\LaTeX$?

While using $\LaTeX$, there are two characters, \Re and \Im, that represent the real and imaginary parts of a complex number. These look like this: How can I type these two characters in Mathematica? ...
user avatar
  • 2,633
0 votes
0 answers
22 views

CellsToTeX copy pasting back into notebook for sub and superscript box for partial derivatives, powers, subscripts etc

I'm using the CellsToTeX` package, along with the mmacells LaTeX package. I'm including code with a partial derivative in my pdf. So for instance to get this ...
user avatar
  • 2,648
3 votes
1 answer
103 views

How can I make MMA give me \mathrm{d} when converting definite integrals into Latex code?

Recently my work contains a lot of expressions with definite integrals, and I need to convert them into latex code to present my results. To my disappointment, MMA always converts the differential ...
user avatar
  • 289
1 vote
1 answer
107 views

Why does this TeXForm cause many errors?

Why do I get this error? I don't do any calculation with this. I just want to use TeXForm and then wrap MaTeX around it. ...
user avatar
  • 1,750
2 votes
1 answer
39 views

How can I prevent my self-introduced integral sign being multiplied into the numerator of the integrand when converting the expression into TeXForm?

Recently I have been doing a lot of double and triple integrals. To my disappointment, MMA does not have built-in integral signs for those advanced or special integrals. Fortunately, I have found out ...
user avatar
  • 289
1 vote
1 answer
40 views

How can I copy the cell as LaTeX code but the look remains as what I typed?

I typed this on Mathematica. ...
user avatar
  • 1,750
2 votes
1 answer
54 views

How to write the expression of norm in Mathematica

Please how I can write the following expression of Latex in Mathematica $\parallel F \parallel_{L^2 (\omega)} $ Thank you in advance.
user avatar
2 votes
1 answer
111 views

Using subscripted variables in the LaTeX output [closed]

When I run the following code in Mathematica: ...
user avatar
  • 2,036
0 votes
1 answer
67 views

Getting Graphs from Mathematica to Latex

In my Mathematica notebook, I have a matrix of graphs which I want to put as a table of graphs into a Latex file. The way I usually do it take a screenshot of each of the graphs and put them as a ...
user avatar
  • 75
2 votes
1 answer
66 views

Easiest way to get both expression and result in latex in Mathematica on command line

I'm trying to build a function that takes in an expression in unevaluated form, and then returns the full equation in LaTeX, e.g. I would like to feed in the below and receive the LaTeX output ...
user avatar
  • 165
7 votes
4 answers
253 views

How to write LaTeX style math in notebook (as text)

If I have a notebook and I am just typing out ideas, I would like to be able to write math just as TeX style formatting for display and not as input to Mathematica. I have found that I can use CTRL-4 ...
user avatar
  • 173
3 votes
1 answer
111 views

How can I move the expression down from numerator in TeXForm?

In[1]:=f[n]/9 // TeXForm Out[1]//TeXForm=\frac{f(n)}{9} but I need \frac{1}{9}f(n) instead.
user avatar
0 votes
0 answers
14 views

Display error when rendering LaTeX brackets [duplicate]

There appears to be an offset error when rendering inline LaTeX in my copy of Mathematica 12.3. Entering, for example, \langle \rangle\ gives "$]\!] \ \langle$&...
user avatar
1 vote
1 answer
48 views

Replacing the string " \right)" by "\right)" [closed]

I've got a large string from LaTeX that comes in the form string="\left(3x+1 \right)". In Mathematica. I would like to remove the space at the end of that expression. The problem is that ...
user avatar
1 vote
2 answers
102 views

How can I convert dot product into Latex code without dot?

Recently I need to convert a lot of expressions containing dot products into Latex code. To my annoyance, the mathematica system will always leave literal dots (".") in the latex code, but ...
user avatar
  • 289
2 votes
1 answer
74 views

Output function definition as TeXForm with big bracket

I've checked this answer. While it works in Mathematica, the $\LaTeX$ output is weird. ...
user avatar
7 votes
2 answers
343 views

Why is Mathematica changing the output display format?

I do a command like Table[i^5/(i^5 + 7*i + 1) Sin[x]/E^(3 i x), {i, 1, 5}] The output shows up as $$\left\{\frac{1}{9} e^{-3 x} \sin (x),\frac{32}{47} e^{-6 x} \...
user avatar
  • 2,036
9 votes
2 answers
256 views

Replicating $\LaTeX$'s pgfplot Style in Mathematica

I'm trying to replicate the plot theme of $\LaTeX$'s pgtplots for 3D surfaces in Mathematica's Plot3D Function. The goal is to create something similar to this: So I played around with the opacity ...
user avatar
  • 145
2 votes
0 answers
40 views

How to catch this error from TeXForm? TeXForm::unspt

I get lots of error from using TeXForm in 12.3.1 on some solutions that contain DifferentialRoot written in the new ...
user avatar
  • 108k
1 vote
1 answer
127 views

Expression cannot begin with "$\sum_{j=0}^{\floor*\frac{a}{b}} j$"

This is my first time using Wolfram Mathematica and writing in TeX. I'm on the free trial version of Mathematica, and I'm writing in a notebook, using the "Inline TeX Input" option on the &...
user avatar
0 votes
0 answers
69 views

Can I compile wolfram code into latex like sagemath does with the sagetex package?

I'm trying to use mathematics inside latex. Just as it is done with sagetex. I have the suspicion that it cannot be done since mathematica is not open source, but hope is the last thing that I'm lost. ...
user avatar
3 votes
1 answer
131 views

3D plot with LaTeX axis labels

I am trying to create a 3D density plot and use LaTeX to render the axis labels. My code is below. When I comment out the AxesLabel command the code runs fine and, in particular, MaTeX renders the ...
user avatar
  • 31
0 votes
1 answer
89 views

How can I put Latex mathematics in the labeling of the axes of a figure? [duplicate]

I want to label my y-axis as $\frac{P}{e^{3N}}$. I just know how to put symbols by using the command; [Phi] as an example. I need a precise command to get the latex math.
user avatar
  • 65
3 votes
1 answer
121 views

Problem when translating from LaTeX to Mathematica

I have a code in Python that makes some calculations for different reaction-diffusion equations. I am trying to let the user define the variables and parameters of the system. The problem is that, for ...
user avatar
1 vote
2 answers
64 views

Problem when reading a small number as a LaTeX input

I've got a String variable defined as b="4.0 \cdot 10^{-5}", which is clearly written as LaTeX input. The problem is that when I want to obtain the ...
user avatar
2 votes
1 answer
85 views

Make a Greek letter with a subscript appear in an Input message

I've got a variable that has two names on it. It is defined as follows: par={b, Subscript[λ, 0]} I would like to ask the user to enter a value of the second ...
user avatar
2 votes
1 answer
73 views

Different Latex is generated when changing a number from 2 to 1. Using HoldForm

This is the most bizzar thing I saw with Mathematica TeXForm. Could someone please explain why it happens and if there is a workaround? First, will show screen shot. I have an expression, when I have ...
user avatar
  • 108k
1 vote
0 answers
51 views

How to get MaTeX to export to PDF with 12.3.1? [duplicate]

I like to use MaTeX to produce publication quality figures. It makes the right font at the right size. However, since upgrading to MMA 12.3.1, it does not export to pdf with export quality. What ...
user avatar
  • 1,184
2 votes
1 answer
82 views

How can I convert the inverse hyperbolic function I defined and built-in inverse trig functions to TeXForm the way I prefer?

In Mathematica,the inverse hyperbolic functions are displayed with the prefix "Arc" like "ArcSinh[]", which I thought incorrect and misleading. Since the hyperbolic angle is ...
user avatar
  • 289
2 votes
0 answers
68 views

Best mode to export a Mathematica notebook to LaTeX

I prepared a notebook with Mathematica containing many graphics and I tried to Save As -> LaTeX Document. Once opened in LaTeX I lost every graphic, I can't see the numbered items I inserted, the ...
user avatar
  • 131
1 vote
0 answers
154 views

Windows MaTeX Configuration [closed]

I configured Ghostscript but not sure why pdflatex was not configured. this is how Ghostscript is done: ...
user avatar
3 votes
1 answer
177 views

Poor label and legend resolution using MaTeX

I am using Mathematica 12.3 and the MaTeX package in order to typeset my labels and legends correctly. I get quite blurry text and I don't know if there is a way to improve the resolution of the ...
user avatar
1 vote
1 answer
116 views

Creating a table and exporting to LATEX

I have two functions as numeric[x, t] and exact[x, t]. I want to create a table including 5 columns as follows (table formatting doesn't matter) and to export it to LATEX: I use ...
user avatar
  • 483
0 votes
1 answer
66 views

How to put plotted function from Wolfram Cloud in LaTeX [closed]

...
user avatar
  • 57
0 votes
1 answer
460 views

How can I display conformal mapping? [duplicate]

z to quadratic function with conformal map. How to plot this in Wolfram Mathematica or Geogebra? Then I can write that code in $\LaTeX$. https://cmgreen.io/images/...
user avatar
  • 57
2 votes
2 answers
101 views

Mathematica Function Definition to Latex?

Suppose I have a function defined: g[z_]:=Sum[Sin[z/k!],{k,0,infinity}] And I want to export the following Latex based on only the function definition $$\sum_{k=0}^...
user avatar
  • 571
1 vote
0 answers
39 views

brackets and minus in TeXForm or TraditionalForm

-Subscript[\[Gamma],a]*Subscript[\[Rho],1,4]//TeXForm gives me this \rho _{1,4} \left(-\gamma _a\right) Is there a way to get ...
user avatar
  • 31
2 votes
2 answers
70 views

Copying displayed results into LaTeX results in lots of "Null"s

Bug introduced in 9.0, persisting through 12.2. I use the pdconv function below, in order to show partial derivatives in a much more intuitive way: ...
user avatar
10 votes
2 answers
236 views

Inline TeX Input renders wrong characters / symbols

Bug introduced in 12.2, fixed in 13.0. As you may know, you can write TeX within a cell with CTR+$ and press ...
user avatar
  • 141
3 votes
1 answer
42 views

Copy as LaTex while maintaining SetPrecision?

I am working with large tables of numbers, where the numbers can have as many as 10 decimal points. To make the work more presentable, I use ...
user avatar
2 votes
1 answer
131 views

Is it possible to convert a matrix in $\LaTeX$ format to Mathematica input? [duplicate]

Is it possible to do this already in version 11.3? For example, I want to draw a graph ...
user avatar
  • 896
1 vote
2 answers
48 views

Multiplication with custom notation

I would like to compute the product $$(Es+r_{13})(F_{13}s)(F_{3}s+r_{3})(F_{2}s+r_{2})(F_{12}s+r_{12})(F_{1}s+r_{1})(F_{23}s+r_{23})$$ where $E$, $F_i$, and $r_i$ represent arbitrary numbers whose ...
user avatar
8 votes
0 answers
376 views

InLine TeX input seems unstable

In the documentation of version 12.2 there is a new feature to input TeX as mentioned by Stephen Wolfram. See: InlineTeXInput in the documentation. After typing CTRL$ you can type in some TeX, and ...
user avatar
  • 3,600
1 vote
1 answer
170 views

Converting tensorial expressions in xAcT to LaTeX

I'm trying to convert tensorial expressions from xAct to LaTeX format using the TeXForm command. This seems to work fine when using covariant derivatives (As in Copy xAct expression to LaTeX). However,...
user avatar
0 votes
1 answer
88 views

Exporting string with newline and tab symbols to LaTeX

We have a string that has "tab" symbol between letters "B" and "C" and "newline" symbol between letters "C" and "D": Input: ...
user avatar
  • 2,503
11 votes
1 answer
515 views

LyX-like LaTeX in Mathematica Text Cells

Lately I've been learning more about the Wolfram Language, and I've become particularly enamored with the stated goals of the Mathematica notebook interface. I've used Mathematica exclusively as a &...
user avatar
  • 310
1 vote
0 answers
32 views

Distinguishing function calls from multiplication when importing LaTeX via ToExpression and TeXForm

I'm trying to parse a LaTeX representation of a Desmos calculator (like this one) via Mathematica. Desmos exposes a JSON representation of its calculators, including a LaTeX representation of ...
user avatar
  • 111
0 votes
1 answer
77 views

Convert expression to LaTeX string

How do I convert a Mathematica expression to the equivalent TeXForm string as shown when applying TeXForm? For example: ...
user avatar
  • 3,553
1 vote
0 answers
49 views

Latex Stylesheet and inline text cells

I am looking for a professionally looking LaTex ish stylesheet, where i can still calculate equations within Mathematica. Also i am wondering if i can get inlineText cells to display summations with ...
user avatar
  • 11
0 votes
0 answers
43 views

Exporting to latex an expression: it doesn't appear the same as in mathematica

Mathematica doesn't export in latex the same way it is written within the software. Consider the following expression: ...
user avatar
  • 1,973

1
2 3 4 5
7