I’d like to write a ExportString for `Grid`

and/or `TextGrid`

with basic style elements into Latex tables.

I would it at least support three things: *styled text, styled dividers, and background colors.*

Here is a basic example of what I want to be able to generate. Given this TextGrid in Mathematica:

```
TextGrid({{"","x","y","w","z"},{Style("variable 1",Italic),"a","b","c","d"},{Style("variable 2",Bold),"a","b","c","d"},
{Style("variable 3",Blue),"a","b","c","d"},{"variable 4","a","b","c","d"},{"variable 5","a","b","c","d"}},
Background->{{White,{LightGray,White}},{1->LightCyan}},Dividers->{{False,{True},False},
{True,True,{False},True},{{{1,2},{2,-2}}->False,{{1,1},{2,-2}}->True,
{{2,2},{2,-2}}->True}},Alignment->{Center,Center},Spacings->{{1,{3}},1})
```

A good solution would export something like the `begin{tablular}...end{tabular}`

block below:

```
documentclass{article} (* assume these structure for the document *)
usepackage{xcolor,colortbl}
newcommand{mc}(2){multicolumn{#1}{c}{#2}}
definecolor{Gray}{gray}{0.85}
definecolor{LightCyan}{rgb}{0.88,1,1}
definecolor{LightBlue}{rgb}{0,0,1}
newcolumntype{a}{>{columncolor{Gray}}c}
newcolumntype{b}{>{columncolor{white}}c}
begin{document}
begin{table} (* the generated table code *)
begin{tabular}{l | a | b | a | b}
hline
rowcolor{LightCyan}
mc{1}{} & mc{1}{x} & mc{1}{y} & mc{1}{w} & mc{1}{z} \
hline
variable 1 & a & b & c & d \
variable 2 & a & b & c & d \
variable 3 & a & b & c & d \
variable 4 & a & b & c & d \
variable 5 & a & b & c & d \ hline
end{tabular}
end{table}
end{document}
```