-
Notifications
You must be signed in to change notification settings - Fork 482
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
Wrap tabular environments in adjustbox to resize to page width #1937
Conversation
Linkcheck failure seems like a network issue. It isn't related to this PR. |
There is still a table in the showcase that manages to overflow.. but that is due to the cells themselves overflowing I guess, which is harder to fight. Could we add one or two examples with tables to the showcase for this? Also from the showcase, big equations can be problematic too: Do you think |
I don't know if LaTeX has a way of automatically wrapping text in a table without manually specifying the column widths. And the equation thing is similarly hard. |
Math issue is #1470, which was fixed for HTML but not for LaTeX. |
I am happy to merge this as is too, and leave the equations etc. for the future. If so, this could just use a CHANGELOG note. |
This most commonly affects tables produced by DatFrames.jl, and resizes them to fit the page if they have many columns that would otherwise run off the right-hand edge of the page.
c56e85c
to
354b12b
Compare
Added. p.s. I'm just about to head to the airport, so I'll only be online sporadically until mid-next week. |
Do you think we should also put an adjustbox around the usual tables (as opposed to ones from Documenter.jl/src/Writers/LaTeXWriter.jl Lines 640 to 657 in 674c02e
|
The normal markdown tables already use the The problematic tables are really |
They can still overflow if they're big enough though (you can look at the at-eval generated table I added to the showcase). However, I'm also happy to leave it for a future improvement. |
It's a different Documenter.jl/src/Writers/LaTeXWriter.jl Lines 640 to 657 in 674c02e
But as I said, I'm more than happy to merge this as is. As you said, mostly it's DataFrames etc. that cause problems, which the current PR already takes care of. |
👍 I'm keen to build the JuMP docs once these PRs are all in to see how much of a difference it makes. |
This most commonly affects tables produced by DatFrames.jl, and resizes them to fit the page if they have many columns that would otherwise run off the right-hand edge of the page.
Closes #1930
This is what it looks like now:
I added a
{table}
environment with\centering
, but I can remove if people object.