Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问clear审计通过

latex-handouts乳胶讲义

Agent Skill

latex-handouts 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

29,406

周安装

718

GitHub Stars

28

下载量

8,558
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:latex-handouts(乳胶讲义)
来源仓库:https://github.com/rhuss/cc-slidev
仓库路径:skills/latex-handouts
安装命令:
npx skills add https://github.com/rhuss/cc-slidev --skill 'LaTeX Handouts'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/rhuss/cc-slidev --skill 'LaTeX Handouts'

简介

用于查找、检索和筛选相关信息。latex-handouts 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库和原始 README 进一步核验用法。
  • 安装前建议确认权限范围和维护状态。
  • 注意是否会触发联网、命令执行或文件读写操作。

SKILL.md

LaTeX Handouts

LaTeX provides professional typesetting for presentation handouts that combine slide images, presenter notes, and supplementary research into comprehensive reference documents.

Dependency Checking

Before generating handouts, check dependencies using:

${CLAUDE_PLUGIN_ROOT}/scripts/check-handout-deps.sh

Exit codes:

  • 0: All dependencies available (full handout with images and rich formatting)
  • 1: pdflatex missing (BLOCKER - cannot generate handout)
  • 2: LaTeX packages missing (use basic formatting)
  • 3: Playwright missing (text-only handout)

Graceful Degradation Strategies

When LaTeX packages unavailable (exit code 2):

  • Skip \usepackage{tcolorbox} and \usepackage{enumitem} in preamble
  • Use standard LaTeX boxes instead of tcolorbox
  • Use default enumerate/itemize instead of enumitem
  • Result: Basic but functional handout

When Playwright unavailable (exit code 3):

  • Skip slide PNG export entirely
  • Omit \begin{figure}...\end{figure} blocks for slide images
  • Still include all prose paragraphs (Overview, Key Considerations, Technical Details)
  • Still include all Further Reading links
  • Result: Text-only reference document (still valuable)

When pdflatex unavailable (exit code 1):

  • Cannot generate PDF handout
  • Offer to create.tex file for user to compile later
  • Provide installation instructions

Handout Writing Principles

Critical: Handouts should be comprehensive standalone documents, not just copies of slides.

Content Requirements

DO:

  • Write in complete prose paragraphs (2-4 sentences minimum)
  • Expand on slide content - explain concepts in detail
  • Add context - WHY things matter, HOW they work
  • Include researched URLs - 3-5 quality resources per section
  • Provide examples - real-world applications and use cases
  • Explain trade-offs - discuss implications and alternatives
  • Make it standalone - reader understands without attending presentation

DON'T:

  • Copy bullet points from slides verbatim
  • Write generic descriptions
  • Use slide content as handout content
  • Skip research for further reading
  • Assume reader attended presentation

Writing Style

For each slide, write:

  1. Overview paragraph (2-4 sentences)

- Transform slide bullets into flowing narrative - Explain the concept in complete detail - Provide context and connections

  1. Key Considerations paragraph (2-4 sentences)

- Discuss implications and trade-offs - Explain WHY it matters - Provide real-world examples

  1. Technical Details paragraph (if applicable)

- Explain HOW things work (not just WHAT) - Code explanations in prose - Architecture decisions and reasoning

  1. Further Reading list (3-5 URLs)

- Official documentation - Authoritative articles - Tutorials and guides - Each with specific description of value

Document Structure

Basic Handout Template

\documentclass[11pt,a4paper]{article}

% Essential packages
\usepackage[utf8]{inputenc}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{fancyhdr}

% Document metadata
\title{Presentation Title}
\author{Author Name}
\date{\today}

% Header/footer setup
\pagestyle{fancy}
\fancyhead[L]{Presentation Title}
\fancyhead[R]{\thepage}
\fancyfoot[C]{}

\begin{document}

\maketitle
\tableofcontents
\newpage

% Content sections
\section{Introduction}
Content here...

