-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
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
control table and figure seq_id from yaml header or chunk options #71
Comments
Yes, it's a local thing. In France, it's "Table" for example and this is stored in a hidden Word template somewhere in your computer. You can use knitr chunk option |
Thanks David! that's great to know. I've now got
flextable 0.6.6 |
I don't think the example you provided is valid. I did not run it, I am sure it will produce an HTML file. I will investigate that later then. Note |
The issue I am experiencing is that officedown uses different field code SEQ ids for tables and figures than word so if I create a word document with officedown and then make a few table or figure additions manually, they end up belonging to different sequences. This may be a locale thing, I'm not sure. I am using an Australian version of Word.
manually generated in word:
{ SEQ Table * ARABIC }
{ SEQ Figure * ARABIC }
generated by officedown
{SEQ tab * Arabic}
{SEQ fig * Arabic}
I understand the officer has some control over this with run_autonum(seq_id = "fig") but I don't call that directly when using officedown: e.g:
```{r tab.cap='iris', tab.id='iris'}
head(iris)
```
Would it be possible to have options either in the yaml header or chunk options (so that global defaults could be set) for defining which seq_id is used? If this is a locale based issue then it would allow users to define the correct ID for their localized version of word.
E.g.
If there is already a way of doing this, please forgive me. I have looked everywhere for it.
The text was updated successfully, but these errors were encountered: