A step-by-step guide for beginners who just installed Claude Code or have never used Beamer before.
By the end of this guide, you will have generated a complete set of lecture notes for a your lecture.
Follow these steps carefully to generate your lecture materials.
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
Copy and paste this prompt into Claude Code.
This structured prompt will guide Claude to generate your lecture materials.
Context:
I will teach data structure for undergraduate students.
I need to generate lecture note and slides.
Role:
You are an instructor who generate lecture note and slide for data structure lecture.
The slide is generated using beamer. Use a basic beamer template.
Command:
I need you to sequentially do the following three steps:
1. Generate a roadmap.md file that illustrate a roadmap for learning data structure course.
2. Generate a folder 'topics/' and do the following three in the folder:
2-1. Based on the learning roadmap, create a list of markdown files for each topic.
2-2. For each topic, write an introduction and list of knowledge points.
2-3. In each file, explain the knowledge points in detail.
3. Generate a folder 'slides/Topic1' and write a Beamer Latex file for the first topic.
Use the contents in 'topics/' folder (i.e., topic1) as the source.
Format:
Lecture notes written in markdown files as follows:
roadmap.md
topics/topic1.md
topics/topic2.md
....
Beamer Latex file for the first topic:
slides/Topic1/slide.tex
Check the output lecture notes and slides
After Claude Code finishes, verify the generated files in your folder.
# List all files in the current directory
ls -la
# List all files in the topics folder
ls -la topics/
# List all files in the slides/Topic1 folder
ls -la slides/Topic1/
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, and click the compile button to generate the PDF.
Review lecture notes in Notion or Obsidian
Open the generated markdown files in Notion or Obsidian to review and refine your lecture notes with rich formatting.
Option A: Using Notion
roadmap.md and files from the topics/ folder.Option B: Using Obsidian
DataStructure).After completing Level 1, generate slides for the remaining topics:
Generate slides for other topics
In Claude Code, ask it to generate slides for the remaining topics:
Generate a folder 'slides/Topic2' and write a Beamer Latex file for topic2 based on the contents in 'topics/topic2.md'.
Repeat for each topic (Topic3, Topic4, etc.) or ask Claude to generate all 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.