\end{document}

Document Classes

article - Standard documents

  • Best for: Short handouts (1-20 pages)
  • Features: Simple structure, no chapters
  • Use when: Single presentation handout

report - Longer documents

  • Best for: Extended handouts (20+ pages)
  • Features: Chapters supported, more structure
  • Use when: Multi-session course materials

scrartcl/scrreprt - KOMA-Script alternatives

  • Best for: Modern, customizable layouts
  • Features: Better typography, more options
  • Use when: Advanced formatting needed

Essential Packages

Graphics and Images

\usepackage{graphicx}  % Include images
\usepackage{float}     % Better float positioning

% Usage
\begin{figure}[H]
  \centering
  \includegraphics[width=0.8\textwidth]{slide-01.pdf}
  \caption{Introduction Slide}
  \label{fig:intro}
\end{figure}

Layout and Formatting

\usepackage[margin=1in]{geometry}  % Page margins
\usepackage{multicol}              % Multiple columns
\usepackage{parskip}               % Paragraph spacing
\usepackage{setspace}              % Line spacing

% Multi-column sections
\begin{multicols}{2}
  Content in two columns
\end{multicols}

Hyperlinks and References

\usepackage{hyperref}

% Configuration
\hypersetup{
    colorlinks=true,
    linkcolor=blue,
    filecolor=magenta,
    urlcolor=cyan,
    citecolor=green
}

