From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] customize latex table export Date: Tue, 24 May 2011 13:02:57 +0200 Message-ID: <093BD03D-0067-44CD-BBCE-81A5D7B9FACC@gmail.com> References: <87r57uyim9.fsf@cantab.net> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOpOF-0000Zv-40 for emacs-orgmode@gnu.org; Tue, 24 May 2011 07:03:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOpO9-0005uk-Im for emacs-orgmode@gnu.org; Tue, 24 May 2011 07:03:07 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:63766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOpO9-0005uc-Cs for emacs-orgmode@gnu.org; Tue, 24 May 2011 07:03:01 -0400 Received: by eyd9 with SMTP id 9so2446236eyd.0 for ; Tue, 24 May 2011 04:03:00 -0700 (PDT) In-Reply-To: <87r57uyim9.fsf@cantab.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Christophe Rhodes Cc: emacs-orgmode@gnu.org Hi Christophe, On May 19, 2011, at 2:34 PM, Christophe Rhodes wrote: > Hi, >=20 > To produce documents in something approaching my organization's house > style, I need to be able to style the headers of tables. It's nice = that > orgtbl has the functionality for this, but the call to orgtbl-to-latex > has a hard-coded list of parameters with no possibility for extension. > With the attached patch, I am able to put e.g. >=20 > #+BIND: org-export-latex-tables-orgtbl-extra-parameters (:hfmt = "\\multicolumn{1}{c}{\\bf\\color{white}\\cellcolor{blue}%s}") >=20 > in the header of my document, and tables throughout the document all > pick up this style. >=20 > I daresay that this is not the optimal way of doing things; while this > solves my immediate problem there is likely to be a more general way = of > doing things. would it be better to be able to set these parameters on a per-table = basis with ATTR_LaTeX ? Would you like to try to prepare a patch to this effect? - Carsten