怎样避免Latex格式的顺序发生变化
mathematica吧
全部回复
仅看楼主
level 6
冉qx 楼主
将Mathematica中输入的公式转换为Latex格式粘贴到mathtype上顺序发生了变化。
Subscript[m, c] = H/(3 + D Sin[\[Pi]/n])
将上市插入到math type中变成了
2020年06月20日 10点06分 1
level 9
这个是LaTeX的问题,这货会自己把结束更高/函数置前
2020年06月21日 00点06分 2
的确不是LaTeX的问题,复制出来的结果就已经换掉了顺序,之前我只注意到了这个现象我没有深究 (又多了个黑历史还是在这么前排的楼[狂汗]
2020年06月22日 05点06分
level 1
我也一直很疑惑。不过肯定不是latex的问题,复制为latex文本就已经决定顺序了
2020年06月22日 03点06分 3
level 1
stackexchange上查到一些解决方案,都不完美:
一、这个可以,但是已经不是右键复制了,很繁琐
网址:questions/16545/changing-order-of-texform-output
Use HoldForm:
In[]:= TeXForm[HoldForm[1 + x + x^2 + x^3]]
Out[]//TeXForm= 1+x+x^2+x^3
二、不知道应该在哪里执行,没成功,谁成功了回复指教一下,谢谢
网址:questions/76860/how-do-i-prevent-mathematica-from-reformatting-the-expressions-that-i-copy-as-la
Unfortunately, the Mathematica's Copy As > LaTeX command is not (as you'd expect) a command that copies the selected expressions as LaTeX. Instead, it performs additional reformatting that can only be avoided by changing behavior of the relevant built-in function with:
System`FEDump`CopyAsTeXMakeBoxes = #&
2020年06月22日 03点06分 4
1