From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Re: latex export and booktabs tables Date: Mon, 28 Jun 2010 22:00:30 -1000 Message-ID: <457FCE1D-740F-4AA3-9913-E6D5117029E1@tsdye.com> References: <87tyouyx6b.fsf@mundaneum.com> <878w5zd9po.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============1520641229==" Return-path: Received: from [140.186.70.92] (port=37057 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTVkG-0007Uy-7E for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 04:00:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTVkC-0005Hz-DX for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 04:00:39 -0400 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:52390) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OTVkC-0005Ha-5v for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 04:00:36 -0400 In-Reply-To: <878w5zd9po.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode@gnu.org --===============1520641229== Content-Type: multipart/alternative; boundary=Apple-Mail-1-991003961 --Apple-Mail-1-991003961 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Hi Eric, This is neat, but it doesn't directly address the problem posed by the =20= OP. Currently, the LaTeX exporter uses \hline for all the horizontal rules =20= in a table. Booktabs defines three rules of different thickness for =20 use at the top of the table, after the column heads, and at the bottom =20= of the table. So, one would want a function that let each of the =20 rules take a different value. The default for each could be hline, =20 giving the current behavior of the exporter. Francesco Pizzolante set =20= this out nicely a while back: = http://www.mail-archive.com/emacs-orgmode@gnu.org/msg18311.html=20 in a message that Seb Vauban brought up in a slightly different =20 context. All the best, Tom On Jun 27, 2010, at 7:09 PM, Eric Schulte wrote: > One way to deal with this without adding even more complexity to the > core of org-mode could be through the use of "Library of Babel" > functions. > > The attached org-mode file provides a function for exporting to the > longtable environment with some example usage. If this looks =20 > generally > useful it (and maybe similar functions) could be added to the =20 > library of > babel distributed w/Org-mode. > > What do you think? -- Eric > > > S=E9bastien Vauban writes: > >> Hi Erik, >> >> Erik Butz wrote: >>> I found a very old thread on the list about using the booktabs =20 >>> package to >>> have nicer tables in latex export. >>> >>> I found that, making the changes below I can use the booktab =20 >>> package to >>> export tables, and using standard tables only, this seems to work =20= >>> fine. >>> >>> Can anyone advice on whether this kind of change is meaningful or =20= >>> if this is >>> likely to introduce difficulties elsewhere which I did not =20 >>> experience due to >>> the limited scope of usage? It should be said that I did not at =20 >>> all look >>> into longtables so far. >> >> While trying to improve this, I think one could extend it so that =20 >> the table >> environment can be changed as well, from `tabular' to `array', =20 >> `tabular*', >> `tabularx' or any other. >> >> There was a discussion on this, a while ago, by Francesco =20 >> Pizzolante. Have a >> read at: = http://www.mail-archive.com/emacs-orgmode@gnu.org/msg18311.html=20 >> . >> >> Best regards, >> Seb > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-1-991003961 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi = Eric,

This is neat, but it doesn't directly address = the problem posed by the OP.  

Currently, = the LaTeX exporter uses \hline for all the horizontal rules in a table. =  Booktabs defines three rules of different thickness for use at the = top of the table, after the column heads, and at the bottom of the = table.  So, one would want a function that let each of the rules = take a different value.  The default for each could be hline, = giving the current behavior of the exporter.  Francesco Pizzolante = set this out nicely a while back: h= ttp://www.mail-archive.com/emacs-orgmode@gnu.org/msg18311.html in= a message that Seb Vauban brought up in a slightly different = context.

All the = best,
Tom

On Jun 27, 2010, at 7:09 PM, = Eric Schulte wrote:

One = way to deal with this without adding even more complexity to the
core = of org-mode could be through the use of "Library of = Babel"
functions.

The attached org-mode file provides a = function for exporting to the
longtable environment with some example = usage.  If this looks generally
useful it (and maybe similar = functions) could be added to the library of
babel distributed = w/Org-mode.

What do you think? -- = Eric

<longtable.org>
S=E9bastien Vauban = <wxhgmqzgwmuf@spammotel.com&= gt; writes:

Hi = Erik,

Erik Butz = wrote:
I found a very old thread on the list about using the = booktabs package to
have nicer tables in latex = export.

I found that, making the changes = below I can use the booktab package = to
export tables, and using standard tables only, this seems = to work fine.

Can anyone advice on whether = this kind of change is meaningful or if this = is
likely to introduce difficulties elsewhere which I did not = experience due to
the limited scope of usage? It = should be said that I did not at all = look
into longtables so = far.

While trying to = improve this, I think one could extend it so that the = table
environment can be = changed as well, from `tabular' to `array', = `tabular*',
`tabularx' or any = other.

There was a = discussion on this, a while ago, by Francesco Pizzolante. Have = a
read at: h= ttp://www.mail-archive.com/emacs-orgmode@gnu.org/msg18311.html.

Best regards,
=  Seb
_______________________________________________<= br>Emacs-orgmode mailing list
Please use `Reply All' to send replies = to the list.
Emacs-orgmode@gnu.org
http://= lists.gnu.org/mailman/listinfo/emacs-orgmode
<= br>= --Apple-Mail-1-991003961-- --===============1520641229== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1520641229==--