Skip to main content

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
9 votes
1 answer
290 views

What changed in TeXForm in V 14.1?

In Version 14.1 on windows 10 I get this error calling TeXForm on solution obtained from DSolve. No error in V 14. This is known error. see how-to-catch-this-error-...
Nasser's user avatar
  • 149k
1 vote
2 answers
153 views

How can I convert a ListContourPlot plot to a Latex contour plot?

I want my Mathematica contour plot to look as close as possible to a plot generated using LaTeX. I am using a CSV file called unCon01new2.csv that consists of 3 columns (with no header): theta, phi, ...
Quantum Kid's user avatar
2 votes
2 answers
100 views

How can I make a list of exercises from a list of triples to write equation of the plan passing through three points?

I use proflycee to make a tex file like this ...
Thuy Nguyen's user avatar
  • 1,265
0 votes
1 answer
137 views

LaTeX doesn't look like LaTeX [closed]

...
Algebear's user avatar
  • 133
1 vote
1 answer
116 views

How can I make a data randomly like form of LaTeX

This is a data in LaTeX, I input by my hand. ...
Thuy Nguyen's user avatar
  • 1,265
0 votes
1 answer
46 views

How can I input data of list as a number in option declare function of \begin{tikzpicture}?

I have a list list = {{2, 2, 2}, {8/3, 9/2, 7/2}}; I want to input elements of list into ...
Laurenso's user avatar
  • 1,118
3 votes
3 answers
62 views

Mathematica misinterprets $\LaTeX$ equation, mistakes product as function call

I am trying to import a $\LaTeX$ equation into Mathematica. I called ToExpression[expression,TeXForm], which works for the most part, but sometimes it interprets ...
Carlos Santi Toledo's user avatar
6 votes
1 answer
736 views

How can I solve a list of problems and get a LaTeX file?

I have a list of problems ...
John Paul Peter's user avatar
2 votes
0 answers
47 views

LaTeX symbols inside Expectation [duplicate]

I use LaTeX in my Mathematica code (using "^+4"), and was surprised that the first line in the code below evaluates correctly, but the second (essentially identical) line does not: ...
Dejan Evisal's user avatar
4 votes
1 answer
442 views

How can I write the text in another language instead of English?

Based on the answer in tried in Vietnamese ...
John Paul Peter's user avatar
6 votes
1 answer
284 views

How can I make some version of exercises from a list and get the LaTeX file?

I have a list ...
John Paul Peter's user avatar
2 votes
2 answers
92 views

How can I convert `Sin[2 x]` to `\sin 2x` and put result of Mathematica in a list in LaTeX like this?

I tried ReplaceAll[ Table[{Sin[2 x] == Sqrt[i]/2, Expand[Reduce[Sin[2 x] == Sqrt[i]/2, x, Reals]]}, {i, 0, 4}], C[1] -> k] and got I copy the result ...
Laurenso's user avatar
  • 1,118
1 vote
1 answer
76 views

How can I update new keywords of Mathematica to LaTeX?

I have posted this question ...
John Paul Peter's user avatar
8 votes
1 answer
96 views

Is it possible to disable and re-enable LaTeX editing?

Entering text with the "^4" shortcut produces a selectable field which--when selected--allows one to edit the TeX. After I am finished editing TeX, the mouse-over highlighting is annoying ...
Craig Carter's user avatar
  • 4,675
0 votes
0 answers
54 views

How to convert LaTeX to expression without interpreting variables as products?

I need to convert some LaTeX code to mathematica expressions. So far I have used ToExpression["ab", TeXForm] yielding ...
Suppenkasper's user avatar
6 votes
3 answers
212 views

How to get exact $\LaTeX$ colours in Mathematica?

In Latex, using the following code before \begin{document}, one can define different colours as in the shared images. ...
user444's user avatar
  • 2,688
1 vote
1 answer
71 views

Unable to get proper Latex format from Mathematica

Based on this answer, I tried this code ...
minhthien_2016's user avatar
4 votes
2 answers
184 views

Forcing TeXForm to produce fractions using division simbol / instead of \frac

