We have a string that has "tab" symbol between letters "B" and "C" and "newline" symbol between letters "C" and "D":
Input:
"A B\tC\nD"
Output:
The output is formatted accordingly to special symbols used.
But when I export the same string to LaTeX, the special symbols \n
and \t
are interpreted literally like so:
Input:
ExportString["A b\tc\nd", "TeXFragment"]
Output:
\[\text{A b$ \backslash $ tc$ \backslash $ newlined}\]
If you put this Latex code into some TeX file the document will display literally "A B\tC\nD" and without "tab" and "newline" symbols.
How to tell the Mathematica to export the special symbols into LaTeX accordingly?