Open iiijohan opened 7 years ago
I fixed the code for the next CRAN release (also here on git) to put \par
in front of the text if not in a table environment. As for the centering there is no way to control that.
For linux a new package tarball is at http://data.vanderbilt.edu/fh/attach/Hmisc_4.0-1.tar.gz
Thanks for the excellent examples.
Thanks for the quick reply and fix! Interested Windows (and Linux) users can also install the tarball with
install.packages("http://data.vanderbilt.edu/fh/attach/Hmisc_4.0-1.tar.gz", type = "source")
/Johan
A minimum working knitr example is inserted below and the resulting pdf file is attached here.
When I try to insert a text below a table using the
latex
function and settingtable.env=FALSE
the text does not appear below the table but on the side (Example 1).When
table.env=TRUE
andcenter='center'
the text is below the table but not centered (Example 2) while whencenter='centering'
the text is again on the side and the table is not centered (Example 3). The third example might be as expected (sometimes you don't want the text centered) but the fourth is not.Installing Hmisc after different commits suggest that the "bug" was introduced in the September 14 commit (ref = 59559fd) as it did work as expected after the previous commit on September 13 (ref = 4fc43af).