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
3 votes
1 answer
23 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
83 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,054
1 vote
1 answer
66 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
76 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,510
0 votes
0 answers
44 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
5 votes
3 answers
166 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,446
1 vote
1 answer
67 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
172 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
132 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
81 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
232 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
171 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
1 answer
163 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
5 votes
1 answer
184 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,798
1 vote
1 answer
54 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
67 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
182 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
124 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,888
1 vote
1 answer
83 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,888
0 votes
1 answer
56 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
78 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
56 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
  • 145k
3 votes
2 answers
212 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,510
1 vote
2 answers
117 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.5k
1 vote
1 answer
83 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
96 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,798
3 votes
1 answer
138 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
434 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
159 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
128 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
88 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
376 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
107 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,954
0 votes
0 answers
105 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
229 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,215
2 votes
1 answer
78 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
212 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
188 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
123 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
168 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
218 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
  • 145k
3 votes
3 answers
143 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,745
0 votes
0 answers
46 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,956
3 votes
1 answer
155 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
  • 483
2 votes
1 answer
150 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,390
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
  • 483
1 vote
1 answer
56 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,390
3 votes
1 answer
184 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

1
2 3 4 5
7