Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in R Programming by (50.2k points)

I try the following code to support the main text and make the title bold. I want to determine where the line break is in my long title but when I connect the rmd file non of the style edits happens to the title section.

---

title: "my really really really really \n  really really long title"

author: "person"

date: "4/24/2020"

output:

  html_document:

    toc: true

    toc_float:

      collapsed: true

      smooth_scroll: false

    toc_depth: 4

    theme: yeti 

    highlight: tango

    code_folding: show

---

<style>

body {

text-align: justify}

title {

font-style: bold}

</style>

1 Answer

0 votes
by (108k points)

For formatting, you can use the YAML. **text** is used to make the title bold and <br> to break the line.

---

title: "**my really really really really <br>  really really long title**"

author: "person"

date: "4/24/2020"

output:

  html_document:

    toc: true

    toc_float:

      collapsed: true

      smooth_scroll: false

    toc_depth: 4

    theme: yeti 

    highlight: tango

    code_folding: show

---

If you want to know more about R then do check out the R programming course

Browse Categories

...