LaTeX table writer: Increase column width precision #7466
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In cases where a table row's content is longer than the column width, the table is scaled to the text width.

However, only two decimal places are used for each column's size.
In some cases, with many columns, the cumulative rounding can result in a noticeable overrun out of the text area (shown here with the
showframe
package):(This particular case can be fixed with a larger columns setting, because
$\alpha$
isn't as wide as it seems, but the overall issue remains.)This PR simply adds two extra decimal places to the column widths, minimizing the effect:

Reproduction:
test.md
pandoc test.md -o test.pdf
Version: