Comments (3)
yes. All your questions are documented; see:
- https://davidgohel.github.io/flextable/reference/docx_value.html
- https://stackoverflow.com/questions/58173966/looping-flextables-in-r-markdown-documents-with-word-output/58174170#58174170
- https://davidgohel.github.io/flextable/articles/offcran/examples.html#looping-in-r-mardown-documents (it shows things with
htmltools_value
but the strategy is the same withdocx_value
)
For the second question, see:
- https://davidgohel.github.io/flextable/reference/set_caption.html
- https://ardata-fr.github.io/officeverse/officedown-for-word.html#set-caption-label
from officedown.
Thanks for your help!
Following up on my second question:
I am able to get sequenced IDs for tables in text (either by setting the chunk header or using the set_caption
function):
e.g. ````{r descriptive, tab.cap="Descriptive statistics", tab.id = "descriptive"}`
But I can't get the IDs for the tables/figures in the ToC:
I am also not quite sure how that works (partially) in your book), where the number 2 shows for "Figure 2", but 1&3 are not showing for "Figure 1" and "Figure 3". The table section also shows the same problem.
Thank you so much for your kind help!
from officedown.
Could you open a separate issue and provide a full reproducible example? I can't help because I can't reproduce
from officedown.
Related Issues (20)
- Math font in rdocx_document HOT 1
- Add image to word doc header without using reference docx
- Error when using `knit_print_block` in loop HOT 6
- Header Problems concomitant with page numbering HOT 6
- number_section and markdown_document2: change of default behavior not possible HOT 5
- Math expression HOT 1
- The "flextalbe" Caption
- Help with using flextable in officedown HOT 10
- Import the figure as its original height/width ratio HOT 14
- (How to) Add footnotes through officedown HOT 1
- Fields Word document HOT 1
- Name for `tab.id` must not contain `_`? HOT 1
- `rpptx_document` does not use the assigned layout in code chunk HOT 3
- accessing different parts of word doc HOT 3
- how to add page numbers, title page and sections in word using officedown HOT 1
- Extra section break is created after MULTCOLUM stop HOT 5
- Option to output Word doc with line numbering HOT 5
- dml bg is always "white" in R Markdown HOT 2
- `block_pour_docx` but only for part of file to be poured
- Images in page headers of reference docx misplaced when using <!---BLOCK_LANDSCAPE_START---> <!---BLOCK_LANDSCAPE_STOP---> HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from officedown.