Tag Info

New answers tagged


I think it would be better in the long run if you simply replaced TableForm by Grid before converting to TeXForm. Unlike TableForm, Grid dividers are translated correctly into $\LaTeX$: TeXForm[ Grid[ Prepend[Transpose[ Prepend[Transpose[ {{1, 2}, {3, 4}} ], {"a", "b"}]], {"", "c", "d"}], Dividers -> {{None, Automatic, ...


To get syntax highlighting for Mathematica in a latex code listing, try this: \usepackage{listings} \usepackage{color} \definecolor{listinggray}{gray}{0.9} \definecolor{graphgray}{gray}{0.7} \definecolor{blue}{rgb}{0,0,1} \definecolor{mygreen}{rgb}{0,0.6,0} \definecolor{mygray}{rgb}{0.5,0.5,0.5} \definecolor{mymauve}{rgb}{0.58,0,0.82} % define a custom ...

Top 50 recent answers are included