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
0 votes
0 answers
75 views

Why is TeXForm giving me two different outputs?

So I am attempting to learn how to use the TeXForm expression in Mathematica (as part of teaching myself how to use this programming language), and although it ...
CrSb0001's user avatar
  • 125
0 votes
0 answers
54 views

How to use Format in TeXForm keeping expression as shown in Format?

I have expression expr = int[1 - x + x^2 - x^3 + x^4 - x^5, x] and I want to convert it to Latex. But want to replace int by <...
Nasser's user avatar
  • 137k
3 votes
2 answers
188 views

Are there missing symbols in the FrontEnd's TeX input interface?

I am trying to insert an \hbar into the Front End's interface. but the hbar is missing: I've tried to use character codes and pasting the FrontEnd's [HBar] in directly. Neither work. Does anyone ...
Craig Carter's user avatar
  • 3,968
1 vote
2 answers
100 views

TeXForm for bold symbols and cells

I would like to get the following equation in TeXForm Here y(t), G and F are vectors and are in bold. If I do TeXForm[HoldForm[y''[t] + G[y'[t], y[t]] == F[t]]] ...
Hugh's user avatar
  • 16.1k
1 vote
1 answer
74 views

Mathematica for loop data how to export to table form in latex

I have created some data using the below code, want to export it latex in table form ...
Rag's user avatar
  • 13
1 vote
1 answer
91 views

Importing aligned environment in TeX to Mathematica

The ToExpression command works well with scalars \frac{x}{\sqrt{5}} \mu S_1 ...
florin's user avatar
  • 1,632
1 vote
1 answer
85 views

How do I use \mathbf in an inline TeX cell?

I’m pretty new to Mathematica and I’m not sure how to get \mathbf working in inline TeX. I am using a ‘Text’ cell and clicking the ‘Insert TeX’ button (or doing ...
cherryblossom's user avatar
5 votes
4 answers
362 views

How to display Latin Modern Math font correctly in Mathematica?

I just used Latin Modern Math font to display $\LaTeX$-like formulas in Mathematica. My expected effect is shown as follows: Using the following code: ...
lapcal's user avatar
  • 531
1 vote
0 answers
112 views

How to output TeX with FeynArts?

I've recently installed FeynArts since I can use mathematica to generate topologies and it comes with a set of commands to make diagrams in LaTeX. However, nowhere in the manual can I find a command ...
Guy's user avatar
  • 285
2 votes
2 answers
117 views

Problem with LaTeX format

I am trying to write the following function via latex \begin{equation} u(x,t)=\begin{cases} \frac{x^2}{2}+(t-x) ,\quad 0<x<t \\ xt-\frac{t^2}{2}+sin(x-t),\quad x>t>0 \end{cases} \end{...
Athanasios Paraskevopoulos's user avatar
2 votes
1 answer
87 views

Is there a way to make Mathematica support Chemmacros of LaTeX?

On Mathematica 13 or later version, the ChemicalFormula and ChemicalReaction functions helpe a lot to deal with chemical formula ...
Y. zeng's user avatar
  • 465
3 votes
1 answer
243 views

LaTeX typeset for the frame ticks

Following this site, I inserted a LaTeX type set for the frame ticks. Following is the sample code. ...
Rakesh's user avatar
  • 169
6 votes
2 answers
104 views

TeXForm on table, how to make empty cells?

I have the code: l = {{1, 2, 3}, {1, 2, 3}}; l = Append[l, PadLeft[{1}, 3, Null]]; TeXForm[TableForm[l]] Returns ...
atapaka's user avatar
  • 3,733
0 votes
0 answers
98 views

Bold math in Latex within Mathematica

The new Ctrl-$ functionality for entering Latex code in Mathematica does not appear to allow bold math symbols. I have tried various ways of doing it such as \bm or \mathbf, but with no success. Is ...
Asim's user avatar
  • 1,150
0 votes
0 answers
23 views

Set TeXForm for user-defined functions [duplicate]

I defined a function gamma in short for a long function. Now I have an expression (just an example here) ...
Po1ynomial's user avatar
1 vote
1 answer
178 views

Error when trying to do TeX input with ImportString[]

I got this information from here (Last line of the details section): https://reference.wolfram.com/language/ref/menuitem/InlineTeXInput.html My code: ...
vasili111's user avatar
  • 1,163
2 votes
1 answer
69 views

Period to comma TexForm conversion

How can we instead of having a period as a decimal seperator have a comma when using a TeXForm conversion in Mathematica? Example: ...
nate's user avatar
  • 21
3 votes
1 answer
196 views

How to use <* *> in tex to substitute mathematica variables [closed]

I am generating tex files with a "for" loop in Mathematica. In each file I need to have different quantities. So I am defining a variable in Mathematica, which is is evaluated during each ...
Stoyan Apostolov's user avatar
0 votes
0 answers
54 views

Print Grid of Strings and LateX prettyprint?

I want to include a table (or really a Grid) object in my notebook that explains what mathematical expressions some variables in my code correspond to. For example, if I have the variable ...
Johnny's user avatar
  • 33
0 votes
2 answers
146 views

Parentheses control

I have an equation with random integer coefficients. The structure is to demonstrate the distributive property. ...
JEM's user avatar
  • 1,165
3 votes
0 answers
113 views

How to embed an animation in the following into .pdf using latex?

How to embed an animation in the following to .pdf file using latex? Is it possible to add the buttons for j and k such as in ...
RF_1's user avatar
  • 672
4 votes
2 answers
145 views

latex in a label

I am trying to draw an arrow, and put two labels next to it, and the labels, namely e_2, and a(e_2) should be in latex format. ...
district9's user avatar
  • 141
9 votes
2 answers
204 views

Bad Latex generated when using TeXForm with another answer solution

Update Thanks to answer below by Carl Woll, I've put my notebook where it contains all the settings and code needed to use for better Latex formatting if others want to use it. This will save you the ...
Nasser's user avatar
  • 137k
3 votes
3 answers
118 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? ...
Harry's user avatar
  • 2,715
0 votes
0 answers
40 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 ...
Adam's user avatar
  • 3,897
3 votes
1 answer
136 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 ...
AlbertLew's user avatar
  • 473
2 votes
1 answer
141 views

Why does this TeXForm cause many errors?

Bug introduced in 13.0 or earlier. Fixed in 13.2.0 or earlier. 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. ...
hana's user avatar
  • 2,688
2 votes
1 answer
46 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 ...
AlbertLew's user avatar
  • 473
1 vote
1 answer
50 views

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

I typed this on Mathematica. ...
hana's user avatar
  • 2,688
2 votes
1 answer
135 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.
walid fssm's user avatar
3 votes
1 answer
197 views

Using subscripted variables in the LaTeX output [closed]

When I run the following code in Mathematica: ...
Moo's user avatar
  • 3,044
0 votes
1 answer
85 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 ...
Dan's user avatar
  • 85
2 votes
1 answer
79 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 ...
toomey8's user avatar
  • 195
7 votes
4 answers
1k 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 ...
Joff's user avatar
  • 173
3 votes
1 answer
116 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.
Patchouli Nine's user avatar
0 votes
0 answers
18 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$&...
linkhyrule5's user avatar
1 vote
1 answer
54 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 ...
edgardeitor's user avatar
1 vote
2 answers
117 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 ...
AlbertLew's user avatar
  • 473
2 votes
1 answer
108 views

Output function definition as TeXForm with big bracket

I've checked this answer. While it works in Mathematica, the $\LaTeX$ output is weird. ...
Lai Yu-Hsuan's user avatar
7 votes
2 answers
378 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} \...
Moo's user avatar
  • 3,044
10 votes
2 answers
304 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 ...
kienappel's user avatar
  • 411
2 votes
0 answers
74 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 ...
Nasser's user avatar
  • 137k
1 vote
1 answer
242 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 &...
user110391's user avatar
0 votes
0 answers
94 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. ...
Alejandro Barillas's user avatar
3 votes
1 answer
316 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 ...
Sarah's user avatar
  • 31
0 votes
1 answer
364 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.
Jpmg's user avatar
  • 67
3 votes
1 answer
170 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 ...
edgardeitor's user avatar
1 vote
2 answers
70 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 ...
edgardeitor's user avatar
2 votes
1 answer
107 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 ...
edgardeitor's user avatar
2 votes
1 answer
74 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 ...
Nasser's user avatar
  • 137k

1
2 3 4 5
7