4

Instead of

|   | some value         |
|-- +--------------------|
| a | aaaaaaaa           |
|---+--------------------|
| b | bbbbbbb bbbbbbbbb  |
|---+--------------------|

I want

|   | some value         |
|-- +--------------------|
| a | aaaaaaaa           |
|---+--------------------|
| b | bbbbbbb            |
|   | bbbbbbbbb          |
|---+--------------------|

because sometimes the table is too long to display and I have to use scroll commands or bol/eol to view the table. Also I have no idea about how to get it nicely export to LaTeX. Thanks in advance!

2
  • Does M-<RET> (org-table-wrap-region) work for you?
    – Roman Susi
    Commented Dec 26, 2016 at 18:39
  • @RomanSusi It does! I've tried <RET>, C-<RET>, newline, newline-and-indent etc. but this one! Thank you! Commented Dec 27, 2016 at 0:43

1 Answer 1

3

It's possible to make text to wrap by pressing M-, take a look at the table editor docs

As for export into latex, M-x org-table-export and specifying file name with .tex extension should work.

Here is what I got for your second table:

\begin{tabular}{ll}
 & some value\\
\hline
a & aaaaaaaa\\
\hline
b & bbbbbbb\\
 & bbbbbbbbb\\
\hline
\end{tabular}

It adds an explicit break though.

Please, see also answers for this question: Org-table: is it possible to have automatic line wrapping inside org-tables?

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