跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
演示文稿

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 · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

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

技能说明


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.