pacific-hake / hake-assessment

:zap: :fish: Build the assessment document using latex and knitr
MIT License
13 stars 6 forks source link

How to compile the presentations on the server #1027

Closed cgrandin closed 1 year ago

cgrandin commented 1 year ago

I got all of the presentations to compile, they just need work on content. The Data presentation hardly needs any work at all, the Sensitivity one needs a lot.

For whichever presentation you're working on do the following, here it is assumed to be the Assessment presentation:

Open the beamer/SRG/Assessment/beamer-hake-assessment.rnw file In R, setwd() to the same directory and:

knitr::knit("beamer-hake-assessment.rnw")

Then open a terminal and go to the same directory and run:

lualatex beamer-hake-assessment.tex

Open in the document browser. Sometimes the bottom will look cut off a little, if you press F11 you'll see that it isn't.

To make faster progress (for example when moving legends around a little on one figure), In the file explorer go to the knitr-cache sub directory and open up the image of the chunk name figure you are working on, and make it fullscreen. Leave it open. Run the knit command only after changing one small thing (or anything) and go back to the image and watch it change. No need to close and reopen it.

If you do that, it is super fast. Re-compile the whole presentation after finishing each slide and check it. No need to close that either.

To add the next slide, copy and paste the commented-out slides, one by one from below the \end{document} tag, paste them above it, uncomment and edit as above.

Use the first few slides in the assessment presentation as a guide for the legend font sizes and placement, etc.

cgrandin commented 1 year ago

Also, to clean up the directory by removing all compile files, do this: ./clean This will also remove the knitr-cache and figures directories and all their contents.

The figures directory contains all the PDF figures which were converted from PNG by the Latex epstop package during the build.