Skip to content

Rcode chunk using knitr::asis_output and output: asis producing enclosing container (.cell-output-display) #6874

Answered by mcanouil
r-cheologist asked this question in Q&A
Discussion options

You must be logged in to vote

Could you try the following? (I don't have access to a proper LaTeX installation right now)

---
format: pdf
include-in-header:
  - text: |
      \usepackage{enumitem}
      \setlist[description]{nosep,style=multiline,leftmargin=3.5cm,font=\normalfont\textsf}
keep-md: true
execute:
  echo: false
  output: asis
---

First Name:

: **Some**

Family Name:

: **One**

```{r}
cat(paste0("Date of Birth:\n", ": Date"))
```

Email:

: [[email protected]](mailto:[email protected])

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@r-cheologist
Comment options

@mcanouil
Comment options

Answer selected by r-cheologist
@r-cheologist
Comment options

Comment options

You must be logged in to vote
3 replies
@cderv
Comment options

@allefeld
Comment options

@cderv
Comment options

cderv Dec 9, 2024
Maintainer

Comment options

You must be logged in to vote
1 reply
@cderv
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
latex LaTeX engines related libraries and technologies knitr computations
4 participants