From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Way to replace normal tabular env with booktabs? Date: Fri, 13 Jan 2012 16:39:21 +0100 Message-ID: <0167BDBB-27A0-458E-8107-4A2217710BE7@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RljDy-00067L-Md for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 10:39:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RljDw-0007C0-SW for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 10:39:26 -0500 Received: from pony.ic.uva.nl ([145.18.40.181]:43570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RljDw-0007Aa-Fi for emacs-orgmode@gnu.org; Fri, 13 Jan 2012 10:39:24 -0500 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: Niels Giesen Cc: emacs-orgmode 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 = lets one use booktabs as export for normal org tables. >=20 > 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? Makes 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 >=20 >=20 >=20 > 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, >=20 > The Library of Babel comes with your Org-mode distribution. >=20 > You'll find it at /contrib/babel/library-of-babel.org >=20 >=20 > I guess you learn something new every day! > =20 > In the org file, look for > * Tables > ** LaTeX Table Export >=20 > There should be functions booktabs and booktabs-notes. >=20 > One way to use booktabs is described here: >=20 > http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-13-2 >=20 >=20 > 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. >=20 > Thanks again, > John > =20 > hth, > Tom >=20 > John Hendy writes: >=20 > > 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 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=20 > > 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 > > >=20 > -- > Thomas S. Dye > http://www.tsdye.com >=20 >=20 >=20 >=20 > --=20 > http://pft.github.com - Carsten