Generate lecture materials step-by-step, reviewing and refining at each stage for higher quality results.
Unlike Level 1's all-at-once approach, Level 2 teaches you to build lecture materials iteratively — generating, reviewing, and refining each component before moving to the next. You will also learn to use a custom Beamer template for professional-looking slides.
Follow these steps carefully. Review your output at each checkpoint before proceeding.
Create a folder for your course
Create a new folder with your course name. This will be the working directory for Claude Code.
mkdir DataStructure
Open Terminal and navigate to the folder
Use the cd command to change directory to your newly created folder.
cd DataStructure
Execute Claude Code
Start Claude Code in your project folder.
claude
Type the following prompt to generate the roadmap
Start by generating only the roadmap. This lets you review the overall course structure before creating detailed content.
Context:
I will teach datastructure for undergraduate students.
Role:
You are an instructor who generate lecture note.
Command:
Generate a roadmap.md file that illustrate a roadmap for learning data structure course.
Format:
Lecture notes written in markdown files as follows:
roadmap.md
Review the roadmap in Obsidian or Notion
Open roadmap.md using Obsidian or Notion and carefully review the learning roadmap. Check whether all essential topics are covered and remove any topics that don't need to be included in your course.
Option A: Using Obsidian
DataStructure).roadmap.md to preview and edit it.Option B: Using Notion
roadmap.md.roadmap.md manually if there are missing topics or if the roadmap includes content that doesn't need to be covered in your course. The quality of the following steps depends on this roadmap.
Type the following prompt to generate topic files
Now generate detailed lecture notes for each topic based on your reviewed roadmap.
Generate a folder 'topics/' and do the following three in the folder:
1-1. Based on the learning roadmap, create a list of markdown files for each topic.
1-2. For each topic, write an introduction and list of knowledge points.
1-3. In each file, explain the knowledge points in detail.
Outputs:
Lecture notes written in markdown files as follows:
topics/topic1.md
topics/topic2.md
....
Review topic files in Obsidian or Notion
Open the generated topic files using Obsidian or Notion. Review each file carefully and check whether the content is accurate, complete, and appropriate for your students' level.
Using Obsidian: If you already have the vault open, the new topics/ folder will appear automatically in the sidebar. Click each file to review.
Using Notion: Import the topic files via Import → Markdown and select all files from the topics/ folder.
Download a Beamer template from Overleaf
Browse the Overleaf Beamer template gallery and download a template that fits your presentation style.
After downloading, place the template folder inside your course folder and rename it to BeamerTemplate:
# Create the slides directory if it doesn't exist
mkdir -p slides
# Move and rename the downloaded template
mv ~/Downloads/your-template-folder slides/BeamerTemplate
Type the following prompt to generate slides
Generate Beamer slides for the first topic using your custom template and the refined topic content.
Generate a folder 'slides/Topic1' and write a Beamer Latex file for the first topic based on the contents (i.e., topic1) in 'topics/' folder.
The beamer template I will use is placed in the 'slides/BeamerTemplate/' folder.
Outputs:
Beamer Latex file for the first topic:
slides/Topic1/slide.tex
Compile the slide.tex to generate PDF
Convert your Beamer LaTeX file to a PDF presentation.
Option A: Using local LaTeX compiler
If you have LaTeX installed (e.g., TeX Live, MiKTeX), run:
cd slides/Topic1
pdflatex slide.tex
pdflatex twice if your slides contain a table of contents or cross-references.
Option B: Using online LaTeX compilers
If you don't have LaTeX installed locally, use one of these free online compilers:
slide.tex file along with any template files from BeamerTemplate/, and click the compile button to generate the PDF.
After completing Level 2 for the first topic, generate slides for the remaining topics:
Generate slides for other topics
In Claude Code, ask it to generate slides for the remaining topics using the same template:
Generate a folder 'slides/Topic2' and write a Beamer Latex file for topic2 based on the contents in 'topics/topic2.md'.
The beamer template I will use is placed in the 'slides/BeamerTemplate/' folder.
Repeat for each topic, or ask Claude to generate all remaining slides at once:
Generate Beamer slides for all remaining topics. For each topic file in 'topics/', create a corresponding folder in 'slides/' (e.g., slides/Topic2, slides/Topic3, ...) and write a slide.tex file based on the topic content.
The beamer template I will use is placed in the 'slides/BeamerTemplate/' folder.
Understanding when to use each approach.
| Level 1 | Level 2 | |
|---|---|---|
| Approach | All-at-once generation | Iterative, step-by-step |
| Review | After everything is generated | At each stage (roadmap, topics, slides) |
| Template | Default Beamer template | Custom Beamer template |
| Best for | Quick drafts, exploration | Polished, production-ready materials |