-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
grid_tables with multicol/multirow too wide #9140
Comments
Alas, |
Yes, definitely problematic, we'll look into it. Here's the tex produced for the first table: \begin{longtable}[]{@{}
>{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.1944}}
>{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.1111}}
>{\raggedright\arraybackslash}p{(\columnwidth - 4\tabcolsep) * \real{0.1528}}@{}}
\toprule\noalign{}
\multicolumn{2}{@{}l}{%
\begin{minipage}[b]{\linewidth}\raggedright
Property
\end{minipage}} & \begin{minipage}[b]{\linewidth}\raggedright
Earth
\end{minipage} \\
\midrule\noalign{}
\endhead
\multirow{3}{*}{Temperature 1961-1990} & min & -89.2 °C \\
& mean & 14 °C \\
& min & 56.7 °C \\
\bottomrule\noalign{}
\end{longtable} |
I think we need to pass a parameter for cell width to |
This should help fix a problem wherein some grid tables with colspans were overly wide. See #9140. The example given there still produces suboptimal output (overlapping text), so not closing yet.
to fix the remaining (overlap) issue, we need to add an explicit width to the |
Explain the problem.
I am creating beamer presentations from pandoc markdown. I tried to add a table with multicol + multirow, using the
grid_tables
format (which is the only one that supports these features if I understand correctly). Unfortunately, the tables generated are way too wide. I used two of the examples from the documentation. In the first one (with multicol), the first column is way too wide, unnecessarily so. In the second (multicol + multirow), the table is so wide that it hangs off the slide on the right, even though all the content fits comfortably on the page.The MWE is here: pandoc_table.md.
This is how it looks like:
Pandoc version?
Pandoc: 3.1.8
OS: KDE Neon (6.2.0-34-generic #34~22.04.1-Ubuntu x86_64)
Texlive: 2021.202204-1
The text was updated successfully, but these errors were encountered: