Open ElizabethFlores1 opened 11 months ago
I'm not getting an error, but the formatting looks odd. What's the code before the title, Elizabeth? Here's my code:
title: "Problem Set #2" author: "Joseph Bishop" date: "October 11, 2023" urlcolor: blue output: pdf_document ---toc: true ---toc_depth: 2 ---number_sections: true
knitr::opts_chunk$set(echo = TRUE)
Perhaps you need the dashes? Mine isn't right.
I added the dashes:
---toc: true ---number_sections: true
and it did knit to pdf now! However it did not put a table of contents in the pdf :(
I am not able to knit to pdf ps2 and I don't understand why. This is the code that I am using for my yaml section:
title: "Problem Set #2" author: "Elizabeth Flores" date: "October 9, 2023" urlcolor: blue output: pdf_document toc: true number_sections: true
and I am getting a scanner error when I press knit for line 6 which is the output: pdf_document line:
Error in yaml::yaml.load(..., eval.expr = TRUE) : Scanner error: mapping values are not allowed in this context at line 6, column 6 Calls: ... parse_yaml_front_matter -> yaml_load ->
Execution halted
I'd appreciate any help trying to solve this!