9

I'd like to format a table with a wide column nicely in PDF export from org-mode. Ideally it would be with a wrap on that column, but I can deal with a manual character or fraction of \textwidth for that column. I've tried a number of things, but I can't get it to change width. What do I need to do?

Sample:

#+ATTR_LATEX: :width .6\textwidth
| Column                    | Wide Column                                        | Column   |
|---------------------------+----------------------------------------------------+----------|
|                           | <30>                                               |          | 
| Some stuff                | Lots and lots of stuff. Way too much. Like, a lot. |          |
9

You may try something like this:

#+ATTR_LATEX: :environment longtable :align |l|p{10cm}|l|
|            | <30>                                               |        |
| Column     | Wide Column                                        | Column |
|------------+----------------------------------------------------+--------|
| Some stuff | Lots and lots of stuff. Way too much. Like, a lot. |        |

In this example the align table has three columns with | as a delimiter. The first and last are left justified (l). The middle one is a paragraph of width 10 cm (p{10cm}). Edit the align table in the #+ATTR_LATEX: line to match the number of columns you have.

  • Notably, \pagewidth and fractions of it don't work, sadly. – bright-star Oct 1 '16 at 22:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.