I have a simple Julia Markdown script, that I would like to turn into a PDF using Weave.jl:
---
title: Just a test
author: Me
date: 2022-01-03
output: pdf_document
---
# Some header
Some text.
\newpage
## Some other header
More text.
Now, the crux in that document is the \newpage command, which is meant to be executed as a Latex command, i.e. "create a pagebreak". But when using weave("myfile.jmd", doctype="md2pdf") Weave (or something else) becomes super smart and translates it to {\textbackslash}newpage - a smart way of refusing to let me do exactly what I want to do: Latex commands.
Is there any way to avoid this?
