From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eduardo Mercovich Subject: Re: exported table has text overflowing off the pdf page Date: Tue, 26 Apr 2016 12:57:45 -0700 (PDT) Message-ID: <571fc839.88ad420a.acb18.37ef@mx.google.com> References: <87h9epx15y.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1av97H-0005c5-9r for emacs-orgmode@gnu.org; Tue, 26 Apr 2016 15:57:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1av97E-0001wq-19 for emacs-orgmode@gnu.org; Tue, 26 Apr 2016 15:57:51 -0400 Received: from mail-pf0-x236.google.com ([2607:f8b0:400e:c00::236]:34466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1av97D-0001wW-QO for emacs-orgmode@gnu.org; Tue, 26 Apr 2016 15:57:47 -0400 Received: by mail-pf0-x236.google.com with SMTP id y69so10899796pfb.1 for ; Tue, 26 Apr 2016 12:57:47 -0700 (PDT) In-reply-to: <87h9epx15y.fsf@skimble.plus.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" To: Sharon Kimble Cc: Peter Neilson , emacs-orgmode@gnu.org 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). #+NAME: table:yourtableid #+ATTR_LATEX: :environment longtable :width 1\textwidth :font \small \raggedright :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. :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. : \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. Try it, see what happens and let's optimize this together. :) Best... -- eduardo mercovich Donde se cruzan tus talentos con las necesidades del mundo, ahí está tu vocación.