Skip to main content
1 of 2
Rho Phi
  • 1.4k
  • 11
  • 21

TeXForm for a tabular

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 $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 is going to be tedious, I guess, because one has to figure out what is math and what is not, plus do the necessary substitutions. So I was wondering if this wheel has been already invented, or I have to make it, in case I accept suggestions ...

Thanks, Roberto

Rho Phi
  • 1.4k
  • 11
  • 21