JelteF / PyLaTeX

A Python library for creating LaTeX files
https://jeltef.github.io/PyLaTeX/
MIT License
2.24k stars 286 forks source link

TextWrapping in Tabular/Tabularx #300

Closed som-shekhar closed 4 years ago

som-shekhar commented 4 years ago

Hi, I am trying to wrap the data in the cell column and tried lot of ways as suggested in tex exchange using MultiRow,MultiColumn etc, but I am not able to achieve it. Can you please guide? image

Also is there any elegant way of handling for more number of columns? As you see in the above screeshot, the last column has gone out of the page.

JelteF commented 4 years ago

My advice is to first try to get it working in plain LaTeX, and then convert that to PyLaTeX code.

som-shekhar commented 4 years ago

Well there are two things which I found:

  1. The word must start with space or else latex won't hyphenate as it considered as paragraph.
  2. if the word has dot, then again hyphenation is done.

Any workarounds if the word has dot like in hostnames?