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!

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

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.