Hot answers tagged

2

Have a look at TeXTableForm.m: Converting Mathematica Lists to LaTeX Tables it is working quite well: t = Table[i, {i, 1, 22}] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, \ 20, 21, 22} TeXTableForm[t, 5, "tab1.tab"] "tab1.tab" Import[".../tab1.tab"]


1

Using undocumented FrontEnd`ExportPacket command you can get exactly the same formatting as with Copy As ► Plain Text (i.e. without the line breaks and extra spaces): s = First[FrontEndExecute[FrontEnd`ExportPacket[Cell[BoxData[ToBoxes[a]]], "PlainText"]]] {-11 \[Psi]^2 \[Lambda][1]+6 \[Psi] \[Lambda][2],35 \[Psi]^2 \[Lambda][2],11 \[Psi]^2 \[Lambda][1]...



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