As far as I can see
TeXForm of a matrix produces LaTeX arrays, which assume LaTeX is in math mode. However, Mathematica can be used to produce whole tables programmatically. Therefore I was wondering if there is a way to tell
TeXForm to spit out
LaTeX in a tabular environment, including the annoying dollar-signs needed for each cell that is in math mode.
I cannot see any option for
TeXForm to do this.
Of course one could program this, but that would be tedious, because one has to figure out what is math and what is not. And one also has to do the necessary substitutions. So I was wondering if this wheel has already been invented, or do I have to be the inventor? In any case, I invite suggestions.