In rmarkdown I want headings with sans serif font. I can achieve this with \textsf{} latex command but later in the PDF there's no bookmark text shown. I already tried ## \textsf[Heading 1]{Heading 1} but with an error as result.
Anybody got an idea how to get both?
MWE:
---
output: pdf_document
---
## \textsf{Heading 1}
Lorem ipsum dolor sit amet, sit id rebum choro euripidis, nam ei ullum tamquam scaevola, est veniam consulatu et. Duo ex utamur atomorum. His ad dicat pericula, solet appetere vel cu.
## \textsf{Heading 2}
Lorem ipsum dolor sit amet, sit id rebum choro euripidis, nam ei ullum tamquam scaevola, est veniam consulatu et. Duo ex utamur atomorum. His ad dicat pericula, solet appetere vel cu.
Output:
Wanted:
Bookmarks (left) with text 'Heading 1', 'Heading 2'.
