Pdf Rendering in Rmarkdown2/

grid.text() not rendering on PDF

With reference to this link grid finds font when run in console but not when rendering Rmd using specific pdf function will solve the issue.

How make 2 column layout in R markdown when rendering pdf?

New pandoc version have made this easier since my original answer. According to pandoc's manual, you can now specify classoptions directly in the YAML front matter:

---
classoption:
- twocolumn
---

The new div notation also allows for inserting two column sections anywhere in the document, working for most formats

:::::::::::::: {.columns}
::: {.column width="40%"}

contents...

:::
::: {.column width="60%"}

contents...

:::
::::::::::::::

Original answer

You can use the article option twocolumn to format the whole document in two columns. Add this to your yaml front matter:

---
output:
pdf_document:
pandoc_args: [
"-V", "classoption=twocolumn"
]
---

How can I write a degree symbol in RMarkdown 2?

The problem was with RMarkdown converting nested lists. On this page http://rmarkdown.rstudio.com/authoring_pandoc_markdown.html you can find sentence:

The nested list must be indented four spaces or one tab

Although, using the tab could be a problem. When using four spaces - it works:

* Let's turn this round 360$^\circ$
+ Let's turn this round 360$^\circ$

Sample Image



Related Topics



Leave a reply



Submit