latex-output
Agent skill fromNorman-bury/research-writing-skill
Use when user requests LaTeX format output or has provided school/journal LaTeX templates
How to install latex-output
install latex-output
# install the research-writing-skill pack with the skills CLI
npx skills add Norman-bury/research-writing-skill# or add only this skill to Claude Code: copy the folder
skills/latex-output/
# into
~/.claude/skills/latex-output/ (all projects)
.claude/skills/latex-output/ (one project)
1# LaTeX 输出23负责将论文内容输出为 LaTeX 格式,支持用户提供的学校或期刊模板。45## 使用场景671. 用户明确要求 LaTeX 输出82. 用户提供了 LaTeX 模板93. 目标期刊/学校要求 LaTeX 格式1011## LaTeX 模板目录1213用户可将模板文件放入 `latex-templates/` 目录:1415```16latex-templates/17├── README.md # 使用说明18├── template.cls # 模板类文件19├── template.sty # 模板样式文件20└── main-template.tex # 模板主文件示例21```2223## Checklist2425- [ ] 检查 latex-templates/ 是否有用户模板26- [ ] 询问用户是否使用该模板27- [ ] 解析模板结构(章节命令、格式要求)28- [ ] 根据模板创建 .tex 章节文件29- [ ] 创建 main.tex 主文件30- [ ] 创建 references.bib 参考文献文件31- [ ] 验证可编译性3233## 模板解析3435### 识别章节命令3637常见的章节命令:3839```latex40\chapter{章节名} % 章41\section{节名} % 节42\subsection{小节名} % 小节43\subsubsection{小小节} % 小小节44```4546### 识别特殊环境4748```latex49\begin{abstract}...\end{abstract} % 摘要50\begin{keywords}...\end{keywords} % 关键词51\begin{figure}...\end{figure} % 图片52\begin{table}...\end{table} % 表格53\begin{equation}...\end{equation} % 公式54```5556## 输出结构5758### 使用模板时5960```61论文项目/62├── latex-templates/ # 原始模板(保持不动)63├── chapters/ # 章节内容(.tex)64│ ├── 00-abstract.tex65│ ├── 01-introduction.tex66│ ├── 02-literature.tex67│ └── ...68├── figures/ # 图片文件69├── main.tex # 主文件70├── references.bib # 参考文献71└── plan/ # 项目计划72```7374### main.tex 模板7576```latex77\documentclass{template} % 或用户模板类7879% 导入用户模板的样式80\usepackage{template}8182% 基本设置83\title{论文题目}84\author{作者}85\date{\today}8687\begin{document}8889\maketitle9091% 摘要92\input{chapters/00-abstract}9394% 目录95\tableofcontents9697% 正文章节98…
Excerpt shown under the repository's MIT license.
