Git Product home page Git Product logo

Comments (12)

tammoterhark avatar tammoterhark commented on June 8, 2024

also with:

cursor_reach(keyword = "Hierdatum")%>%
  slip_in_text(datum, style = "Default Paragraph Font", pos = "on")%>%

from officer.

tammoterhark avatar tammoterhark commented on June 8, 2024

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.

tammoterhark avatar tammoterhark commented on June 8, 2024

Using github version of officer.

from officer.

davidgohel avatar davidgohel commented on June 8, 2024

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.

tammoterhark avatar tammoterhark commented on June 8, 2024

OK, so I cannot replace text in the document, except by body_remove?

from officer.

tammoterhark avatar tammoterhark commented on June 8, 2024

What is the use case for:
on will replace the selected element in the document by a new element.

from officer.

davidgohel avatar davidgohel commented on June 8, 2024
  1. No, you can't. You can use fpar for composite and complex strings.

  2. insert content at a specific location

from officer.

tammoterhark avatar tammoterhark commented on June 8, 2024

Sorry to keep asking: but where is "on" used?

from officer.

davidgohel avatar davidgohel commented on June 8, 2024

Have a look at documentation pages for ?officer::body_add_par and all other officer::body_add_* functions

from officer.

tammoterhark avatar tammoterhark commented on June 8, 2024

OK, thanks. This helps. Still a bit confused about the difference between body_add_* and slip_in_

Will experiment.

from officer.

davidgohel avatar davidgohel commented on June 8, 2024

https://davidgohel.github.io/officer/articles/word.html#adding-elements

I made modifications to word vignette, hope it's better.

from officer.

github-actions avatar github-actions commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.