emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Niels Giesen <niels.giesen@gmail.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Way to replace normal tabular env with booktabs?
Date: Fri, 13 Jan 2012 15:52:22 +0100	[thread overview]
Message-ID: <CACDo9LfNEgakvoaqGKr+9pyEygpeKkiT=oF7WjzFYaNJbn_W7w@mail.gmail.com> (raw)
In-Reply-To: <CA+M2ft_U93uZaqNpkp+frDaQFXieEJjRZ+-_qra1yrdLjofcmA@mail.gmail.com>

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

There is a patch from me waiting to be incorporated into org mode that lets
one use booktabs as export for normal org tables.

You can find it @ http://patchwork.newartisans.com/patch/1016/



On Fri, Jan 13, 2012 at 2:21 PM, John Hendy <jw.hendy@gmail.com> wrote:

> On Thu, Jan 12, 2012 at 6:01 PM, Thomas S. Dye <tsd@tsdye.com> wrote:
>
>> Hi John,
>>
>> The Library of Babel comes with your Org-mode distribution.
>>
>> You'll find it at /contrib/babel/library-of-babel.org
>>
>>
> I guess you learn something new every day!
>
>
>> In the org file, look for
>> * Tables
>> ** LaTeX Table Export
>>
>> There should be functions booktabs and booktabs-notes.
>>
>> One way to use booktabs is described here:
>>
>> http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-13-2
>>
>>
> I'll check these out. Looked at the worg howto. Not a huge fan of the
> method, especially with hiding my tables, but I'll give it a shot. I figure
> there's got to be a simpler way; just change the first \hline -> \toprule
> and the bottom one to \bottomrule; \midrules in between.
>
> Thanks again,
> John
>
>
>> hth,
>> Tom
>>
>> John Hendy <jw.hendy@gmail.com> writes:
>>
>> > On Thu, Jan 12, 2012 at 2:12 PM, Thomas S. Dye <tsd@tsdye.com> wrote:
>> >
>> >> Hi John,
>> >>
>> >> Agreed, booktabs makes good looking tables.
>> >>
>> >> Check out your Library of Babel.  There should  be a couple of
>> functions
>> >> there that will help you go from Org mode to booktabs.
>> >>
>> >>
>> > Haven't done much with babel other than writing code blocks. Do you mean
>> > this page?
>> > --- http://orgmode.org/worg/org-contrib/babel/library-of-babel.html
>> >
>> > Thanks for the suggestion. Feeling a bit lost, but am happy to look
>> around
>> > for something that seems similar. I have no elisp-fu, so it'll need to
>> be
>> > pretty darn similar :)
>> >
>> >
>> > John
>> >
>> >
>> >> hth,
>> >> Tom
>> >>
>> >> John Hendy <jw.hendy@gmail.com> writes:
>> >>
>> >> > Greetings,
>> >> >
>> >> >
>> >> > I was using wikibooks for some formatting assistance on tables the
>> other
>> >> > day and ran into mention of the booktabs package in the "Professional
>> >> > tables" section. [1] [2]
>> >> >
>> >> > I really, really liked it's formatting, especially since one of my
>> column
>> >> > headers was a fraction. The standard tabular package places the
>> \hlines
>> >> > extremely close to the top and bottom of my header row vs., as the
>> >> booktabs
>> >> > package says, having extremely nice looking spacing for the table. I
>> >> ended
>> >> > up doing the table manually inside #+begin_latex block.
>> >> >
>> >> > Would there be any way to specify that booktabs should be used? The
>> >> > formatting is literally identical except for 1) including the
>> booktabs
>> >> > package and 2) using \toprule, \midrule and \bottomrule instead of
>> >> \hlines.
>> >> > In fact, even with booktabs included, if you use \hlines instead of
>> the
>> >> > booktab specific lines, you'll get a "regular" tabular table.
>> >> >
>> >> > Any thoughts on this?
>> >> >
>> >> >
>> >> > Best regards,
>> >> > John
>> >> >
>> >> > -----
>> >> > [1] http://en.wikibooks.org/wiki/LaTeX/Tables#Professional_tables
>> >> > [2] http://www.ctan.org/tex-archive/macros/latex/contrib/booktabs/
>> >> > Greetings,I was using wikibooks for some formatting assistance on
>> tables
>> >> the other day and ran into mention of the booktabs package in the
>> >> "Professional tables" section. [1] [2]
>> >> > I really, really liked it&#39;s formatting, especially since one of
>> my
>> >> column headers was a fraction. The standard tabular package places the
>> >> \hlines extremely close to the top and bottom of my header row vs., as
>> the
>> >> booktabs package says, having extremely nice looking spacing for the
>> table.
>> >> I ended up doing the table manually inside #+begin_latex block.
>> >> > Would there be any way to specify that booktabs should be used? The
>> >> formatting is literally identical except for 1) including the booktabs
>> >> package and 2) using \toprule, \midrule and \bottomrule instead of
>> \hlines.
>> >> In fact, even with booktabs included, if you use \hlines instead of the
>> >> booktab specific lines, you&#39;ll get a "regular" tabular table.
>> >> > Any thoughts on this?Best regards,John-----[1]
>> >> http://en.wikibooks.org/wiki/LaTeX/Tables#Professional_tables
>> >> > [2] http://www.ctan.org/tex-archive/macros/latex/contrib/booktabs/
>> >>
>> >> --
>> >> Thomas S. Dye
>> >> http://www.tsdye.com
>> >>
>> > On Thu, Jan 12, 2012 at 2:12 PM, Thomas S. Dye <span dir="ltr"><mailto:
>> tsd@tsdye.com></span> wrote:
>> > Hi John,
>> >
>> > Agreed, booktabs makes good looking tables.
>> >
>> > Check out your Library of Babel.  There should  be a couple of functions
>> > there that will help you go from Org mode to booktabs.
>> > Haven&#39;t done much with babel other than writing code blocks. Do you
>> mean this page?---
>> http://orgmode.org/worg/org-contrib/babel/library-of-babel.html
>> > Thanks for the suggestion. Feeling a bit lost, but am happy to look
>> around for something that seems similar. I have no elisp-fu, so it&#39;ll
>> need to be pretty darn similar :)
>> > John
>> > hth,
>> > Tom
>> >
>> > John Hendy <mailto:jw.hendy@gmail.com> writes:
>> >
>> >> Greetings,
>> >>
>> >>
>> >> I was using wikibooks for some formatting assistance on tables the
>> other
>> >> day and ran into mention of the booktabs package in the "Professional
>> >> tables" section. [1] [2]
>> >>
>> >> I really, really liked it&#39;s formatting, especially since one of my
>> column
>> >> headers was a fraction. The standard tabular package places the \hlines
>> >> extremely close to the top and bottom of my header row vs., as the
>> booktabs
>> >> package says, having extremely nice looking spacing for the table. I
>> ended
>> >> up doing the table manually inside #+begin_latex block.
>> >>
>> >> Would there be any way to specify that booktabs should be used? The
>> >> formatting is literally identical except for 1) including the booktabs
>> >> package and 2) using \toprule, \midrule and \bottomrule instead of
>> \hlines.
>> >> In fact, even with booktabs included, if you use \hlines instead of the
>> >> booktab specific lines, you&#39;ll get a "regular" tabular table.
>> >>
>> >> Any thoughts on this?
>> >>
>> >>
>> >> Best regards,
>> >> John
>> >>
>> >> -----
>> >> [1] http://en.wikibooks.org/wiki/LaTeX/Tables#Professional_tables
>> >> [2] http://www.ctan.org/tex-archive/macros/latex/contrib/booktabs/
>> >> Greetings,I was using wikibooks for some formatting assistance on
>> tables the other day and ran into mention of the booktabs package in the
>> "Professional tables" section. [1] [2]
>> >> I really, really liked it&#39;s formatting, especially since one of my
>> column headers was a fraction. The standard tabular package places the
>> \hlines extremely close to the top and bottom of my header row vs., as the
>> booktabs package says, having extremely nice looking spacing for the table.
>> I ended up doing the table manually inside #+begin_latex block.
>> >
>> >> Would there be any way to specify that booktabs should be used? The
>> formatting is literally identical except for 1) including the booktabs
>> package and 2) using \toprule, \midrule and \bottomrule instead of \hlines.
>> In fact, even with booktabs included, if you use \hlines instead of the
>> booktab specific lines, you&#39;ll get a "regular" tabular table.
>> >
>> >> Any thoughts on this?Best regards,John-----[1]
>> http://en.wikibooks.org/wiki/LaTeX/Tables#Professional_tables
>> >> [2] http://www.ctan.org/tex-archive/macros/latex/contrib/booktabs/
>> > <span class="HOEnZb">
>> > --
>> > Thomas S. Dye
>> > http://www.tsdye.com
>> > </span>
>>
>> --
>> Thomas S. Dye
>> http://www.tsdye.com
>>
>
>


