Tooluck logoTooluck
SKILL.md

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)

skills/latex-output/SKILL.md

MITFull file
1# LaTeX 输出
2
3负责将论文内容输出为 LaTeX 格式,支持用户提供的学校或期刊模板。
4
5## 使用场景
6
71. 用户明确要求 LaTeX 输出
82. 用户提供了 LaTeX 模板
93. 目标期刊/学校要求 LaTeX 格式
10
11## LaTeX 模板目录
12
13用户可将模板文件放入 `latex-templates/` 目录:
14
15```
16latex-templates/
17├── README.md # 使用说明
18├── template.cls # 模板类文件
19├── template.sty # 模板样式文件
20└── main-template.tex # 模板主文件示例
21```
22
23## Checklist
24
25- [ ] 检查 latex-templates/ 是否有用户模板
26- [ ] 询问用户是否使用该模板
27- [ ] 解析模板结构(章节命令、格式要求)
28- [ ] 根据模板创建 .tex 章节文件
29- [ ] 创建 main.tex 主文件
30- [ ] 创建 references.bib 参考文献文件
31- [ ] 验证可编译性
32
33## 模板解析
34
35### 识别章节命令
36
37常见的章节命令:
38
39```latex
40\chapter{章节名} % 章
41\section{节名} % 节
42\subsection{小节名} % 小节
43\subsubsection{小小节} % 小小节
44```
45
46### 识别特殊环境
47
48```latex
49\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```
55
56## 输出结构
57
58### 使用模板时
59
60```
61论文项目/
62├── latex-templates/ # 原始模板(保持不动)
63├── chapters/ # 章节内容(.tex)
64│ ├── 00-abstract.tex
65│ ├── 01-introduction.tex
66│ ├── 02-literature.tex
67│ └── ...
68├── figures/ # 图片文件
69├── main.tex # 主文件
70├── references.bib # 参考文献
71└── plan/ # 项目计划
72```
73
74### main.tex 模板
75
76```latex
77\documentclass{template} % 或用户模板类
78
79% 导入用户模板的样式
80\usepackage{template}
81
82% 基本设置
83\title{论文题目}
84\author{作者}
85\date{\today}
86
87\begin{document}
88
89\maketitle
90
91% 摘要
92\input{chapters/00-abstract}
93
94% 目录
95\tableofcontents
96
97% 正文章节
98…

Excerpt shown under the repository's MIT license.

More skills in research-writing-skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates