This file explains how to use the
LectureCreator.sh bash shell script.
You define whether the slideshow should be called a Lecture or a Seminar. You also decide what number the file should have.
The script then creates a basic
.Rnw knitr beamer slide show, complete with header, footer, and necessary style files.
I use this script to create lecture and seminar slide shows for an introductory applied stats class that I teach. For me, the numbers correspond to the week that the slideshow is for.
The Lecture Creator consists of a shell script file
LectureCreator.sh and a folder called
CommonFiles. There are three files in the
CommonFiles folder. These are the style files and the basic beamer slide show file. This folder also has a file called
README.Rmd, used to create the explanation you are currently reading.
Set Up & Run
Before running the shell script
LectureCreator.sh on your Linux or Mac machine you must give it the correct permissions. Set your working directory (using the
cd command) to the folder where
LectureCreator.sh is located. On my computer it is in
Now change the permissions so that you can run the shell script:
chmod 755 LectureCreator.sh
Make sure the file has the correct permissions like this:
ls -l LectureCreator.sh
-rwxr-xr-x@ 1 christophergandrud admin 749 Sep 17 17:34 LectureCreator.sh
Everything looks fine.
To run the shell script type:
When you run the script you will be given two prompts:
Do you want to make a Lecture or Seminar? Please enter the lecture number you want to compile.
Simply type in "Lecture" or "Seminar" depending on what you would like to create after the first prompt. Obviously type the number you want to give the slideshow after the second.