-- 
http://pft.github.com

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

  reply	other threads:[~2012-01-13 14:52 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-12 18:50 Way to replace normal tabular env with booktabs? John Hendy
2012-01-12 20:12 ` Thomas S. Dye
2012-01-12 23:19   ` John Hendy
2012-01-13  0:01     ` Thomas S. Dye
2012-01-13 13:21       ` John Hendy
2012-01-13 14:52         ` Niels Giesen [this message]
2012-01-13 15:35           ` John Hendy
2012-01-13 15:39           ` Carsten Dominik
2012-01-13 15:48             ` John Hendy
2012-01-13 18:32               ` Daniel Bausch
2012-01-13 19:03                 ` John Hendy
2012-02-03 23:24             ` John Hendy
2012-02-04 15:54               ` Nicolas Goaziou
2012-02-08 13:17                 ` Niels Giesen
2012-02-08 22:32                   ` Nicolas Goaziou
2012-02-09 19:50                     ` John Hendy
2012-02-09 19:57                       ` Thomas S. Dye
2012-02-09 20:20                         ` John Hendy
2012-02-09 20:24                           ` Nick Dokos
2012-02-09 20:27                           ` Thomas S. Dye
2012-02-09 20:29                           ` Nick Dokos
2012-02-09 21:09                             ` John Hendy
2012-02-09 21:26                             ` John Hendy
2012-02-09 22:04                               ` Thomas S. Dye
2012-02-13 22:13                                 ` John Hendy

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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='CACDo9LfNEgakvoaqGKr+9pyEygpeKkiT=oF7WjzFYaNJbn_W7w@mail.gmail.com' \
    --to=niels.giesen@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jw.hendy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

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