From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: exported table has text overflowing off the pdf page Date: Wed, 27 Apr 2016 18:47:40 +0100 Message-ID: <87fuu7q6yr.fsf@skimble.plus.com> References: <571fc839.88ad420a.acb18.37ef@mx.google.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avTYw-0005ME-KT for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 13:47:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avTYt-0003QF-E2 for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 13:47:46 -0400 Received: from avasout04.plus.net ([212.159.14.19]:39607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avTYt-0003Pq-83 for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 13:47:43 -0400 In-Reply-To: <571fc839.88ad420a.acb18.37ef@mx.google.com> (Eduardo Mercovich's message of "Tue, 26 Apr 2016 12:57:45 -0700 (PDT)") 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" To: Eduardo Mercovich Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eduardo Mercovich writes: > Dear Sharon. > >>>> I'm running into problems exporting tables into latex with a 2-column >>>> 3-row table with a large amount of text to go into the cells, but when >>>> its exported the text is taking over and overflowing off the pdf page. > > I'm a newbie and confronted to this same situation found this latex > options (from the org-manual, but not obvious when you don't know what > you're searching): > > #+CAPTION: This is your table caption (of course, it's optional).=20 > #+NAME: table:yourtableid > > #+ATTR_LATEX: :environment longtable :width 1\textwidth :font \small \rag= gedright :align >{\raggedright}p{9cm} p{3cm} > | Here | comes | your | table | > |------+-------+------+-------| > | and | some | text | cells | > > Let's break this into pieces: > > :environment longtable > breaks across pages if too long.=20 > > :width 1\textwidth > it has the width of the text block > > :font \small > assuming your latex class has a "small" font size definition, > can be tiny, miniscule, etc.=20 > > : \raggedright > don't justify a few words in short width columns, looks much better > > :align >{\raggedright}p{9cm} p{3cm} > this defines the column align and width.=20 > > Try it, see what happens and let's optimize this together. :) > Thanks Eduardo, as I said I'm converting a latex document into org-mode, so I've already got quite complex tables working in latex, so I'm just pasting them into my org document and then having a '#+begin_latex' before the latexed table and a '#+end_latex' after the table, and its working quite well except I am, so far, unable to have a 'list of tables' which isn't a real problem. Thanks Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk Debian 8.4, fluxbox 1.3.7, emacs 25.0.93 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXIPs8AAoJEDaBgBkK+INb3BwQAL+WM/itnmTghSPkOomOU4BN u03DBMnUAszZ3fOxz9VaWekabviB8pd3adbhTxApWGhp6eiyYELcMxdtWKt1aWcR g7PbgeqBD++Z2ZNhu/7n8cpkd/zNb4WXbgkHc821FvxaGGI9aanKLD91xaNwsFcj ZP2G/hP/WvkgUHMJBIsxeVWMeFYEazKErA4PHnyKubRQfZpUCFzP62qPXyVCkGpA tLK6Cz+3f4be0glkq/odCpIDKWk6/9iS0m8mnCjTRuOd8wtotLRNiyrCxYugSi0H 6/GMgBujQWTCCAgNR8VAOpECD7coqXIHQlfljkUqs81OkuHICFyW1llX8ZzljRFY r+mWyRI+GAhto8tjxtrRfKLGTLEy5UpBeGfpQwuCgp9QM7nW2P/WvBQdIy5e5dpG xE7ZDmfM8y6QiiNySlJRuxKlnUKqSnMJjCnK5gEE7jzhKT1gJ6DtEUVAqRz7GHv+ AGpd43dmLDfOD2jC2rgaXV4oeDxZJUvIhpNQ2Th6Ema8kyf2SLVDuHhIDxuChCK6 G27uilU9GXLS1Hqx4ymw6h4R576JnrM7+IQXMQmrU8bmOdk5jnenxuCjtOZI115I RLQOIgceNcIAIFNf0UjtFrRCS3hZ7qjoHF3Hdwu4+ta64fbh6nwyCrYwUeT4xxKS bNGAUZlbsCLTPqSctRU2 =gmho -----END PGP SIGNATURE----- --=-=-=--