From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: latex export and booktabs tables Date: Sun, 27 Jun 2010 22:09:39 -0700 Message-ID: <878w5zd9po.fsf@gmail.com> References: <87tyouyx6b.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=57568 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OT6bJ-0003kh-Uv for emacs-orgmode@gnu.org; Mon, 28 Jun 2010 01:09:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OT6bI-0005Eu-3o for emacs-orgmode@gnu.org; Mon, 28 Jun 2010 01:09:45 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:60415) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OT6bH-0005Ef-Oj for emacs-orgmode@gnu.org; Mon, 28 Jun 2010 01:09:44 -0400 Received: by pxi17 with SMTP id 17so7398301pxi.0 for ; Sun, 27 Jun 2010 22:09:42 -0700 (PDT) In-Reply-To: <87tyouyx6b.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Wed, 23 Jun 2010 10:23:40 +0200") 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: emacs-orgmode@gnu.org --=-=-= 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 --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=longtable.org Content-Transfer-Encoding: base64 IytUSVRMRTogbG9uZ3RhYmxlCiMrT1BUSU9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tLS0tLS0tLS0tfAp8IHRhYmxlICAgICB8 IGEgcmVmZXJlbmNlIHRvIHRoZSB0YWJsZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIHwKfCBhbGlnbiAgICAgfCBvcHRpb25hbCBhbGlnbm1lbnQgc3RyaW5nICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICB8Cnwgd2lkdGggICAgIHwgb3B0aW9uYWwgd2lkdGggc3Bl Y2lmaWNhdGlvbiBzdHJpbmcgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGhsaW5lICAgICB8 IHRoZSBzdHJpbmcgdG8gdXNlIGFzIGhsaW5lIHNlcGFyYXRvciwgZGVmYXVsdHMgdG8gIlxcaGxp bmUiIHwKfCBoZWFkICAgICAgfCBvcHRpb25hbCAiaGVhZCIgc3RyaW5nICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICB8CnwgZmlyc3RoZWFkIHwgb3B0aW9uYWwgImZpcnN0aGVh ZCIgc3RyaW5nICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfAp8IGZvb3QgICAgICB8 IG9wdGlvbmFsICJmb290IiBzdHJpbmcgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIHwKfCBsYXN0Zm9vdCAgfCBvcHRpb25hbCAibGFzdGZvb3QiIHN0cmluZyAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICB8CgojK3NyY25hbWU6IGxvbmd0YWJsZQojK2JlZ2luX3Ny YyBlbWFjcy1saXNwIDp2YXIgdGFibGU9JygoOnRhYmxlKSkgOnZhciB3aWR0aD0nKCkgOnZhciBh bGlnbj0nKCkgOnZhciBobGluZT0iXFxobGluZSIgOnZhciBmaXJzdGhlYWQ9JygpIDp2YXIgaGVh ZD0nKCkgOnZhciBmb290PScoKSA6dmFyIGxhc3Rmb290PScoKSA6bm93ZWIgeWVzIDpyZXN1bHRz IGxhdGV4CiAgKG9yZy1maWxsLXRlbXBsYXRlCiAgICIKICBcXGJlZ2lue2xvbmd0YWJsZX0ld2lk dGglYWxpZ24KICAlZmlyc3RoZWFkCiAgJWhlYWQKICAlZm9vdAogICVsYXN0Zm9vdAogIAogICV0 YWJsZQogIFxcZW5ke2xvbmd0YWJsZX1cbiIKICAgKGxpc3QKICAgIChjb25zICJ3aWR0aCIgICAg IChpZiB3aWR0aCAoZm9ybWF0ICJ7JXN9IiB3aWR0aCkgIiIpKQogICAgKGNvbnMgImFsaWduIiAg ICAgKGlmIGFsaWduIChmb3JtYXQgInslc30iIGFsaWduKSAiIikpCiAgICAoY29ucyAiZmlyc3Ro ZWFkIiAoaWYgZmlyc3RoZWFkIChjb25jYXQgZmlyc3RoZWFkICJcblxcZW5kZmlyc3RoZWFkXG4i KSAiIikpCiAgICAoY29ucyAiaGVhZCIgICAgICAoaWYgaGVhZCAoY29uY2F0IGhlYWQgIlxuXFxl bmRoZWFkXG4iKSAiIikpCiAgICAoY29ucyAiZm9vdCIgICAgICAoaWYgZm9vdCAoY29uY2F0IGZv b3QgIlxuXFxlbmRmb290XG4iKSAiIikpCiAgICAoY29ucyAibGFzdGZvb3QiICAoaWYgbGFzdGZv b3QgKGNvbmNhdCBsYXN0Zm9vdCAiXG5cXGVuZGxhc3Rmb290XG4iKSAiIikpCiAgICAoY29ucyAi dGFibGUiIChvcmd0YmwtdG8tZ2VuZXJpYwogICAgICAgICAgICAgICAgICAgKG1hcGNhciAobGFt YmRhIChsaXMpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGlmIChsaXN0cCBsaXMpCiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChtYXBjYXIgKGxhbWJkYSAoZWwpCiAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoaWYgKHN0cmluZ3AgZWwpCiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWwKICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZvcm1hdCAiJVMiIGVsKSkpIGxp cykKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxpcykpIHRhYmxlKQogICAgICAgICAg ICAgICAgICAgKGxpc3QgOmxlbmQgIiBcXFxcIiA6c2VwICIgJiAiIDpobGluZSBobGluZSkpKSkp CiMrZW5kX3NyYwo= --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable S=C3=A9bastien Vauban 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 thi= s is >> likely to introduce difficulties elsewhere which I did not experience du= e 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 tab= le > 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. Hav= e a > read at: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg18311.html. > > Best regards, > Seb --=-=-= 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 --=-=-=--