TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use pandoc to generate LaTeX beamer presentations. To get the look I want I have created a theme myself. I have managed to get the look and feel I want in my presentations but I cant figure out how to style tables.

Here is an example of a table generated by pandoc:

  split & count & share
  1 & 968157 & 0.6508837
  2 & 519293 & 0.3491163

This is what it looks like in the presentation (I have a special font specified):

enter image description here

If you ask me this is very bleak. The table look might fit very well in a report or larger document but it looks very boring in a presentation. I would like to colorize the table and make it more fitting for a presentation.

Question: How can I style this table in a LaTeX .sty theme file or, if not possible, in the pandoc template file?


migration rejected from stackoverflow.com Jan 2 at 16:36

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as too broad by samcarter, Joseph Wright Jan 2 at 16:36

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

It's possible to stylize this table in LaTeX using colortbl. – Werner Jan 15 '14 at 19:44
The way the table is set up makes me wonder: Do you know the booktabs package? – Johannes_B Jan 16 '14 at 9:03
No, pandoc seems to be using a package called longtable. colortbl seems nice but it would be great if it was possible to style this table in the latex headers without having to interfere with the way the table is written. Not sure if it is possible tough. – while Jan 16 '14 at 9:29
On the contrary I find the table very clean and appropriate for a presentation. But longtable is not the best choice for beamer since it is mostly used for tables that exceeds the page length. – percusse Jan 16 '14 at 10:26
Haha ok. Maybe I should reconsider the look then. Just wanted to make it more similar to our company powerpoint template slides (which I don't like that much anyway). Even so, in my opinion it is hard to separate it visually from other text as well. I thought some colors could fix that... – while Jan 17 '14 at 9:18

Browse other questions tagged or ask your own question.