From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christophe Rhodes Subject: Re: [PATCH] customize latex table export Date: Fri, 02 Dec 2011 10:21:13 +0000 Message-ID: <87vcpzb7fq.fsf@cantab.net> References: <87r57uyim9.fsf@cantab.net> <093BD03D-0067-44CD-BBCE-81A5D7B9FACC@gmail.com> <87fwh6escl.fsf@cantab.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55224) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWQFL-0006K3-G6 for emacs-orgmode@gnu.org; Fri, 02 Dec 2011 05:21:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWQFG-0005Jx-VT for emacs-orgmode@gnu.org; Fri, 02 Dec 2011 05:21:35 -0500 Received: from lo.gmane.org ([80.91.229.12]:36707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWQFG-0005Jk-DD for emacs-orgmode@gnu.org; Fri, 02 Dec 2011 05:21:30 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RWQFF-00029G-GO for emacs-orgmode@gnu.org; Fri, 02 Dec 2011 11:21:29 +0100 Received: from 81.174.155.115 ([81.174.155.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Dec 2011 11:21:29 +0100 Received: from csr21 by 81.174.155.115 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Dec 2011 11:21:29 +0100 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: emacs-orgmode@gnu.org Niels Giesen writes: > Could you provide us with a minimal example of how this new functionality > can be used? Sure, sorry. Here we go: --- start here --- #+TITLE: Example of using hfmt #+AUTHOR: Christophe Rhodes * Introduction This document shows the use of the =hfmt= tag in =#+LaTeX_ATTR= lines to customize table headings. Analgous functionality is available in HTML export by customizing the style of =th= tags. * Example table #+ATTR_LaTeX: hfmt=\multicolumn{1}{c}{\textbf{%s}} | table | headings | |-------------+-----------| | body | cells | | have | unchanged | | formatting. | | --- end here --- > I am trying to test it and see if there are any conflicts with my patch of > late to supports the booktabs package @ > http://patchwork.newartisans.com/patch/1016/ (aside from one of the two > patches not applying without some minor human intervention around line > 1998). Apart from the code conflict itself, I don't see why it shouldn't work: this patch only changes the export of individual cells, while the booktabs one alters the export of lines :-). Your patch took the approach I originally took too, with a customization variable; Carsten (in May, aeons ago) suggested that an attribute might be preferable, which is why I've reworked it in this way. (It might be sensible for my patch to have a configuration variable so that there could be a document-wide default, too; I don't know whether it would be sensible for yours to be customizeable using ATTR_LaTeX... > Besides that, it would in general be good to have an example for > documentation purposes. I hope this helps, Christophe