AgentSkillsCN

beamer-presentations

当用户要求“制作幻灯片”、“制作演示文稿”、“准备幻灯片”、“制作 PPT”、“生成 Beamer”,或在学术演示中使用 LaTeX Beamer 时,应使用此技能。提供 UNI 品牌模板,并实现幻灯片的自动化生成。

SKILL.md
--- frontmatter
name: beamer-presentations
description: This skill should be used when the user asks to "create slides", "make a presentation", "preparar diapositivas", "hacer PPT", "generate beamer", or work with LaTeX Beamer for academic presentations. Provides UNI-branded template and automated slide generation.

Beamer Presentations

Create academic presentations using the Universidad Nacional de Ingeniería (UNI) custom Beamer template.

Template Location

The template is bundled in this skill at:

code
${CLAUDE_PLUGIN_ROOT}/skills/beamer-presentations/UNI Beamer Template/

Quick Start

1. Copy Template to Project

bash
cp -r "${CLAUDE_PLUGIN_ROOT}/skills/beamer-presentations/UNI Beamer Template" ./slides
cd slides

2. Edit Metadata

In example_main.tex, update:

latex
\title{Your Title}
\subtitle{Subtitle}
\course{Course Name}
\author{Your Name}
\date{\today}

3. Compile

bash
latexmk -pdf example_main.tex

Or use the Makefile if available:

bash
make pdf

Template Features

  • Aspect ratio: 16:9 (modern widescreen)
  • Main color: RGB(154,0,0) - UNI Maroon
  • Theme modes: \themecolor{white} or \themecolor{main}
  • Code highlighting: Built-in lstlisting support

Special Commands

CommandPurpose
\course{Name}Display course name on title slide
\backmatterGenerate "Gracias por escucharme!" closing slide
\titlebackground*{path}Set custom title slide background
\themecolor{main}Use maroon theme for slide
\themecolor{white}Use white theme for slide

Slide Structure

Basic Frame

latex
\begin{frame}
\frametitle{Title}
Content here...
\end{frame}

Progressive Animations

Items (appear one by one):

latex
\begin{itemize}
    \item<1-> First point (appears on click 1)
    \item<2-> Second point (appears on click 2)
    \item<3-> Third point (appears on click 3)
\end{itemize}

Blocks:

latex
\onslide<2->{
\begin{block}{Important}
    This block appears on click 2
\end{block}
}

Tables (CRITICAL: use \visible, NOT \onslide):

latex
\begin{tabular}{ll}
Header 1 & Header 2 \\
\hline
\visible<2->{Row 1 Col 1} & \visible<2->{Row 1 Col 2} \\
\visible<3->{Row 2 Col 1} & \visible<3->{Row 2 Col 2} \\
\end{tabular}

Code Listings

latex
\begin{frame}[fragile]  % fragile is REQUIRED for code!
\frametitle{Code Example}
\begin{lstlisting}[language=Python, backgroundcolor=\color{codegray}]
def hello():
    return "world"
\end{lstlisting}
\end{frame}

Supported languages: Python, Java, C++, JavaScript, SQL, and more.

Common Errors and Fixes

ErrorCauseFix
xeCJK.sty not foundCJK package not installedRemove \usepackage{xeCJK}
Unicode char not set upUsing μ, α, etc. directlyUse LaTeX: $\mu$, $\alpha$
Misplaced \noalignUsing \onslide in tablesUse \visible{} instead
Missing \begin{document}Syntax error before documentCheck for typos in preamble

Packages to Avoid

These conflict with the UNI theme:

  • xeCJK - causes font errors
  • babel with multiple languages - conflicts with theme
  • geometry - already configured in theme

Workflow for Claude

When asked to create a presentation:

  1. Copy template to project directory
  2. Generate content based on user's topic
  3. Structure slides with proper LaTeX syntax
  4. Use animations sparingly for emphasis
  5. Compile and verify no errors
  6. Iterate based on user feedback

File Structure

code
UNI Beamer Template/
├── beamer_template.tex    # Base template file
├── beamerthemesintef.sty  # Theme styling
├── sintefcolor.sty        # Color definitions
├── example_main.tex       # Example presentation
├── assets/                # Images and backgrounds
└── LICENSE                # MIT license

Tips for Great Presentations

  1. One idea per slide - Don't overcrowd
  2. Use visuals - Diagrams > text
  3. Consistent animations - Pick one style
  4. Test compilation - Compile after each major change
  5. Keep bullets short - Max 6 words per bullet