% Usage
\href{https://example.com}{Link text}
\url{https://example.com}

Code Listings

\usepackage{listings}
\usepackage{xcolor}

% Configuration
\lstset{
    basicstyle=\ttfamily\small,
    keywordstyle=\color{blue},
    commentstyle=\color{green},
    stringstyle=\color{red},
    frame=single,
    breaklines=true
}

% Usage
\begin{lstlisting}[language=Python]
def hello():
    print("Hello, World!")
\end{lstlisting}

Bibliography

\usepackage[backend=biber,style=apa]{biblatex}
\addbibresource{references.bib}

% In document
\cite{key}

% At end
\printbibliography

Heading Hierarchy

Use semantic heading levels rigorously and consistently:

  • \section{} - Major document divisions (Introduction, Presentation Content, Summary, Additional Resources)
  • \subsection{} - Topic sections within presentation (matches slide deck sections/chapters)
  • \subsubsection{} - Individual slide titles (each slide gets its own subsubsection heading)
  • \paragraph{} - Content subdivisions within slides (Overview, Key Considerations, Technical Details, Further Reading)

Rules:

  • Never skip heading levels (don't go from \section{} to \subsubsection{})
  • Use headings for semantic structure, not just visual formatting
  • Keep heading text descriptive and assertion-based
  • Each slide must have its own \subsubsection{} heading

Handout Patterns

Comprehensive Slide Documentation (RECOMMENDED)

Modern handout format with PNG slides and prose explanations:

\section{Topic Name}

\subsubsection{Specific Slide Title (Assertion Form)}

\begin{figure}[H]
  \centering
  \fbox{\includegraphics[width=0.72\textwidth]{exports/slide-005.png}}
  \caption{Specific Slide Title}
\end{figure}

\paragraph{Overview:}
This section introduces the core concept of container orchestration in distributed systems.
Kubernetes provides declarative configuration management, allowing operators to specify desired
state rather than imperative commands. The reconciliation loop continuously monitors actual
state and makes adjustments to match the declared configuration, providing self-healing
capabilities automatically.

\paragraph{Key Considerations:}
The declarative approach fundamentally changes operational practices compared to traditional
imperative automation. When configuration drift occurs, the system automatically corrects it
without human intervention. This is particularly valuable in large-scale deployments where
manual intervention becomes impractical. However, it requires careful design of resource
specifications and understanding of reconciliation behavior during failures.

\paragraph{Technical Details:}
The control loop pattern uses three key components: controllers watch the API server for
changes, compare current state to desired state, and issue commands to reconcile differences.
Each controller operates independently, managing specific resource types. This distributed
control model provides scalability and fault tolerance, as controller failures don't cascade
across the system.

\paragraph{Further Reading:}
\begin{itemize}
  \item \href{https://kubernetes.io/docs/concepts/architecture/controller/}{Kubernetes Controllers} -
        Official documentation explaining control loop patterns and reconciliation
  \item \href{https://www.oreilly.com/library/view/programming-kubernetes/9781492047094/}{Programming Kubernetes} -
        In-depth guide to writing custom controllers and operators
  \item \href{https://speakerdeck.com/thockin/kubernetes-what-is-reconciliation}{What is Reconciliation?} -
        Tim Hockin's presentation on reconciliation patterns
\end{itemize}

\vspace{0.5cm}

\newpage

WRONG: Bullet Point Copy (DON'T DO THIS)

Bad handout - just copies slide bullets:

\subsection{Slide Content}
\begin{figure}[H]
  \includegraphics[width=0.9\textwidth]{slide.png}
\end{figure}

\subsection{Notes}
Key points:
\begin{itemize}
  \item Declarative configuration
  \item Reconciliation loops
  \item Self-healing
\end{itemize}

Additional info:
\begin{itemize}
  \item Useful for large deployments
  \item See Kubernetes docs
\end{itemize}

Why this is bad:

  • Just copies bullets from slide (no value added)
  • Generic descriptions ("useful", "see docs")
  • No explanation of HOW or WHY
  • Not standalone (requires attending presentation)
  • Links without context

Multi-Slide Grid

Show multiple slides per page:

\begin{figure}[H]
  \centering
  \begin{minipage}{0.45\textwidth}
    \centering
    \includegraphics[width=\textwidth]{slide-01.pdf}
    \caption{Slide 1}
  \end{minipage}
  \hfill
  \begin{minipage}{0.45\textwidth}
    \centering
    \includegraphics[width=\textwidth]{slide-02.pdf}
    \caption{Slide 2}
  \end{minipage}
\end{figure}

Two-Column Layout

Content alongside images:

\begin{multicols}{2}
  \noindent
  \textbf{Key Concepts:}
  \begin{itemize}
    \item Concept 1
    \item Concept 2
  \end{itemize}

  \columnbreak

  \begin{figure}[H]
    \centering
    \includegraphics[width=\linewidth]{diagram.pdf}
  \end{figure}
\end{multicols}

Image Embedding

Slide Images

IMPORTANT: All slide images in handouts should have black borders using \fbox{} to clearly delineate the slide boundaries.

Export slides as PNG for handouts:

% Single slide
\includegraphics[width=0.8\textwidth]{exports/slides.pdf}

% Specific page from multi-page PDF
\includegraphics[page=5,width=0.8\textwidth]{exports/slides.pdf}

% With black border (recommended for handouts)
\fbox{\includegraphics[width=0.72\textwidth]{slide.png}}

Size Control

% By width (maintains aspect ratio)
\includegraphics[width=0.8\textwidth]{image.pdf}

% By height
\includegraphics[height=6cm]{image.pdf}

% Scale factor
\includegraphics[scale=0.5]{image.pdf}

% Exact dimensions (distorts if wrong ratio)
\includegraphics[width=10cm,height=6cm]{image.pdf}

Positioning

% Centered
\begin{center}
  \includegraphics[width=0.7\textwidth]{image.pdf}
\end{center}

% In figure environment (with caption)
\begin{figure}[htbp]
  \centering
  \includegraphics[width=0.7\textwidth]{image.pdf}
  \caption{Descriptive caption}
  \label{fig:label}
\end{figure}

% Position codes:
% h - here
% t - top of page
% b - bottom of page
% p - separate page
% ! - override restrictions
% H - HERE (requires float package)

Document Formatting

Title Page

\begin{titlepage}
  \centering
  \vspace*{2cm}

  {\Huge\bfseries Presentation Title\par}
  \vspace{1cm}
  {\Large Subtitle or Topic\par}
  \vspace{2cm}
  {\Large\itshape Author Name\par}
  \vspace{1cm}
  {\large\today\par}

  \vfill
  {\large Organization Name\par}
  \vspace{0.5cm}
  \includegraphics[width=0.3\textwidth]{logo.pdf}
\end{titlepage}

Table of Contents

\tableofcontents
\newpage

% Depth control (default 3)
\setcounter{tocdepth}{2}  % Show up to subsections

Headers and Footers

\usepackage{fancyhdr}
\pagestyle{fancy}

% Clear defaults
\fancyhf{}

% Left header
\fancyhead[L]{Presentation Title}

% Right header
\fancyhead[R]{Author Name}

% Center footer
\fancyfoot[C]{\thepage}

% Right footer
\fancyfoot[R]{\today}

% Line width
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}

Section Formatting

\usepackage{titlesec}

% Customize section appearance
\titleformat{\section}
  {\Large\bfseries\color{blue}}
  {\thesection}
  {1em}
  {}

% Spacing around sections
\titlespacing*{\section}{0pt}{2ex}{1ex}

Advanced Features

Boxes and Highlighting

\usepackage{tcolorbox}

% Simple box
\begin{tcolorbox}[colback=blue!5,colframe=blue!40!black,title=Key Point]
  Important information here
\end{tcolorbox}

% Warning box
\begin{tcolorbox}[colback=yellow!10,colframe=orange!80!black,title=Note]
  Something to remember
\end{tcolorbox}

Tables

\begin{table}[H]
  \centering
  \begin{tabular}{|l|c|r|}
    \hline
    \textbf{Header 1} & \textbf{Header 2} & \textbf{Header 3} \\
    \hline
    Row 1 & Data & 123 \\
    Row 2 & More data & 456 \\
    \hline
  \end{tabular}
  \caption{Table caption}
  \label{tab:example}
\end{table}

Footnotes and Margin Notes

% Footnote
This is important\footnote{Additional details in footnote}.

% Margin note
\marginpar{Side note}

Page Breaks

\newpage          % Start new page
\clearpage        % Start new page, flush floats
\pagebreak        % Break page (if possible)
\nopagebreak      % Prevent page break

Handout Organization

Section Structure

\section{Introduction}
% Overview and objectives

\section{Main Content}
\subsection{Topic 1}
% Slide + notes + context

\subsection{Topic 2}
% Slide + notes + context

\section{Conclusion}
% Summary and takeaways

\section{Additional Resources}
% References, links, further reading

\section{Appendix}
% Extra materials, code samples

Reference Lists

\section{References and Resources}

\subsection{Key Papers}
\begin{itemize}
  \item Smith, J. (2023). \textit{Important Paper}. Journal Name.
  \item Jones, A. (2022). \textit{Another Study}. Conference Proceedings.
\end{itemize}

\subsection{Online Resources}
\begin{itemize}
  \item \href{https://example.com}{Resource Name} - Description
  \item \href{https://tutorial.com}{Tutorial Site} - Learning materials
\end{itemize}

\subsection{Tools and Software}
\begin{itemize}
  \item Tool Name - \url{https://tool.com}
  \item Library Name - \url{https://github.com/user/repo}
\end{itemize}

Compilation

Basic Compilation

pdflatex handout.tex

With Bibliography

pdflatex handout.tex
bibtex handout
pdflatex handout.tex
pdflatex handout.tex

Modern Toolchain

# Using latexmk (automatic)
latexmk -pdf handout.tex

# Clean auxiliary files
latexmk -c

Common Issues

Image Not Found

Ensure correct path:

% Relative to .tex file
\includegraphics{./images/slide.pdf}

% Tell LaTeX where to look
\graphicspath{{./images/}{./exports/}}

Float Positioning

Images not appearing where expected:

% Force HERE
\usepackage{float}
\begin{figure}[H]  % Capital H
  ...
\end{figure}

% Or allow more flexibility
\begin{figure}[htbp!]
  ...
\end{figure}

Text Overflow

Long URLs or code breaking margins:

% For URLs
\usepackage{url}
\url{https://very-long-url.com}

% For code
\begin{lstlisting}[breaklines=true]
  long code here
\end{lstlisting}

Special Characters

LaTeX special characters need escaping:

% These need backslash
\$ \% \& \# \_ \{ \}

% Or use verb
\verb|$special_chars|

% For code, use lstlisting

Best Practices

Slide Image Formatting

REQUIRED:

  • All slide images MUST use \fbox{} for black borders
  • Use width of 0.72\textwidth to account for border width
  • Center slides with \centering in figure environment
  • Always include descriptive captions

Example:

\begin{figure}[H]
  \centering
  \fbox{\includegraphics[width=0.72\textwidth]{exports/slide-001.png}}
  \caption{Descriptive Slide Title}
  \label{fig:slide1}
\end{figure}

Heading Structure

REQUIRED:

  • Use semantic heading hierarchy rigorously
  • Never skip heading levels
  • Each slide gets its own \subsubsection{} heading
  • Use \paragraph{} for content subdivisions within slides
  • Keep heading text assertion-based and descriptive

File Organization

presentation/
├── handout.tex         # Main document
├── handout.pdf         # Compiled output
├── references.bib      # Bibliography
├── images/             # Diagrams, logos
├── slides/             # Individual slide PDFs
└── exports/            # Slide deck exports

Template Reuse

Create reusable section templates:

% template.tex
\newcommand{\slideandnotes}[4]{
  \subsection{#1}

  \begin{figure}[H]
    \centering
    \includegraphics[width=0.9\textwidth]{#2}
    \caption{#3}
  \end{figure}

  \subsubsection{Notes}
  #4

  \newpage
}

% Usage
\slideandnotes{Topic Name}{slides/slide-05.pdf}{Caption}{
  Notes and additional context here.
}

Version Control

Comment versions in document:

% Version 1.0 - 2024-01-15 - Initial draft
% Version 1.1 - 2024-01-20 - Added section 3
% Version 2.0 - 2024-01-25 - Final revision

% Or use git info
\usepackage{gitinfo2}

Accessibility

% PDF metadata
\hypersetup{
    pdftitle={Presentation Handout},
    pdfauthor={Author Name},
    pdfsubject={Topic},
    pdfkeywords={keyword1, keyword2},
    pdfproducer={LaTeX},
    pdfcreator={pdflatex}
}

% Alt text for images
\includegraphics{image.pdf}
% Described in caption or surrounding text

Quick Reference

Minimal Handout

\documentclass{article}
\usepackage{graphicx}
\usepackage{hyperref}
\title{Handout Title}
\author{Author}
\date{\today}

\begin{document}
\maketitle

\section{Introduction}
Content...

\end{document}

Common Commands

\section{Title}          % Section
\subsection{Title}       % Subsection
\textbf{bold}           % Bold
\textit{italic}         % Italic
\underline{text}        % Underline
\newpage                % Page break
\vspace{1cm}            % Vertical space
\hspace{1cm}            % Horizontal space

For comprehensive LaTeX documentation, consult The LaTeX Project (https://www.latex-project.org/) and Overleaf documentation (https://www.overleaf.com/learn).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.74%
按下载量换算2,288

windsurf

25.87%
按下载量换算2,214

trae

19.56%
按下载量换算1,674

OpenCode

13.3%
按下载量换算1,138

Codex

7.82%
按下载量换算669

Antigravity

3.28%
按下载量换算281

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源字段存在多来源差异,先按来源优先级自动处理,无法消解时进入异常复核队列。

来源信息

继续浏览同类 Skills