From mboxrd@z Thu Jan 1 00:00:00 1970 From: Niels Giesen Subject: Re: Way to replace normal tabular env with booktabs? Date: Fri, 13 Jan 2012 15:52:22 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00248c6a5ade2f165a04b66a0324 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RliUa-00025I-8r for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 09:52:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RliUT-0007MR-Ck for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 09:52:32 -0500 Received: from mail-qy0-f169.google.com ([209.85.216.169]:54689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RliUT-0007MF-8J for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 09:52:25 -0500 Received: by qcsg13 with SMTP id g13so359858qcs.0 for ; Fri, 13 Jan 2012 06:52:24 -0800 (PST) In-Reply-To: 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: John Hendy Cc: emacs-orgmode --00248c6a5ade2f165a04b66a0324 Content-Type: text/plain; charset=UTF-8 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 wrote: > On Thu, Jan 12, 2012 at 6:01 PM, Thomas S. Dye 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 writes: >> >> > On Thu, Jan 12, 2012 at 2:12 PM, Thomas S. Dye 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 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'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/ >> >> >> >> -- >> >> Thomas S. Dye >> >> http://www.tsdye.com >> >> >> > 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 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'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/ >> > >> > -- >> > Thomas S. Dye >> > http://www.tsdye.com >> > >> >> -- >> Thomas S. Dye >> http://www.tsdye.com >> > > -- http://pft.github.com --00248c6a5ade2f165a04b66a0324 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 c= an find it=C2=A0@=C2=A0http://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!
=C2=A0
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-exp= ort.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 simp= ler way; just change the first \hline -> \toprule and the bottom one to = \bottomrule; \midrules in between.

Thanks again,
John
=C2=A0=
hth,
Tom

John Hendy <jw.h= endy@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. =C2=A0There should =C2=A0be a cou= ple 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 yo= u mean
> this page?
> --- http://orgmode.org/worg/org-contrib/babel/libra= ry-of-babel.html
>
> Thanks for the suggestion. Feeling a bit lost, but am happy to look ar= ound
> for something that seems similar. I have no elisp-fu, so it'll nee= d 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 table= s 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 t= he \hlines
>> > extremely close to the top and bottom of my header row vs., a= s the
>> booktabs
>> > package says, having extremely nice looking spacing for the t= able. I
>> ended
>> > up doing the table manually inside #+begin_latex block.
>> >
>> > Would there be any way to specify that booktabs should be use= d? The
>> > formatting is literally identical except for 1) including the= booktabs
>> > package and 2) using \toprule, \midrule and \bottomrule inste= ad of
>> \hlines.
>> > In fact, even with booktabs included, if you use \hlines inst= ead 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/Table= s#Professional_tables
>> > [2] http://www.ctan.org/tex-archive/macros/= latex/contrib/booktabs/
>> > Greetings,I was using wikibooks for some formatting assistanc= e on tables
>> the other day and ran into mention of the booktabs package in the<= br> >> "Professional tables" section. [1] [2]
>> > I really, really liked it&#39;s formatting, especially si= nce 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 t= he table.
>> I ended up doing the table manually inside #+begin_latex block. >> > Would there be any way to specify that booktabs should be use= d? The
>> formatting is literally identical except for 1) including the book= tabs
>> package and 2) using \toprule, \midrule and \bottomrule instead of= \hlines.
>> In fact, even with booktabs included, if you use \hlines instead o= f the
>> booktab specific lines, you&#39;ll get a "regular" t= abular table.
>> > Any thoughts on this?Best regards,John-----[1]
>> http://en.wikibooks.org/wiki/LaTeX/Tables#Profess= ional_tables
>> > [2] http://www.ctan.org/tex-archive/macros/= latex/contrib/booktabs/
>>
>> --
>> Thomas S. Dye
>> http://www.tsdy= e.com
>>
> On Thu, Jan 12, 2012 at 2:12 PM, Thomas S. Dye <span dir=3D"lt= r"><mailto:ts= d@tsdye.com></span> wrote:
> Hi John,
>
> Agreed, booktabs makes good looking tables.
>
> Check out your Library of Babel. =C2=A0There should =C2=A0be 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. D= o you mean this page?---=C2=A0http://orgmode.org/worg/or= g-contrib/babel/library-of-babel.html
> Thanks for the suggestion. Feeling a bit lost, but am happy to look ar= ound for something that seems similar. I have no elisp-fu, so it&#39;ll= need to be pretty darn similar :)
> John=C2=A0
> 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 "Prof= essional
>> tables" section. [1] [2]
>>
>> I really, really liked it&#39;s formatting, especially since o= ne of my column
>> headers was a fraction. The standard tabular package places the \h= lines
>> 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? Th= e
>> formatting is literally identical except for 1) including the book= tabs
>> package and 2) using \toprule, \midrule and \bottomrule instead of= \hlines.
>> In fact, even with booktabs included, if you use \hlines instead o= f the
>> booktab specific lines, you&#39;ll get a "regular" t= abular table.
>>
>> Any thoughts on this?
>>
>>
>> Best regards,
>> John
>>
>> -----
>> [1] http://en.wikibooks.org/wiki/LaTeX/Tables#Pro= fessional_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 &q= uot;Professional tables" section. [1] [2]
>> I really, really liked it&#39;s formatting, especially since o= ne 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 t= able. I ended up doing the table manually inside #+begin_latex block.
>
>> Would there be any way to specify that booktabs should be used? Th= e formatting is literally identical except for 1) including the booktabs pa= ckage and 2) using \toprule, \midrule and \bottomrule instead of \hlines. I= n fact, even with booktabs included, if you use \hlines instead of the book= tab specific lines, you&#39;ll get a "regular" tabular table.=
>
>> Any thoughts on this?Best regards,John-----[1]=C2=A0http://en.wikibooks.org/wiki/LaTeX/Tables#Professional_tables
>> [2]=C2=A0http://www.ctan.org/tex-archive/macros/= latex/contrib/booktabs/
> <span class=3D"HOEnZb">
> --
> Thomas S. Dye
> http://www.tsdye.co= m
> </span>

--
Thomas S. Dye
http://www.tsdye.com=




--
http://pft.github.com
--00248c6a5ade2f165a04b66a0324--