I have the following grid (from documentation):
data = Import["ExampleData/classification.tsv"]
g = Grid[data, Alignment -> Left, Spacings -> {2, 1}, Frame -> All,
ItemStyle -> "Text",
Background -> {{Gray, None}, {LightGray, None}}]
I would like to use such a grid in a LaTex Document.
So I extract the LaTex code using TeXForm:
TeXForm[g]
It almost works, but the seperation lines and the color is missing:
$\begin{array}{lllll} \text{Rank} & \text{Fruit Fly} & \text{Human} & \text{Pea} & \text{E.coli} \\ \text{Domain} & \text{Eukaryota} & \text{Eukaryota} & \text{Eukaryota} & \text{Bacteria} \\ \text{Kingdom} & \text{Animalia} & \text{Animalia} & \text{Plantae} & \text{Monera} \\ \text{Phylum} & \text{Arthropoda} & \text{Chordata} & \text{Magnoliophyta} & \text{Proteobacteria} \\ \text{Class} & \text{Insecta} & \text{Mammalia} & \text{Magnoliopsida} & \text{Proteobacteria} \\ \text{Order} & \text{Diptera} & \text{Primates} & \text{Fabales} & \text{Enterobacteriales} \\ \text{Family} & \text{Drosophilidae} & \text{Hominidae} & \text{Fabaceae} & \text{Enterobacteriaceae} \\ \text{Genus} & \text{Drosophila} & \text{Homo} & \text{Pisum} & \text{Escherichia} \\ \text{Species} & \text{D.melanogaster} & \text{H.sapiens} & \text{P.sativum} & \text{E.coli} \\ \end{array}$
I was wondering how it would be possible to add the speration lines and color ?



{|c|c|c|c|c|}with{|l|l|l|l|l|}.cmeanscenterandlmeansleftandrmeansrightalignment in latex – OkkesDulgerci Apr 03 '18 at 13:17