emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* font colour in a table row
@ 2014-11-06  0:36 kevin.lemorzadec
  2014-11-06  9:32 ` Eric S Fraga
  0 siblings, 1 reply; 4+ messages in thread
From: kevin.lemorzadec @ 2014-11-06  0:36 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1072 bytes --]

Hi,
I am trying to colour the font over the hole row of a table.
I am able to highlight the row following this thread :
http://thread.gmane.org/gmane.emacs.orgmode/76711/focus=76713
but can't change the font colour. It seems that I should use  \rowfont in
the tabu package may be the way to go but I can't figure out how to use it
in org mode. I don't see how to include replace the \begin{tabular}
generated automaticly by the following code by \begin{tabu}

#+DRAWERS: LATEX
:LATEX:
#+LATEX_HEADER: \usepackage[table]{xcolor}
#+LATEX_HEADER: \usepackage{tabu}
:END:

 |                     |                 |                 |
 |                 min | 10th percentile | 25th percentile |
 |---------------------+-----------------+-----------------|
 | \textcolor{Red}   1 |             1.2 |             1.7 |
 |                   1 |             1.5 |             1.9 |
 |                 1.1 |             1.5 |             1.9 |
 |                   1 |             1.9 |             2.3 |
 |                   1 |               2 |             2.3 |

Thanks,
Kevin

[-- Attachment #2: Type: text/html, Size: 1330 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: font colour in a table row
  2014-11-06  0:36 font colour in a table row kevin.lemorzadec
@ 2014-11-06  9:32 ` Eric S Fraga
  2014-11-07 16:33   ` kevin.lemorzadec
  0 siblings, 1 reply; 4+ messages in thread
From: Eric S Fraga @ 2014-11-06  9:32 UTC (permalink / raw)
  To: kevin.lemorzadec; +Cc: emacs-orgmode

On Wednesday,  5 Nov 2014 at 21:06, kevin.lemorzadec wrote:

[...]

> in org mode. I don't see how to include replace the \begin{tabular}
> generated automaticly by the following code by \begin{tabu}

Try

#+attr_latex: :environment tabu

just before the table, assuming you are using a relatively recent
version of org.  This is described in the org manual in the exporting ->
LaTeX and PDF export section.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.3beta-372-gdd70cf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: font colour in a table row
  2014-11-06  9:32 ` Eric S Fraga
@ 2014-11-07 16:33   ` kevin.lemorzadec
  2014-11-07 18:42     ` Eric S Fraga
  0 siblings, 1 reply; 4+ messages in thread
From: kevin.lemorzadec @ 2014-11-07 16:33 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1800 bytes --]

Thanks for your answer,

Unfortunatly the #+attr_latex: :environment tabu seem to not be taken into
account

I have org 6.33x, could that be the problem?

Code used:
#+DRAWERS: LATEX
:LATEX:
#+LATEX_HEADER: \usepackage[table]{xcolor}
#+LATEX_HEADER: \usepackage{tabu}

#+TITLE: Some statistics about the oceanographic data
#+AUTHOR: Kevin Le Morzadec
#+OPTIONS: toc:nil todo:nil

:END:

 #+attr_latex: :environment tabu
 |                           |                 |                 |
 |                       min | 10th percentile | 25th percentile |
 |---------------------------+-----------------+-----------------|
 | \rowfont{\color{red}}   1 |             1.2 |             1.7 |
 |                         1 |             1.5 |             1.9 |
 |                       1.1 |             1.5 |             1.9 |
 |                         1 |             1.9 |             2.3 |
 |                         1 |               2 |             2.3 |

Thanks,
Kevin

On Thu, Nov 6, 2014 at 6:02 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:

> On Wednesday,  5 Nov 2014 at 21:06, kevin.lemorzadec wrote:
>
> [...]
>
> > in org mode. I don't see how to include replace the \begin{tabular}
> > generated automaticly by the following code by \begin{tabu}
>
> Try
>
> #+attr_latex: :environment tabu
>
> just before the table, assuming you are using a relatively recent
> version of org.  This is described in the org manual in the exporting ->
> LaTeX and PDF export section.
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.3beta-372-gdd70cf
>



-- 
Kevin Le Morzadec - Ph.D. candidate
                               Dept of Physics and Physical Oceanography,
                               Memorial University of Newfoundland, Canada
                               Tel 709-864-8654

[-- Attachment #2: Type: text/html, Size: 2823 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: font colour in a table row
  2014-11-07 16:33   ` kevin.lemorzadec
@ 2014-11-07 18:42     ` Eric S Fraga
  0 siblings, 0 replies; 4+ messages in thread
From: Eric S Fraga @ 2014-11-07 18:42 UTC (permalink / raw)
  To: kevin.lemorzadec; +Cc: emacs-orgmode

On Friday,  7 Nov 2014 at 13:03, kevin.lemorzadec wrote:
> Thanks for your answer,
>
> Unfortunatly the #+attr_latex: :environment tabu seem to not be taken into
> account
>
> I have org 6.33x, could that be the problem?

Yes, most definitely.  org 6.33 is ancient!  there have been two major
releases since then.  I am not sure what the current stable version is
but it's at least 8.x...  You really should upgrade.

I am using 8.3.

There probably is no way of accomplishing what you want in 6.33 without
resorting to LaTeX.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.3beta-372-gdd70cf

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-07 20:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-06  0:36 font colour in a table row kevin.lemorzadec
2014-11-06  9:32 ` Eric S Fraga
2014-11-07 16:33   ` kevin.lemorzadec
2014-11-07 18:42     ` Eric S Fraga

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).