Skip to main content
9 votes
Accepted

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

...
Nasser's user avatar
  • 146k
8 votes

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

It is much easier to do this directly in your latex document where you will compile the latex generated by Mathematica TeXForm. Once you copy your Mathematica ...
Nasser's user avatar
  • 146k
8 votes

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

In RGBColor you need to use values in the range $[0,1]$ instead of $[0,255]$. So just divide the numbers you have by 255, that's all. You can get many nice named ...
Szabolcs's user avatar
  • 236k
8 votes
Accepted

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

Code below generates The LaTeX generated by Mathematica is ...
Nasser's user avatar
  • 146k
7 votes

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

TeXForm is hackable, and it might be intentionally so. It's not easily hackable, so maybe it's not so intentional. In any case...one might be able to put things ...
Michael E2's user avatar
  • 238k
7 votes

How to display Latin Modern Math font correctly in Mathematica?

Practical solution Just use MaTeX. Explanation There is in fact—more or less—nothing really wrong with what you see. If you compare the same text to the one written in some other word processor (e.g. ...
Domen's user avatar
  • 27.3k
7 votes
Accepted

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

The $\TeX$-like expression is written as a TemplateBox[..., "TeXAssistantTemplate"], and the front-end interactions with it are given by the ...
Domen's user avatar
  • 27.3k
7 votes
Accepted

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

It looks like some of your solutions are wrong. At least this is what my code shows. For example problem 3 gives different solution that what you have. You might want double checks how to you obtained ...
Nasser's user avatar
  • 146k
6 votes
Accepted

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

If the goal is to generate variation table inside the notebook, then you can do the following. I took an example using tkz-tab from the internet and just used the ...
Nasser's user avatar
  • 146k
6 votes
Accepted

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

This code generates this PDF Code ...
Nasser's user avatar
  • 146k
6 votes
Accepted

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

Specifying CharacterEncoding -> "UTF-8" in OpenWrite[] seems to produce the right output. (I don't know Vietnamese, ...
Michael E2's user avatar
  • 238k
6 votes
Accepted

How can I make a data randomly like form of LaTeX

TeXForm[RandomInteger[10, {3, 10}]]
A. Kato's user avatar
  • 771
5 votes
Accepted

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

(edit: added simplification if needed) This output is generated by this code (note: code is written in CODE cell (not INPUT) cell). To copy please copy to code cell, else it will get mis-formatted). ...
Nasser's user avatar
  • 146k
5 votes

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

It's not as cumbersome as you think. The hex-codes of all popular colours are easily available on the net, for example here. Now, you just need to use HexToColor ...
codebpr's user avatar
  • 2,423
4 votes
Accepted

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

It looks like some of the characters can only be exported to $\TeX$, but not imported. TeXForm[\[HBar]] results correctly in ...
Domen's user avatar
  • 27.3k
4 votes
Accepted

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

One way of many myex = (x + y)^5 e = myex /. {x -> HoldForm[2 a], y -> HoldForm[3 b]} Expand[e] Expand@ReleaseHold[e] For formatting, you could use ...
Nasser's user avatar
  • 146k
4 votes
Accepted

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

The main problem you had is that you used ToString[expr] Where expr was math. This is a no-no. When you have ...
Nasser's user avatar
  • 146k
3 votes
Accepted

Unable to get proper Latex format from Mathematica

TeXForm can be used to convert the lists, or any Mathematica expression, to LaTeX. In this case you may want use TeXForm with <...
LouisB's user avatar
  • 12.6k
3 votes
Accepted

RawBoxes in ClickToCopy adding spaces after escaped characters

There seems to be a problem when trying to paste it outside of Mathematica when there is indeed a space after \r. A workaround using ...
azerbajdzan's user avatar
  • 19.7k
3 votes
Accepted

Problem with LaTeX format

Replying to comment: Believe OP wishes to latex-format the case or array expression in a notebook cell such as a Display Formula cell using for example Insert/Inline Tex input into a cell In this ...
Nasser's user avatar
  • 146k
3 votes

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

Sematics of Latex is fussy. One option I see now is to change you latex and add explicit \times ...
Nasser's user avatar
  • 146k
2 votes

Problem with LaTeX format

u[x_, t_] := Which[0 < x < t, x^2/2 + (t - x), x > t > 0, x t - t^2/2 + Sin[x - t]] Plot3D[u[x, t], {x, 0, 5}, {t, 0, 5}]
David G. Stork's user avatar
2 votes

Converting Mathematica to $\LaTeX$

I represent @cyclochaotic's answer.
Soner from The Ottoman Empire's user avatar
2 votes

How to display Latin Modern Math font correctly in Mathematica?

Domen has already given a nice explanation for the topic in his answer, I just want to add that, the scope of influence of the encoding issue seems to be limited to the 52 English letters, in other ...
xzczd's user avatar
  • 67k
2 votes

How to display Latin Modern Math font correctly in Mathematica?

I have written a Mathematica function (DispLaTeX) that uses ImportString from LaTeX format, ...
robjohn's user avatar
  • 1,071
2 votes
Accepted

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

I would not use For myself. But will leave that for you to change it if you want. I would just use Table. But this is small modification to your code ...
Nasser's user avatar
  • 146k
2 votes

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

Try this alternative ToExpression["\\hslash",TeXForm] Not much difference from $\Huge{\hbar}$ and some seem to prefer the first one.
Nasser's user avatar
  • 146k
2 votes

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

I was asked after my answer to How can I convert the code from Mathematica to text and put it in enumerate like this? to post something similar here. I'll suggest a slightly modified approach, as it ...
Michael E2's user avatar
  • 238k
2 votes

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

Based on @BobHanlon's suggestion(comment), I tried to make a database of colours. Latex RGB colour codes: ...
user444's user avatar
  • 2,550

Only top scored, non community-wiki answers of a minimum length are eligible