From: Eduardo Mercovich <eduardo@mercovich.net>
To: Sharon Kimble <boudiccas@skimble.plus.com>
Cc: Peter Neilson <neilson@windstream.net>, emacs-orgmode@gnu.org
Subject: Re: exported table has text overflowing off the pdf page
Date: Tue, 26 Apr 2016 12:57:45 -0700 (PDT) [thread overview]
Message-ID: <571fc839.88ad420a.acb18.37ef@mx.google.com> (raw)
In-Reply-To: <87h9epx15y.fsf@skimble.plus.com>
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.
next prev parent reply other threads:[~2016-04-26 19:57 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 [this message]
2016-04-27 17:47 ` Sharon Kimble
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=571fc839.88ad420a.acb18.37ef@mx.google.com \
--to=eduardo@mercovich.net \
--cc=boudiccas@skimble.plus.com \
--cc=emacs-orgmode@gnu.org \
--cc=neilson@windstream.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.