Open mpatricia01 opened 6 years ago
@mpatricia01 @ozanj Were the students having issues knitting to PDF for previous lectures or just lecture 4? If it is all lectures, perhaps it could be an issue w/ LaTeX (since I think that is required for knitting to PDF?)
For the downloaded .Rmd
files missing YAML header - I think it might have to do w/ how Github Pages is set up to ignore the metadata (since pages like these also uses the ---
, and none of the metadata is displayed literally) I think one workaround is to include a link to the raw file:
<a href="https://raw.githubusercontent.com/ozanj/rclass/master/lectures/lecture4/lecture4.Rmd"> .Rmd </a>
which I think causes it to open in the browser instead of downloading (like how the PDF links currently are). But students can still save/download the file by right-clicking on the link and choose Save Link As...
Would that work?
Hi @cyouh95,
Thank you so much. I just changed all .rmd links on the website and will be posting a note to class so they can right click on the link and save that way.
My sense is that the students I spoke with do not knit lecture slides. While I was helping them on Friday and asking them to knit, they said it worked for them, but it actually knitted to html and not pdf and they didn't recognize the difference. So maybe the ones who have knitted lecture slides have been knitting to html or another format? What do you think @ozanj ?
@cyouh95 @mpatricia01
thanks Crystal for the solution. and thanks Patricia for adding the note to github.
even though not absolutely necessary to knit to beamer, it's probably worth saying a few words about this at the beginning of class [can you do this]. and then you and Diana go around the room again during discussion of problem set to see if students can knit to beamer.
why worth doing this? the learning goal here is for them to understand markdown better for their own work down the road. I don't want students to leave with "it works" but I'm not sure why and I'm not sure what it creates.
Best wishes. ozan.
@ozanj Okay!
@cyouh95 Hey Crystal,
This is the error students are getting when they try to knit the entire lecture slides.
Not sure where the "@@magyar@captionfix" is coming from.
@ozanj
@mpatricia01 @ozanj It looks like this is a known issue in the recent version of TeX. But according to here, maybe they could try adding the following to beamer_header.tex
?
\usepackage{subfig}
\makeatletter
\let\@@magyar@captionfix\relax
\makeatother
Or maybe try updating all their packages?
@mpatricia01 @ozanj (And maybe temporarily delete this part in the .Rmd
file so the changes to beamer_header.tex
don't get reverted!)
download.file(url = 'https://raw.githubusercontent.com/ozanj/rclass/master/lectures/beamer_header.tex',
destfile = '../beamer_header.tex',
mode = 'wb')
@cyouh95 Thank you!
Hi @cyouh95,
We were not able to get students to knit to beamer pdf yesterday. I don't think it is the code you shared with us because I had numerous students download the beamer header tex file from the website and save to their lectures folder and they would still get the same error. Looking back I should have taken a picture of the error message, but I remember it had something to do with LaTeX.
Students were able to knit to html ioslides and slidy just fine.
Another thing, @ozanj and I have noticed is that when .Rmd files are downloaded from the class website, the YAML header is missing. Not sure if that is a github or website thing.
It looks like this where the first code chunk starts on line 1.