Skip to content
OpenAgentSkill
Browsing is open · Catalog captured 2026-11-21 · Automatic updates and account services are paused.
Presentations

sustech-beamer-theme-fix

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.

yhbcode000 · Static checks on file

Installation

Read the source and dependencies before running a command. Copying does not install or execute anything.

npx skills add yhbcode000/paper-share-skills --skill sustech-beamer-theme-fix

About this skill


name: sustech-beamer-theme-fix description: 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.

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.