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

Autonumbering still not work on my side with output: `bookdown::word_document2` #179

Closed mingsu closed 4 years ago

mingsu commented 4 years ago

Autonumbering still not work on my side with output: bookdown::word_document2

---
title: "test hux"
output:
  bookdown::word_document2:
    toc: no
  bookdown::html_document2:
    toc: no
---

See Table \@ref(tab:testhuxtab)

```{r}
require(magrittr)
require(huxtable)
options(huxtable.bookdown = T)

huxtable(
         column1 = 1:5,
         column2 = letters[1:5]
         ) %>%
set_caption("This is table to test hux crossref in word") %>%
set_label("testhuxtab")


_Originally posted by @mingsu in https://github.com/hughjonesd/huxtable/issues/125#issuecomment-678712485_