8000 LaTeX table writer: Increase column width precision by peterfab9845 · Pull Request #7466 · jgm/pandoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

LaTeX table writer: Increase column width precision #7466

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

Merged
merged 1 commit into from
Aug 3, 2021

Conversation

peterfab9845
Copy link
Contributor
@peterfab9845 peterfab9845 commented Jul 30, 2021

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):
image

(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:
image

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

Version:

pandoc 2.14.0.2
Compiled with pandoc-types 1.22, texmath 0.12.3, skylighting 0.10.5.1,
citeproc 0.4.0.1, ipynb 0.1.0.1

In some cases, the rounding performed by the LaTeX table
writer would introduce visible overrun outside the text
area.
This adds two more decimal places to the width values.
@jgm jgm merged commit 8667ba2 into jgm:master Aug 3, 2021
@jgm
Copy link
Owner
jgm commented Aug 3, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0