all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: export latex in a table
Date: Sat, 21 Sep 2013 12:39:39 +0200	[thread overview]
Message-ID: <877geav4pg.fsf@gmx.us> (raw)
In-Reply-To: loom.20130921T105403-880@post.gmane.org

zwz <zhangweize@gmail.com> 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	other threads:[~2013-09-21 10:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-21  9:01 export latex in a table zwz
2013-09-21 10:39 ` Rasmus [this message]
2013-09-21 11:25   ` zwz
2013-09-21 11:49     ` Nicolas Goaziou
2013-09-21 12:30       ` zwz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877geav4pg.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.