I am trying to write a research manuscript in rmarkdown
. Everything was working ok, but when I start trying to use \newpage
for a page break I got the following error -
! Improper \prevdepth.
\newpage ...everypar {}\fi \par \ifdim \prevdepth
>\z@ \vskip -\ifdim \prevd...
l.187 \newpage
I actually write the \newpage
this way -
\newpage
# Literature Review & Hypotheses Development
\justify
## Role of ABC
blah blah blah .......
However, if I put a line/word (e.g., the word "W") like the following way, it knits well -
\newpage
# Literature Review & Hypotheses Development
\justify
W
## Role of ABC
blah blah blah .......
Any idea to solve it. I visited https://tex.stackexchange.com/questions/405980/why-does-xgalley-require-a-blank-line-before-enddocument, but I do not know how to approach it. Thanks