Level 2

Iterative Lecture Note Generation

Generate lecture materials step-by-step, reviewing and refining at each stage for higher quality results.

📚 What You'll Learn

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.

🛠 Step-by-Step Instructions

Follow these steps carefully. Review your output at each checkpoint before proceeding.

📋
Phase 1: Generate & Review the Roadmap
Create a learning roadmap and refine it before generating detailed content.
1

Create a folder for your course

Create a new folder with your course name. This will be the working directory for Claude Code.

terminal
mkdir DataStructure
💡 Replace DataStructure with your actual course name (e.g., Algorithms, MachineLearning).
2

Open Terminal and navigate to the folder

Use the cd command to change directory to your newly created folder.

terminal
cd DataStructure
3

Execute Claude Code

Start Claude Code in your project folder.

terminal
claude
If this is your first time running Claude Code, it will open your browser for authentication. Log in with your Claude.ai account.
4

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.

prompt
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
Claude Code will ask for permission to create files. Type y or press Enter to allow each action.
5

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

  1. Open Obsidian and choose Open folder as vault.
  2. Select your course folder (e.g., DataStructure).
  3. Click on roadmap.md to preview and edit it.

Option B: Using Notion

  1. Open Notion and create a new page for your course.
  2. Click ImportMarkdown and select roadmap.md.
  3. Review the imported roadmap and edit as needed.
This is a checkpoint! Update 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.
💡 If you use Obsidian, edits are saved directly to the file. If you use Notion, remember to export the updated markdown back to your course folder.
📖
Phase 2: Generate & Review Topic Notes
Create detailed lecture notes for each topic based on your refined roadmap.
6

Type the following prompt to generate topic files

Now generate detailed lecture notes for each topic based on your reviewed roadmap.

prompt
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
....
After this step, you should see:
roadmap.md — Your reviewed roadmap
topics/
  ├── topic1.md — First topic (e.g., Introduction)
  ├── topic2.md — Second topic (e.g., Arrays)
  ├── topic3.md — Third topic (e.g., Linked Lists)
  └── ... — More topic files
7

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 ImportMarkdown and select all files from the topics/ folder.

This is a checkpoint! Update the topic files manually if there are missing knowledge points, incorrect explanations, or content that doesn't match your teaching plan. These files will be used to generate slides in the next phase.
💡 Pay special attention to the depth and accuracy of explanations. Adding examples, diagrams descriptions, or correcting technical details now will result in much better slides.
🎨
Phase 3: Set Up Template & Generate Slides
Choose a Beamer template and generate polished slides from your refined notes.
8

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:

terminal
# 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
Your folder structure should now look like:
roadmap.md
topics/
  ├── topic1.md
  ├── topic2.md
  └── ...
slides/
  └── BeamerTemplate/
      ├── main.tex — Template source
      ├── beamertheme*.sty — Theme files
      └── ... — Other template assets
💡 On Overleaf, click a template, then use Open as TemplateMenuSource to download the ZIP. Extract it into your course folder.
9

Type the following prompt to generate slides

Generate Beamer slides for the first topic using your custom template and the refined topic content.

prompt
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
Claude Code will read your template files and topic content, then generate slides that follow your chosen template's style and structure.
10

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:

terminal
cd slides/Topic1
pdflatex slide.tex
💡 Run 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:

To use online compilers: Create a new project, upload your slide.tex file along with any template files from BeamerTemplate/, and click the compile button to generate the PDF.
After compilation, you should have:
slides/Topic1/
  ├── slide.tex — Source LaTeX file
  ├── slide.pdf — Your presentation!
  ├── slide.aux — Auxiliary file
  └── slide.log — Compilation log
🚀 Next Steps

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:

prompt
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:

prompt
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.
Final folder structure:
roadmap.md
topics/
  ├── topic1.md
  ├── topic2.md
  ├── topic3.md
  └── ...
slides/
  ├── BeamerTemplate/ → Your chosen template
  ├── Topic1/slide.tex, slide.pdf
  ├── Topic2/slide.tex, slide.pdf
  ├── Topic3/slide.tex, slide.pdf
  └── ...
💡 Level 1 vs Level 2

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