Hi,
I am trying to use bookdown
to write a report with the final output being a pdf
I have read several sites where there are lots of work arounds using Latex (not my greatest skill to be honest)
I have three things i am trying to accomplish but i think once i get one of them the rest will fall into place. I want to add the abstract above the table of contents. Below is my YAML
---
title: " "
author: " "
date: " "
output: pdf_document
classoption: twoside
fontsize: 12pt
linestretch: 1.5
geometry: "left=4cm, right=3cm, top=2.5cm, bottom=2.5cm"
---
When i add the abstract
to the YAML in the hope it will go above the contents i get the error
Error in yaml::yaml.load(..., eval.expr = TRUE) :
Scanner error: while scanning a simple key at line 3, column 1 could not find expected ':' at line 4, column 1
Calls: ... parse_yaml_front_matter -> yaml_load ->
Execution halted
This happens when i add other things such as keywords
I have seen the blog post which describes how to get the abstract and thanks in above the contents but i keep getting the same error.
I also looked at a blog post by Ed Berry but was unsure where to actually put the section below in respect to the rest of the markdown document
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=1]{../_book/_main.pdf}
\includepdf[pages=2-]{../rmarkdown/before_body.pdf}
\includepdf[pages=2-]{../_book/_main.pdf}
\end{document}
Any help would be greatly appreciated s i have been staring at it a bit too long now
Thanks