Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line wrapping in the row of a table #190

Open
ViWaldi opened this issue Aug 6, 2018 · 8 comments
Open

Line wrapping in the row of a table #190

ViWaldi opened this issue Aug 6, 2018 · 8 comments

Comments

@ViWaldi
Copy link

ViWaldi commented Aug 6, 2018

Feature request: enter an attribute for the row definition that the row can be wrapped to the next page.

@pgundlach
Copy link
Member

@ViWaldi Could you add a bit more context? For text or for tables? What should happen?

@ViWaldi ViWaldi changed the title Line wraping in the row of a table Line wrapping in the row of a table Aug 6, 2018
@ViWaldi
Copy link
Author

ViWaldi commented Aug 6, 2018

Maybe split the text on line break and then add lines/rows as long as there is still space on the page.

If there are no line break in the text, then do nothing. it's the problem of the user.

@pgundlach
Copy link
Member

You want to split a table cell in sub cells?

like

firstpar asdfsad asdfasdfasd asdfasdf asdfadsfasdf
asdfasdf PAREND
secondpar asdfasdfasdf asdfasdfasdf asdfadsf asdfasdf
asdfasdfas

which could break right after PAREND and the secondpar goes into the next table cell?

@pgundlach pgundlach added the Feedback needed User feedback is required to keep this issue open label Aug 7, 2018
@neolithos
Copy link

neolithos commented Aug 7, 2018

Layout suggestion:

+-------+-------------+---------------------+
| first |             | long paragraph cell |
|       |             | long paragraph cell |
|       |             | long paragraph cell |
+-------+-------------+---------------------+
< page break >
+-------+-------------+---------------------+
|        |            | long paragraph cell |
|        | second     | long paragraph cell |
+-------+-------------+---------------------+

Definition:

<tr>
<td valign=top>first</td>
<td valign=bottom>secord</td>
<td breakable=true>long paragraph cell long paragraph cell long paragraph cell long paragraph cell long paragraph cell long paragraph cell</td>
</tr>

for valign middle we have no idea.

Pseudo logic:

if row greater rest of page then
  if test none breakable rows fit then
     split breakable rows in sub cells
  else
     next page
  end
end

We can also chat for more details.

@pgundlach pgundlach added Feature Request and removed Feedback needed User feedback is required to keep this issue open labels Aug 8, 2018
@pgundlach
Copy link
Member

I was afraid that you ask for that. Unfortunately this is hard to do. I will leave this Feature request open for a while to think about that. This will probably take me two days to get it right (including testing etc.) so I need a sponsor for that.

@pgundlach
Copy link
Member

I am sorry to close this. It won't make much sens to keep it open. I know that a inter cell linebreak would be very nice, but without somebody paying for that, I can't implement it.

@neolithos
Copy link

This is okay, we have an equal problem, currently. In our internal tracker it will stay open.

@fsoedjede
Copy link

fsoedjede commented Nov 15, 2024

Hello @pgundlach
I'm interested in this feature to have table row overlapping multiple pages work.
After some research and tests, it seems that it have not been implemented yet.
Would you consider picking it now? Depending on the cost, I may be able to pay for it.

Thanks

For context: currently, I'm doing some automated PDF generation (from markdown -> latex -> PDF using TexLive). I've not found a solution to do line wrapping on multiple page in latex. In fact, if the line wraps to next page only, there is a solution but if it goes to a third page, none of the tested package works.
That's why I started considering speedata if it works (I would have markdown -> data.xml -> PDF using Speedata). For now, my tests are inconclusive.

@pgundlach pgundlach reopened this Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants