Comments (12)
also with:
cursor_reach(keyword = "Hierdatum")%>%
slip_in_text(datum, style = "Default Paragraph Font", pos = "on")%>%
from officer.
Use case: multilingual project with single template. Want to reach certain "magic words" and slip in some text over these magic words depending on language variable.
from officer.
Using github version of officer.
from officer.
Text and images can be inserted at the beginning or the end of the selected paragraph (selection made by the cursor).
?slip_in_text
from officer.
OK, so I cannot replace text in the document, except by body_remove?
from officer.
What is the use case for:
on will replace the selected element in the document by a new element.
from officer.
-
No, you can't. You can use
fpar
for composite and complex strings. -
insert content at a specific location
from officer.
Sorry to keep asking: but where is "on" used?
from officer.
Have a look at documentation pages for ?officer::body_add_par
and all other officer::body_add_*
functions
from officer.
OK, thanks. This helps. Still a bit confused about the difference between body_add_* and slip_in_
Will experiment.
from officer.
https://davidgohel.github.io/officer/articles/word.html#adding-elements
I made modifications to word vignette, hope it's better.
from officer.
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.
from officer.
Related Issues (20)
- body_add_docx() doesn't work if file path for src contains & HOT 2
- `fp_text_lite()` doesn't work with `shading.color` HOT 1
- `cursor_bookmark` is no longer working as expected for inserting text in tables HOT 10
- PPTX get_shape_id identifying wrong ID HOT 3
- docx_comments bugs HOT 2
- Have body_replace_img_at_bkm use image size in document, not from external_img HOT 3
- Quarto rendering problem due to check of `tbl-cap` as cell option HOT 3
- Style = "centered" not supported anymore, was it removed? HOT 3
- Trying to follow solution from #484 but get Error: $ operator is invalid for atomic vectors
- Saving files fails if officer is installed read-only HOT 5
- Installation fails: Error in parse(outFile) : {INSTALL_DIR}/officer/R/docx_comments.R:52:44: unexpected input
- Read_docx does not respect embedded fonts HOT 3
- Saving pptx files fails if officer is installed read-only HOT 5
- `ph_with.gg` does not add an `alt_text=` to pptx HOT 1
- body_add_docx workaround for fast generation of large documents doesn't work anymore HOT 2
- It is hoped that `block_pour_docx()` can work in bookdown::word_document2 HOT 4
- how to add hyperlink for embedded image in PPT. HOT 1
- remove_slide doesn't remove images from ppt/media HOT 4
- Add comment to an existing paragraph HOT 3
- Add fixed = TRUE argument to cursor_reach HOT 1
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 officer.