kableExtra icon indicating copy to clipboard operation
kableExtra copied to clipboard

Add repeat_header Support for xltabular

Open amarakon opened this issue 2 years ago • 0 comments

In my fork of knitr, I added support for the xltabular environment for the kable function. The repeat_header LaTeX option only works with xltabular if there is a caption. Otherwise, it gives me the following error:

! Missing number, treated as zero.
<to be read again>
                   N
l.357 \end{xltabular}

This line is wrong in the LaTeX output:

\multicolumn{NA}{@{}l}{\textit{(continued)}}\\

It should be like this instead:

\multicolumn{4}{l}{\textit{(continued)}}\\

amarakon avatar Jun 12 '22 01:06 amarakon