I have the code:
l = {{1, 2, 3}, {1, 2, 3}};
l = Append[l, PadLeft[{1}, 3, Null]];
TeXForm[TableForm[l]]
Returns
\begin{array}{ccc}
1 & 2 & 3 \\
1 & 2 & 3 \\
\text{Null} & \text{Null} & 1 \\
\end{array}
But I am looking to get the last row as
& & 1 \\
What is the way to do that, I was hoping that Null
would be removed. I tried empty string, but it still leads having \text{}
in the output.
ExportString[TexForm[...], "Text"]
and the useStringReplace[%, "\\text{Null} " -> ""]
? $\endgroup$""
as placeholder? (This results in\text{}
, which prints as nothing) $\endgroup$