From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Way to replace normal tabular env with booktabs? Date: Fri, 3 Feb 2012 17:24:58 -0600 Message-ID: References: <0167BDBB-27A0-458E-8107-4A2217710BE7@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:36954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtSV6-00068Y-7c for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 18:25:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RtSV4-0006Yy-54 for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 18:25:04 -0500 Received: from mail-bk0-f41.google.com ([209.85.214.41]:44627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RtSV3-0006YM-9y for emacs-orgmode@gnu.org; Fri, 03 Feb 2012 18:25:02 -0500 Received: by bkbzs2 with SMTP id zs2so4138986bkb.0 for ; Fri, 03 Feb 2012 15:25:00 -0800 (PST) In-Reply-To: <0167BDBB-27A0-458E-8107-4A2217710BE7@gmail.com> 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: Carsten Dominik Cc: emacs-orgmode On Fri, Jan 13, 2012 at 9:39 AM, Carsten Dominik wrote: > > On Jan 13, 2012, at 3:52 PM, Niels Giesen wrote: > >> There is a patch from me waiting to be incorporated into org mode that l= ets one use booktabs as export for normal org tables. >> >> You can find it @ http://patchwork.newartisans.com/patch/1016/ > > Hi NIels, > > I am looking now at this patch, and maybe it would be better to implement= these three variables as one, holding a property or association list? =C2= =A0Makes it easily extendable. > > Equally important - it would be great if you could try to implement this = same change in the new exporter engine from Nicolas, to ensure that the new= exporter will not lag behind. > > Regards > > - Carsten > Any new thoughts on this? It would be great if this could be adjusted as mentioned and merged into org-mode! I'm still using the current patch from Niels in a separate branch because I like it so much! John >> >> >> >> 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 me= thod, especially with hiding my tables, but I'll give it a shot. I figure t= here's got to be a simpler way; just change the first \hline -> \toprule an= d 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. =C2=A0There should =C2=A0be 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 me= an >> > 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 ar= ound >> > 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 "Profession= al >> >> > 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 \hl= ines >> >> > 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 bookt= abs >> >> > 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 t= ables >> >> 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 th= e >> >> \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 = 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 booktab= s >> >> package and 2) using \toprule, \midrule and \bottomrule instead of \h= lines. >> >> In fact, even with booktabs included, if you use \hlines instead of t= he >> >> 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 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't done much with babel other than writing code blocks. Do yo= u mean this page?--- http://orgmode.org/worg/org-contrib/babel/library-of-b= abel.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 writes: >> > >> >> Greetings, >> >> >> >> >> >> I was using wikibooks for some formatting assistance on tables the ot= her >> >> 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 m= y column >> >> headers was a fraction. The standard tabular package places the \hlin= es >> >> extremely close to the top and bottom of my header row vs., as the bo= oktabs >> >> 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 booktab= s >> >> package and 2) using \toprule, \midrule and \bottomrule instead of \h= lines. >> >> In fact, even with booktabs included, if you use \hlines instead of t= he >> >> 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 tab= les the other day and ran into mention of the booktabs package in the "Prof= essional tables" section. [1] [2] >> >> I really, really liked it's formatting, especially since one of m= y 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 bo= oktabs 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 f= ormatting is literally identical except for 1) including the booktabs packa= ge and 2) using \toprule, \midrule and \bottomrule instead of \hlines. In f= act, 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.or= g/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 > > - Carsten > > >