I want to do something converse to this. Namely, I want to force the output of TeXForm[] to be always presented with a division symbol ...
Paweł Korzeb's user avatar
2 votes
1 answer
133 views

How can I keep the form when I use Expand[2a+3b]^5 and apply to all elements of a list?

I want to keep the form of the expression (2a + 3b)^5. I tried ...
John Paul Peter's user avatar
0 votes
0 answers
82 views

How can I convert a text file to mathematica to past to WriteString?

I have a text file like this ...
minhthien_2016's user avatar
2 votes
2 answers
246 views

How can I create some versions of exercises and get the LaTeX file?

Sometimes, I want to create some versions of exercises with the same content. For example, solve the equations: $x^2 - 5x - 6 =0$; $x^2 + 5x - 6 =0$; $2x^2 + 5x - 7 =0$. Then I solve each ...
minhthien_2016's user avatar
3 votes
1 answer
175 views

What is wrong with this code to convert all elements of a list to a LaTeX file?

I have a list that I need to convert to LaTeX: ...
minhthien_2016's user avatar
4 votes
3 answers
248 views

How can I convert a list containing three points and its equation passing three points to text file?

I have a lis ...
John Paul Peter's user avatar
7 votes
4 answers
334 views

How can I convert the code from Mathematica to text and put it in enumerate like this?

I have a list ...
John Paul Peter's user avatar
1 vote
0 answers
76 views

Importing equations with subscripts from LaTeX and solving them [closed]

Here is a simple system of equations, copied from LaTeX: ...
florin's user avatar
  • 1,982
1 vote
1 answer
56 views

How to display a formula written in proper LaTeX (e.g. no double backslashes) in Mathematica? [duplicate]

I would like to display some formulae in a Mathematica notebook. For this I would like to have a function like ...
jbroedel's user avatar
  • 111
2 votes
1 answer
68 views

RawBoxes in ClickToCopy adding spaces after escaped characters

I'd like to use ClickToCopy to display a matrix equation, and have its TeX form be copyable. I started with something like ...
srossd's user avatar
  • 260
3 votes
1 answer
210 views

How can I make table of variation by Mathematica like tkz-tab in LaTeX?

I use tkz-tab to make this table of table of variation of the function $y = x^3 + 3 x^2 - 9 x$. With Mathematica I tried ...
minhthien_2016's user avatar
0 votes
1 answer
135 views

TexForm for powers of PolyLog gives unexpected form [closed]

Although the current TeXForm in Mathematica is far from ideal, I wonder if there is any reason for writing power of PolyLog as ...
BabaYaga's user avatar
  • 1,897
1 vote
1 answer
88 views

Nicer display of output with TeXForm

I am summing some terms by first transforming it to TeXForm. Example: Sum[TeXForm[x^i],{i,1,50}] I want to break the line in ...
BabaYaga's user avatar
  • 1,897
0 votes
1 answer
59 views

Converting Messy Wolfram Code to Readable LaTeX: TemplateBox Troubles

I had a simple LaTeX expression written in the Wolfram Cloud, namely $a_0 = $. I used ctrl+4 to display a box where I could write LaTeX. However, after some issue, ...
Kώστας Κούδας's user avatar
0 votes
0 answers
83 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
  • 233
0 votes
0 answers
58 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
  • 149k
3 votes
2 answers
236 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
  • 4,675
1 vote
2 answers
129 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.6k
1 vote
1 answer
85 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
  • 45
1 vote
1 answer
97 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,982
4 votes
1 answer
228 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
503 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
  • 571
1 vote
0 answers
184 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
136 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
89 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
  • 567
3 votes
1 answer
446 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
  • 179
6 votes
2 answers
115 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
  • 4,006
0 votes
0 answers
121 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
1 vote
1 answer
276 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,235
2 votes
1 answer
94 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
216 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
55 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
215 views

Parentheses control

I have an equation with random integer coefficients. The structure is to demonstrate the distributive property. ...
JEM's user avatar
  • 1,185

1
2 3 4 5
8