sustech-beamer-theme-fix
Skill43 starsChanged 4 months agoApache-2.0View on GitHub
Fix for undefined \setsource/\setdomains/\setpresenter/\setvenue commands when compiling SUSTech Beamer slides from the standard template. Copy the extended beamerthemesustech.sty from the sustech-slides-template repository.
In this repository7 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
When filling main.tex from the standard slides-template, latexmk -xelatex fails with:
- Distinctive: line 31
If you already have a checkout of the repository:
- Very specific: line 46
Do this BEFORE first compile.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SUSTech Beamer Theme \setsource Fix
Problem
When filling main.tex from the standard slides-template, latexmk -xelatex fails with:
! Undefined control sequence.
l.23 \setsource{...}{...}Also: \setdomains, \setpresenter, \setvenue. These are used by newer decks but NOT defined in the plain template version of beamerthemesustech.sty.
Root cause
The base beamerthemesustech.sty is ~60 lines, ending with \mode<all>. The extended version (shipped in the sustech-slides-template repository) continues to ~100+ lines with:
\paperfrom{venue}{year}— formats the source line\setsource{venue}{year}— calls\paperfrom\setdomains{...}— sets domain tags\setpresenter{name}— sets presenter name\setvenue{location}— sets venue location\titlemetaline— formats the title page bottom line
Fix
The extended macros ship in the sustech-slides-template repository at sustech-theme/beamerthemesustech.sty. After copying the template into your deck, replace beamerthemesustech.sty with the extended version.
If you already have a checkout of the repository:
cp "<TEMPLATE_DIR>/sustech-theme/beamerthemesustech.sty" \
"<TARGET>/slides-beamer/sustech-theme/beamerthemesustech.sty"Otherwise clone it first, then copy:
git clone --depth 1 https://github.com/yhbcode000/sustech-slides-template.git <TEMPLATE_DIR>
cp "<TEMPLATE_DIR>/sustech-theme/beamerthemesustech.sty" \
"<TARGET>/slides-beamer/sustech-theme/beamerthemesustech.sty"Do this BEFORE first compile. The beamerthemesustech-elements.sty and beamercolorthemesustech.sty files are identical between the repository template and the reference deck — only beamerthemesustech.sty carries the extended macros; when in doubt, copy the whole sustech-theme/ directory.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

