emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo)
To: emacs-orgmode@gnu.org
Subject: Re: Orgtbl, Radiotables: ":booktabs t"
Date: Tue, 19 Aug 2014 12:28:18 -0400	[thread overview]
Message-ID: <874mx81m1p.fsf@yale.edu> (raw)
In-Reply-To: 878umk1n7e.fsf@yale.edu

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" 
                                 org-table-last-alignment "")) 
             :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 
  (setq orgtbl-radio-table-templates 
        (delete-if (lambda (x) (equal (car x) 'latex-mode))  
  (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")) 


  reply	other threads:[~2014-08-19 16:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-26 10:15 Orgtbl, Radiotables: ":booktabs t" AW
2013-12-01  9:54 ` AW
2013-12-01 10:18   ` Nicolas Goaziou
2013-12-01 10:30     ` Handshake: Org-mode + Emacs releases Jambunathan K
2013-12-01 11:13       ` Nicolas Goaziou
2013-12-01 12:03         ` Jambunathan K
2013-12-06 14:27         ` Bastien
2014-08-19 16:03     ` Orgtbl, Radiotables: ":booktabs t" Jorge A. Alfaro-Murillo
2014-08-19 16:28       ` Jorge A. Alfaro-Murillo [this message]
2014-08-19 17:37         ` Jorge A. Alfaro-Murillo
2014-08-19 22:16       ` Nicolas Goaziou

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:

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=874mx81m1p.fsf@yale.edu \
    --to=jorge.alfaro-murillo@yale.edu \
    --cc=emacs-orgmode@gnu.org \


* 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 public inbox


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).