Agent SkillsPrismer-AI/Prismer › latex-writing

latex-writing

GitHub

用于创建、编辑和编译LaTeX文档,支持学术论文、论文及报告的排版。涵盖模板生成、公式图表插入、引用管理及编译错误修复,辅助用户完成学术写作与发布。

docker/templates/academic-researcher/skills/latex-writing/SKILL.md Prismer-AI/Prismer

Trigger Scenarios

用户提到LaTeX或.tex文件 需要编译包含公式的学术论文或期刊投稿 请求添加数学公式、图片或参考文献 遇到LaTeX编译错误需要修复

Install

npx skills add Prismer-AI/Prismer --skill latex-writing -g -y
More Options

Non-standard path

npx skills add https://github.com/Prismer-AI/Prismer/tree/main/docker/templates/academic-researcher/skills/latex-writing -g -y

Use without installing

npx skills use Prismer-AI/Prismer@latex-writing

指定 Agent (Claude Code)

npx skills add Prismer-AI/Prismer --skill latex-writing -a claude-code -g -y

安装 repo 全部 skill

npx skills add Prismer-AI/Prismer --all -g -y

预览 repo 内 skill

npx skills add Prismer-AI/Prismer --list

SKILL.md

Frontmatter
{
    "name": "latex-writing",
    "description": "Create, edit, and compile LaTeX documents for academic papers using latex_compile, update_latex, and send_ui_directive tools. Use when the user mentions LaTeX, .tex files, academic writing, typesetting, or needs to compile documents with equations, theses, or journal submissions."
}

LaTeX Writing Skill

Description

Create, edit, and compile LaTeX documents for academic papers, theses, and reports.

Tools Used

  • latex_compile - Compile LaTeX to PDF (auto-switches to LaTeX editor)
  • update_latex - Update LaTeX editor content without compiling
  • send_ui_directive - Send raw UI directives for advanced control

Usage Patterns

Create New Paper

When user says: "Create a new paper about [topic]"

  1. Ask about target venue/format
  2. Create main.tex with appropriate template
  3. Set up bibliography file
  4. Add standard sections (abstract, intro, conclusion)
  5. Compile initial PDF

Add Equation

When user says: "Add the softmax equation"

  1. Identify equation type (inline/display)
  2. Generate LaTeX math code
  3. Insert with appropriate label
  4. Recompile PDF

Add Figure

When user says: "Add a figure showing [description]"

  1. Ask for figure path or create placeholder
  2. Generate figure environment
  3. Add caption and label
  4. Update references
  5. Recompile PDF

Add Citation

When user says: "Cite this paper: [reference]"

  1. Parse reference information
  2. Create BibTeX entry
  3. Insert \cite{} command
  4. Run bibtex + latex

Fix Compilation Errors

When user says: "The LaTeX isn't compiling"

  1. Read error log from latex_compile response's errors field
  2. Identify error location and type (line number, missing package, undefined command)
  3. Apply fix to the LaTeX source
  4. Recompile with latex_compile and verify success: true

Common Templates

IEEE Conference

\documentclass[conference]{IEEEtran}
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{graphicx}
\usepackage{textcomp}

ACM Article

\documentclass[sigconf]{acmart}
\usepackage{booktabs}

CVPR Conference

\documentclass[10pt,twocolumn,letterpaper]{article}
\usepackage[pagenumbers]{cvpr}
\usepackage{times}
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{booktabs}
\usepackage[breaklinks=true,bookmarks=false]{hyperref}

\title{Paper Title}
\author{Author Name\\Institution\\{\tt\small email@example.com}}

\begin{document}
\maketitle
\begin{abstract}
Abstract text here.
\end{abstract}

\section{Introduction}
...
\section{Related Work}
...
\section{Method}
...
\section{Experiments}
...
\section{Conclusion}
...

{\small
\bibliographystyle{ieee_fullname}
\bibliography{references}
}
\end{document}

Thesis

\documentclass[12pt,a4paper]{report}
\usepackage{geometry}
\geometry{margin=1in}

Math Snippets

Equations

  • Inline: $x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$
  • Display: \[ E = mc^2 \]
  • Numbered: \begin{equation}...\end{equation}

Matrices

\begin{bmatrix}
a & b \\
c & d
\end{bmatrix}

Algorithms

\begin{algorithm}
\caption{Algorithm Name}
\begin{algorithmic}
\STATE ...
\end{algorithmic}
\end{algorithm}

Best Practices

  1. Modular Structure: Use \input{} for sections
  2. Consistent Labels: Use prefixes (fig:, tab:, eq:, sec:)
  3. Version Control: Regular saves and snapshots
  4. Error-First: Fix errors before adding content
  5. Preview Often: Compile frequently to catch issues early

Version History

  • 2dbe71f Current 2026-08-20 10:21

Same Skill Collection

docker/config/workspace/skills/prismer-workspace/SKILL.md
docker/plugin/prismer-workspace/skills/arxiv-reader/SKILL.md
docker/plugin/prismer-workspace/skills/find-skills/SKILL.md
docker/plugin/prismer-workspace/skills/formal-methods/SKILL.md
docker/plugin/prismer-workspace/skills/hf-papers/SKILL.md
docker/plugin/prismer-workspace/skills/latex-compiler/SKILL.md
docker/templates/academic-researcher/skills/data-analysis/SKILL.md
docker/templates/academic-researcher/skills/paper-search/SKILL.md
docker/templates/cs-researcher/skills/ml-experiment/SKILL.md
docker/templates/data-scientist/skills/jupyter/SKILL.md
docker/templates/finance-researcher/skills/quant-analysis/SKILL.md
docker/templates/mathematician/skills/theorem-proving/SKILL.md
docker/templates/paper-reviewer/skills/peer-review/SKILL.md
skills/arxiv-reader/SKILL.md
skills/formal-methods/SKILL.md
skills/hf-papers/SKILL.md
skills/latex-compiler/SKILL.md

Metadata

Files
0
Version
2dbe71f
Hash
7852a873
Indexed
2026-08-20 10:21

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 12:55
浙ICP备14020137号-1 $mapa de visitantes$