Mathematica generates an expression sometimes using \[Formal]
symbols. This is causing a problem with the TeXForm
code generated as $\LaTeX$ is not able to process it. To clarify: The generated TeXForm
should not include Unicode. The problem is that these are causing problem. So the solution should be such that, the result of applying TeXForm
to the expression, should not produce Unicode.
Is there a way to make these expressions use normal symbols (normal x
and y
) so that I can generate $\LaTeX$ code from them that will work in my $\LaTeX$ document
f = DifferentialRoot[Function[{y, x}, {y''[x] + y[x] == 0, y[0] == 0, y'[0] == 1}]]
If I do TeXForm[f]
on the above, the $\LaTeX$ code generated is not valid with TeXLive.
I just need the expression f
not to contain those dots above and below the symbols. Just normal symbols. One way is to use
f = DifferentialRoot[Function[{y, x}, {y''[x] + y[x] == 0, y[0] == 0, y'[0] == 1}]]
// OutputForm
which $\LaTeX$ can handle after TeXForm
is applied to the above. But it will be nice to have x
and y
there instead.
MapThread[Set, {Table[System`Convert`TeXFormDump`maketex[FromCharacterCode[63488 + i]], {i, 0, 25 + 26}], Table[FromCharacterCode[97 + i], {i, 0, 25}]~Join~Table[FromCharacterCode[65 + i], {i, 0, 25}]}];
It seems to work from v8.0.4 all the way through 11.0.0. $\endgroup$