Communitygithub.com

SUSTech Beamer テーマ \setsource 修正

標準テンプレートから SUSTech Beamer スライドをコンパイルする際に発生する \setsource / \setdomains / \setpresenter / \setvenue コマンドの未定義エラーを修正します。sustech-slides-template リポジトリから拡張版 beamerthemesustech.sty をコピーします。

SUSTech Beamer テーマ \setsource 修正 とは?

このスキルは、SUSTech Beamer スライドテンプレートを使用する際に、`\setsource`、`\setdomains`、`\setpresenter`、`\setvenue` といった制御シーケンスが未定義となり LaTeX コンパイルが失敗する問題を解決します。標準テンプレートに同梱されている `beamerthemesustech.sty` は約60行と簡素で、上記コマンドを定義していないためです。このスキルでは、`sustech-slides-template` リポジトリに含まれる拡張版(100行以上)にファイルを置き換えることで修正を行います。`git clone` と `cp` コマンドを用いた具体的な手順を提供し、初回コンパイル前に適用するよう推奨しています。対応プラットフォームは LaTeX 環境全般(特に latexmk を使用するワークフロー)です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Peytontalismanic424/paper-share-skills/tree/HEAD/sustech-beamer-theme-fix

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

SUSTech Beamer テーマ \setsource 修正 は何をしますか?

問題

標準の slides-template から main.tex を記入し、latexmk -xelatex を実行すると次のエラーが発生します:

! Undefined control sequence.
 l.23 \setsource{...}{...}

また、\setdomains、\setpresenter、\setvenue も同様です。これらは新しいデッキで使用されますが、プレーンなテンプレート版の beamerthemesustech.sty では定義されていません。

根本原因

ベースの beamerthemesustech.sty は約60行で、\mode<all> で終わります。拡張版(sustech-slides-template リポジトリに同梱)は約100行以上にまで及び、以下を含みます:

  • \paperfrom{venue}{year} — ソース行をフォーマット
  • \setsource{venue}{year} — \paperfrom を呼び出す
  • \setdomains{...} — ドメインタグを設定
  • \setpresenter{name} — 発表者名を設定
  • \setvenue{location} — 会場の場所を設定
  • \titlemetaline — タイトルページの下部行をフォーマット

修正方法

拡張マクロは sustech-slides-template リポジトリの sustech-theme/beamerthemesustech.sty に同梱されています。テンプレートをデッキにコピーした後、beamerthemesustech.sty を拡張版に置き換えます。

リポジトリのチェックアウトがすでにある場合:

cp "<TEMPLATE_DIR>/sustech-theme/beamerthemesustech.sty" \
  "<TARGET>/slides-beamer/sustech-theme/beamerthemesustech.sty"

そうでない場合は、まずクローンしてからコピーします:

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"

これを初回コンパイルの前に行ってください。beamerthemesustech-elements.sty と beamercolorthemesustech.sty のファイルはリポジトリテンプレートと参照デッキ間で同一です。拡張マクロを保持しているのは beamerthemesustech.sty のみです。不明な場合は、sustech-theme/ ディレクトリ全体をコピーしてください。

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

Peytontalismanic424/paper-share-skills

Validate and upload narrated paper videos to Bilibili with biliup. Handles required landscape-first/portrait-second submissions, series uploads, CST scheduling, diagnostics, dry-run validation, and durable upload receipts. Trigger on: "upload to bilibili", "bilibili upload", "发布到B站", "上传到B站".

Peytontalismanic424/paper-share-skills

Download the TeX source (e-print tar.gz) of an arXiv paper from an arXiv URL or bare ID, and unpack it into paper_src/. Use FIRST whenever a pipeline input is an arXiv link and the TeX source is preferred over the PDF (paper-to-beamer, paper-to-bilibili, paper-venue-discovery). Invoke with an arXiv URL (abs/pdf/e-print, arxiv.org or export.arxiv.org) or a bare ID like 2509.07996v4.

Peytontalismanic424/paper-share-skills

Convert Beamer PDF slides into a fail-closed narrated MP4 with page-aligned narration, TTS audio, cover, and upload metadata. Trigger on narrated slides, slide video, or paper video requests.

Peytontalismanic424/paper-share-skills

Automated pipeline: paper (PDF or TeX source) → SUSTech Beamer slides (11-section 论文分享 structure) → compiled PDF. When TeX source is available, skip MinerU and extract content directly from LaTeX. Use when the user asks to create Beamer slides from an academic paper, or says "论文分享", "paper to slides", "make beamer from paper". Invoke with an absolute or relative path to a PDF, .tar.gz TeX archive, .tex file, or an arXiv URL/ID (source TeX is downloaded first via skill://paper-download-arxiv-paper-source).

Peytontalismanic424/paper-share-skills

Orchestrate a paper PDF through MinerU, SUSTech Beamer slides, complete Chinese narration, landscape and portrait video, metadata gates, and Bilibili upload. Supports single-paper and batch slides, video, or bilibili phases. Trigger on full paper-to-Bilibili requests, PDF-to-video publication, and batch paper publishing.

Peytontalismanic424/paper-share-skills

Generate a deterministic 16:10 video-cover poster from a paper directory. Extracts paper metadata and figures and atomically produces poster.tex, poster.pdf, and poster.png. Use for paper-video covers, not conference posters.

Peytontalismanic424/paper-share-skills

Convert a PDF (especially academic papers) to clean Markdown using MinerU — preserves reading order, LaTeX equations, tables, and figures, and runs on the GPU. Use when the user asks to convert/extract a PDF to markdown/text. Invoke directly — no need for the user to type the skill name.

関連スキル