We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
row_spec
hline_after
extra_latex_after
Describe the bug The row_spec arguments to introduce lines in a table now also insert space in version 1.4.0
library(kableExtra) kbl(mtcars[1:5, 1:5], "latex", booktabs = TRUE) %>% row_spec(2, extra_latex_after = "\\cline{2-6}") %>% row_spec(4, hline_after = TRUE)
Output version 1.3.4:
Output version 1.4.0:
The text was updated successfully, but these errors were encountered:
The problem is that the output Latex looks like this:
\begin{tabular}[t]{lrrrrr} \toprule & mpg & cyl & disp & hp & drat\\ \midrule Mazda RX4 & 21.0 & 6 & 160 & 110 & 3.90\\ Mazda RX4 Wag & 21.0 & 6 & 160 & 110 & 3.90\\ \cline{2-6}\\ Datsun 710 & 22.8 & 4 & 108 & 93 & 3.85\\ Hornet 4 Drive & 21.4 & 6 & 258 & 110 & 3.08\\ \midrule\\ Hornet Sportabout & 18.7 & 8 & 360 & 175 & 3.15\\ \bottomrule \end{tabular}
Those \\ line breaks in \cline{2-6}\\ and \midrule\\ shouldn't be there, and weren't there in 1.3.4.
\\
\cline{2-6}\\
\midrule\\
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
The
row_spec
arguments to introduce lines in a table now also insert space in version 1.4.0Output version 1.3.4:
Output version 1.4.0:
The text was updated successfully, but these errors were encountered: