aboutsummaryrefslogtreecommitdiff
path: root/test/tables
diff options
context:
space:
mode:
authorPeter Fabinski <github@peterfab.com>2021-08-03 17:34:39 -0400
committerGitHub <noreply@github.com>2021-08-03 15:34:39 -0600
commit8667ba2bcc8a7da6ba50369161c0bcb9020780e8 (patch)
tree61b348636913d420e975ac8fbfc0be9f40cfcb91 /test/tables
parentf938378d001cb892ccccbf6808010dd69becc26f (diff)
downloadpandoc-8667ba2bcc8a7da6ba50369161c0bcb9020780e8.tar.gz
LaTeX table writer: Increase column width precision (#7466)
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.
Diffstat (limited to 'test/tables')
-rw-r--r--test/tables/nordics.latex8
-rw-r--r--test/tables/students.latex4
2 files changed, 6 insertions, 6 deletions
diff --git a/test/tables/nordics.latex b/test/tables/nordics.latex
index 6f17a163e..4c10865dc 100644
--- a/test/tables/nordics.latex
+++ b/test/tables/nordics.latex
@@ -1,8 +1,8 @@
\begin{longtable}[]{@{}
- >{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.30}}
- >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.30}}
- >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.20}}
- >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.20}}@{}}
+ >{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3000}}
+ >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3000}}
+ >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2000}}
+ >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.2000}}@{}}
\caption{States belonging to the \emph{Nordics.}}\tabularnewline
\toprule
\begin{minipage}[b]{\linewidth}\centering
diff --git a/test/tables/students.latex b/test/tables/students.latex
index 3d4d287d9..b1ea45ac8 100644
--- a/test/tables/students.latex
+++ b/test/tables/students.latex
@@ -1,6 +1,6 @@
\begin{longtable}[]{@{}
- >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.50}}
- >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.50}}@{}}
+ >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.5000}}
+ >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.5000}}@{}}
\caption{List of Students}\tabularnewline
\toprule
\begin{minipage}[b]{\linewidth}\centering