From: Sharon Kimble <boudiccas@skimble.plus.com>
To: Eduardo Mercovich <eduardo@mercovich.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: exported table has text overflowing off the pdf page
Date: Wed, 27 Apr 2016 18:47:40 +0100 [thread overview]
Message-ID: <87fuu7q6yr.fsf@skimble.plus.com> (raw)
In-Reply-To: <571fc839.88ad420a.acb18.37ef@mx.google.com> (Eduardo Mercovich's message of "Tue, 26 Apr 2016 12:57:45 -0700 (PDT)")
[-- Attachment #1: Type: text/plain, Size: 1882 bytes --]
Eduardo Mercovich <eduardo@mercovich.net> 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).
> #+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. :)
>
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.
--
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.4, fluxbox 1.3.7, emacs 25.0.93
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
next prev parent reply other threads:[~2016-04-27 17:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-25 12:18 exported table has text overflowing off the pdf page Sharon Kimble
2016-04-25 12:53 ` Peter Neilson
2016-04-25 13:34 ` Sharon Kimble
2016-04-26 19:57 ` Eduardo Mercovich
2016-04-27 17:47 ` Sharon Kimble [this message]
2016-04-27 18:38 ` Thomas S. Dye
2016-04-28 20:50 ` Eduardo Mercovich
[not found] <ef8278dc2d644486980f118d76ef4373@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-04-25 13:13 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fuu7q6yr.fsf@skimble.plus.com \
--to=boudiccas@skimble.plus.com \
--cc=eduardo@mercovich.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).