emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] export latex in a table


From: Rasmus
Subject: Re: [O] export latex in a table
Date: Sat, 21 Sep 2013 12:39:39 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

zwz <address@hidden> writes:

I'm assuming you're only interested in LaTeX output here.

> Hi, I want to export a table to pdf as follows:
>
> * test
> | \textcolor{red}{range} | \textcolor{blue}{0\sim2^{8}-1} |

How about this? 

#+MACRO: color  \textcolor{$1}{$2}
| {{{color(red, range)}}} | {{{color(blue, 0\sim2^8-1)}}} |

Unless you're doing something that's not systematic, or which has a
very particular logic it's probably not the right way.

If all entries in a column/row need to be colored you should specify
that rather than doing it manually.  You could use tabu, but be warned
that the interface will change at some point, or you could use
colortbl.  See here:

    http://texblog.org/2011/04/19/highlight-table-rowscolumns-with-color/

–Rasmus

-- 
This space is left intentionally blank





reply via email to

[Prev in Thread] Current Thread [Next in Thread]