hughjonesd / huxtable

An R package to create styled tables in multiple output formats, with a friendly, modern interface.
http://hughjonesd.github.io/huxtable
Other
322 stars 28 forks source link

caption_pos(ht) doesn't work in knit to pdf #206

Closed agustinggza closed 3 years ago

agustinggza commented 3 years ago

Thanks for your job. I think huxtable is a very good program and really useful. My problem: I want to put a caption on top and "caption_pos" or "set_caption_pos" work in html and word but not to pdf render; captions are always in bottom of table. Any idea? Thanks for all.

hughjonesd commented 3 years ago

Can you provide a minimal reproducible example?

agustinggza commented 3 years ago

Pardon, I think that it was a common behavoir to pdf. I reviewed my code and solve this problem including the library name like this huxtable::set_caption_pos(ht, "topcenter"). Now, This one works fine for me. Thank you.