From mboxrd@z Thu Jan 1 00:00:00 1970 From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) Subject: Re: Orgtbl, Radiotables: ":booktabs t" Date: Tue, 19 Aug 2014 12:28:18 -0400 Message-ID: <874mx81m1p.fsf@yale.edu> References: <1763930.BASVGl8U4n@linux-j9m3.site> <5309190.T1LboKNIW4@linux-j9m3.site> <87txesri12.fsf@gmail.com> <878umk1n7e.fsf@yale.edu> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJmGu-0006Fq-QD for emacs-orgmode@gnu.org; Tue, 19 Aug 2014 12:28:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJmGk-0001vd-Se for emacs-orgmode@gnu.org; Tue, 19 Aug 2014 12:28:32 -0400 Received: from plane.gmane.org ([80.91.229.3]:48155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJmGk-0001vN-MR for emacs-orgmode@gnu.org; Tue, 19 Aug 2014 12:28:22 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XJmGj-0000nY-2r for emacs-orgmode@gnu.org; Tue, 19 Aug 2014 18:28:21 +0200 Received: from nat-130-132-173-153.central.yale.edu ([130.132.173.153]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Aug 2014 18:28:21 +0200 Received: from jorge.alfaro-murillo by nat-130-132-173-153.central.yale.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Aug 2014 18:28:21 +0200 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 Well for now and until :booktabs t is incorporated this is what I am using: #+BEGIN_SRC emacs-lisp (defun orgtbl-to-latex-booktabs (table params) "Convert the Orgtbl mode TABLE to LaTeX using booktabs package." (let* ((alignment (mapconcat (lambda (x) (if x "r" "l")) org-table-last-alignment "")) (params2 (list :tstart (concat "\\begin{tabular}{" alignment "}\n\\toprule") :tend "\\bottomrule\n\\end{tabular}" :lstart "" :lend " \\\\" :sep " & " :efmt "%s\\,(%s)" :hline "\\midline"))) (orgtbl-to-generic table (org-combine-plists params2 params)))) (setq orgtbl-radio-table-templates (delete-if (lambda (x) (equal (car x) 'latex-mode)) orgtbl-radio-table-templates)) (add-to-list 'orgtbl-radio-table-templates '(latex-mode "% BEGIN RECEIVE ORGTBL %n\n% END RECEIVE ORGTBL %n\n\\begin{comment}\n#+ORGTBL: SEND %n orgtbl-to-latex-booktabs :splice nil :skip 0\n| | |\n\\end{comment}\n")) #+END_SRC -- Jorge.