GithubHelp home page GithubHelp logo

New Line about officedown HOT 4 CLOSED

davidgohel avatar davidgohel commented on June 10, 2024
New Line

from officedown.

Comments (4)

davidgohel avatar davidgohel commented on June 10, 2024 1

The new version is allowing this syntax for line break:

This is a dummy text, `r officer::run_linebreak()`this goes into a new line

from officedown.

davidgohel avatar davidgohel commented on June 10, 2024 1

Yes it's probably possible, but I don't see much interest in that. Doesn't \newline works already—without officedown?

I think there is a mistake in your command. If you do br <- officer::run_linebreak(), then br is an object, don't add parenthesis.

`r br`

I think the most efficient way of adding line breaks (soft return, not a new paragraph) in an officedown document is as you suggested (but no parenthesis)

from officedown.

davidgohel avatar davidgohel commented on June 10, 2024

It does not exists but that's a very good suggestion

from officedown.

SchmidtPaul avatar SchmidtPaul commented on June 10, 2024

Do you think it is possible to define a custom command such as \newline with this? Ideal would be something like

\br <- `r officer::run_linebreak()`

Or maybe more like this stackoverflow question R Markdown similar feature to "newcommand" in LaTex?:

\newcommand{\br}{`r officer::run_linebreak()`}

If not, is this the most efficient way of adding line breaks in an officedown document?

``` r
br <- officer::run_linebreak()
```

`r br()`

from officedown.

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.