init-latex-project
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInitialize LaTeX Academic Project
初始化LaTeX学术项目
Set up a complete LaTeX academic paper project from the standard template.
基于标准模板搭建完整的LaTeX学术论文项目。
Skill Directory Layout
技能目录结构
<installed-skill-dir>/
├── SKILL.md
├── sources.yaml # Authoritative download sources per venue (verified)
├── templates/
│ ├── macros.tex # Full math macro library
│ ├── main.tex # Generic arXiv/whitepaper template
│ ├── CLAUDE.md # Writing rules for AI agents
│ └── venues/
│ ├── icml/main.tex # ICML two-column template
│ ├── acl/main.tex # ACL/*ACL single-column template
│ ├── emnlp/main.tex # EMNLP (same acl.sty as ACL)
│ ├── naacl/main.tex # NAACL (same acl.sty as ACL)
│ ├── iccv/main.tex # ICCV two-column template
│ ├── eccv/main.tex # ECCV single-column (Springer LNCS)
│ ├── neurips/main.tex # NeurIPS single-column template
│ ├── iclr/main.tex # ICLR single-column template
│ ├── cvpr/main.tex # CVPR two-column template
│ └── acm/main.tex # ACM SIGCONF template
└── scripts/
└── init.sh # Builds project + downloads official style files<installed-skill-dir>/
├── SKILL.md
├── sources.yaml # 各会议权威下载源(已验证)
├── templates/
│ ├── macros.tex # 完整数学宏包库
│ ├── main.tex # 通用arXiv/白皮书模板
│ ├── CLAUDE.md # AI Agent写作规则
│ └── venues/
│ ├── icml/main.tex # ICML双栏模板
│ ├── acl/main.tex # ACL/*ACL单栏模板
│ ├── emnlp/main.tex # EMNLP(与ACL使用相同的acl.sty)
│ ├── naacl/main.tex # NAACL(与ACL使用相同的acl.sty)
│ ├── iccv/main.tex # ICCV双栏模板
│ ├── eccv/main.tex # ECCV单栏模板(Springer LNCS格式)
│ ├── neurips/main.tex # NeurIPS单栏模板
│ ├── iclr/main.tex # ICLR单栏模板
│ ├── cvpr/main.tex # CVPR双栏模板
│ └── acm/main.tex # ACM SIGCONF模板
└── scripts/
└── init.sh # 构建项目并下载官方样式文件How venue_preamble.tex works
venue_preamble.tex 的工作原理
Every venue template uses instead of a hardcoded
. downloads the official / files
from the venue's authoritative source (see ), detects the actual
filename, and writes automatically.
\input{venue_preamble}\usepackage{neurips_<year>}init.sh.sty.bstsources.yamlvenue_preamble.texproject/
├── main.tex ← \input{venue_preamble} (stable, never changes)
├── venue_preamble.tex ← generated by init.sh (edit here to change mode)
├── neurips_<year>.sty ← downloaded from neurips.cc
└── ...To switch submission mode (e.g., anonymous → camera-ready), only edit
— never needs to change.
venue_preamble.texmain.tex每个会议模板都使用 而非硬编码的 。 会从会议的权威源(详见)下载官方/文件,检测实际文件名,并自动生成。
\input{venue_preamble}\usepackage{neurips_<year>}init.shsources.yaml.sty.bstvenue_preamble.texproject/
├── main.tex ← \input{venue_preamble} (稳定,无需修改)
├── venue_preamble.tex ← 由init.sh生成(可在此编辑切换提交模式)
├── neurips_<year>.sty ← 从neurips.cc下载
└── ...如需切换提交模式(例如:匿名版→终稿版),仅需编辑 —— 无需任何改动。
venue_preamble.texmain.texSteps to Follow
操作步骤
1. Parse $ARGUMENTS
$ARGUMENTS1. 解析$ARGUMENTS
参数
$ARGUMENTS| Position/Flag | Meaning | Required |
|---|---|---|
| First word | Project name | Yes |
| Second word | Target directory (default: current dir) | No |
| Conference venue | No |
| Initialize git repo | No |
| Skip style-file download (creates placeholder venue_preamble.tex) | No |
Supported venues (by deadline month):
| Venue | Month | Style | Source |
|---|---|---|---|
| Jan | two-column | icml.cc |
| Feb | single-column | github.com/acl-org/acl-style-files |
| Mar (biennial, odd) | two-column | CVF / iccv.thecvf.com |
| Mar (biennial, even) | single-column (LNCS) | github.com/paolo-favaro/paper-template |
| May | single-column | neurips.cc |
| May | single-column | github.com/acl-org/acl-style-files |
| Sep | single-column | github.com/ICLR/Master-Template |
| Nov | two-column | github.com/cvpr-org/author-kit |
| Dec | single-column | github.com/acl-org/acl-style-files |
| varies | single-column | CTAN (pre-installed) |
| 位置/标志 | 含义 | 是否必填 |
|---|---|---|
| 第一个单词 | 项目名称 | 是 |
| 第二个单词 | 目标目录(默认:当前目录) | 否 |
| 目标会议 | 否 |
| 初始化git仓库 | 否 |
| 跳过样式文件下载(生成占位符venue_preamble.tex) | 否 |
支持的会议(按截止月份排序):
| 会议 | 截止月份 | 版式 | 来源 |
|---|---|---|---|
| 1月 | 双栏 | icml.cc |
| 2月 | 单栏 | github.com/acl-org/acl-style-files |
| 3月(两年一届,奇数年) | 双栏 | CVF / iccv.thecvf.com |
| 3月(两年一届,偶数年) | 单栏(LNCS格式) | github.com/paolo-favaro/paper-template |
| 5月 | 单栏 | neurips.cc |
| 5月 | 单栏 | github.com/acl-org/acl-style-files |
| 9月 | 单栏 | github.com/ICLR/Master-Template |
| 11月 | 双栏 | github.com/cvpr-org/author-kit |
| 12月 | 单栏 | github.com/acl-org/acl-style-files |
| 不固定 | 单栏 | CTAN(预安装) |
2. Run the init script
2. 运行初始化脚本
bash
bash <init-latex-project-skill-dir>/scripts/init.sh <project-name> [target-dir] [--venue <venue>] [--git]Important: Resolve as the installed directory for this skill and use the absolute path to . Do not assume a Claude-specific install path.
<init-latex-project-skill-dir>init.shbash
bash <init-latex-project-skill-dir>/scripts/init.sh <project-name> [target-dir] [--venue <venue>] [--git]重要提示:请将替换为该技能的安装目录,并使用的绝对路径。不要假设特定的Claude安装路径。
<init-latex-project-skill-dir>init.sh3. Offer to immediately customize
3. 提供即时定制选项
After the script runs, ask the user if they want to:
- Update with their actual title
sections/title.tex - Fill in authors and affiliations in
main.tex - Any other immediate adjustments
脚本运行完成后,询问用户是否需要:
- 更新中的实际标题
sections/title.tex - 在中填写作者及所属机构信息
main.tex - 其他即时调整需求
4. Print the script's output to the user
4. 向用户展示脚本输出内容
The script prints a file tree and venue-specific setup notes. Make sure the user sees these.
脚本会打印文件目录树和会议专属设置说明,请确保用户能看到这些信息。
Venue Details
会议细节说明
All sources are verified in . downloads style files automatically.
Edit to switch submission mode.
sources.yamlinit.shvenue_preamble.tex所有源文件均已在中验证。会自动下载样式文件。编辑即可切换提交模式。
sources.yamlinit.shvenue_preamble.texICML — Jan deadline
ICML — 1月截止日期
- Layout: Two-column
- Doc class: +
article(year-specific)\usepackage{icml{YEAR}} - Bibliography:
icml{YEAR}.bst - MANDATORY: (Broader Impact, no page limit)
sections/impact.tex - Note: Uses ICML-specific author macros (,
\icmltitle, etc.)\icmlauthor
- 版式:双栏
- 文档类:+
article(按年份区分)\usepackage{icml{YEAR}} - 参考文献:
icml{YEAR}.bst - 必填项:(更广泛影响说明,无页数限制)
sections/impact.tex - 注意:使用ICML专属作者宏命令(,
\icmltitle等)\icmlauthor
ACL / EMNLP / NAACL — *ACL family
ACL / EMNLP / NAACL — *ACL系列会议
- Layout: Single-column
- Doc class: +
\documentclass[11pt]{article}(stable name)\usepackage[review]{acl} - Bibliography:
acl_natbib.bst - Citations: in-text;
\citet{}/\cite{}parenthetical\citep{} - MANDATORY: (no page limit)
sections/limitations.tex - Required if applicable:
sections/ethics.tex
- 版式:单栏
- 文档类:+
\documentclass[11pt]{article}(名称稳定)\usepackage[review]{acl} - 参考文献:
acl_natbib.bst - 引用格式:文中使用;括号引用使用
\citet{}/\cite{}\citep{} - 必填项:(局限性说明,无页数限制)
sections/limitations.tex - 适用时必填:(伦理说明)
sections/ethics.tex
ICCV — Mar deadline (biennial, odd years: 2025, 2027, …)
ICCV — 3月截止日期(两年一届,奇数年:2025、2027…)
- Layout: Two-column (same CVF format as CVPR)
- Doc class: +
\documentclass[times,10pt,twocolumn,letterpaper]{article}\usepackage[review]{iccv} - Bibliography:
ieeenat_fullname.bst - Note: Use /
figure*for full-width floatstable*
- 版式:双栏(与CVPR相同的CVF格式)
- 文档类:+
\documentclass[times,10pt,twocolumn,letterpaper]{article}\usepackage[review]{iccv} - 参考文献:
ieeenat_fullname.bst - 注意:全宽浮动元素使用/
figure*table*
ECCV — Mar deadline (biennial, even years: 2024, 2026, …)
ECCV — 3月截止日期(两年一届,偶数年:2024、2026…)
- Layout: Single-column (Springer LNCS)
- Doc class: — NOT article
\documentclass[runningheads]{llncs} - Style: +
eccv.styeccvabbrv.sty - Bibliography:
splncs04.bst - Page limit: 14 pages including figures; references uncapped
- Author format: LNCS macros
\author{}\inst{}\institute{}
- 版式:单栏(Springer LNCS格式)
- 文档类:—— 请勿使用article类
\documentclass[runningheads]{llncs} - 样式:+
eccv.styeccvabbrv.sty - 参考文献:
splncs04.bst - 页数限制:含图表共14页;参考文献无页数限制
- 作者格式:LNCS专属宏命令
\author{}\inst{}\institute{}
NeurIPS — May deadline
NeurIPS — 5月截止日期
- Layout: Single-column
- Doc class: +
article(year-specific)\usepackage{neurips_{YEAR}} - Bibliography: (numeric, sorted by appearance)
unsrtnat - Acknowledgments: Use environment (auto-hides in anonymous mode)
{ack} - MANDATORY: (Broader Impact, no page limit)
sections/impact.tex - MANDATORY: (Author Checklist, no page limit)
sections/checklist.tex
- 版式:单栏
- 文档类:+
article(按年份区分)\usepackage{neurips_{YEAR}} - 参考文献:(数字编号,按出现顺序排序)
unsrtnat - 致谢:使用环境(匿名模式下自动隐藏)
{ack} - 必填项:(更广泛影响说明,无页数限制)
sections/impact.tex - 必填项:(作者 checklist,无页数限制)
sections/checklist.tex
ICLR — Sep deadline
ICLR — 9月截止日期
- Layout: Single-column
- Doc class: +
article(year-specific)\usepackage[submitted]{iclr{YEAR}_conference} - Bibliography:
iclr{YEAR}_conference.bst - Extra: (optional Ethics Statement)
sections/impact.tex
- 版式:单栏
- 文档类:+
article(按年份区分)\usepackage[submitted]{iclr{YEAR}_conference} - 参考文献:
iclr{YEAR}_conference.bst - 附加项:(可选伦理声明)
sections/impact.tex
CVPR — Nov deadline
CVPR — 11月截止日期
- Layout: Two-column
- Doc class: +
\documentclass[times,10pt,twocolumn,letterpaper]{article}(stable name)\usepackage[review]{cvpr} - Bibliography:
ieeenat_fullname.bst - Note: Use /
figure*for full-width floatstable*
- 版式:双栏
- 文档类:+
\documentclass[times,10pt,twocolumn,letterpaper]{article}(名称稳定)\usepackage[review]{cvpr} - 参考文献:
ieeenat_fullname.bst - 注意:全宽浮动元素使用/
figure*table*
ACM — varies
ACM — 截止日期不固定
- Layout: Single-column (sigconf)
- Doc class: (pre-installed via CTAN)
\documentclass[sigconf,review,anonymous]{acmart} - Bibliography:
ACM-Reference-Format.bst - Camera-ready extras: ,
\acmConference,\acmDOI, CCS concepts\setcopyright
- 版式:单栏(sigconf格式)
- 文档类:(通过CTAN预安装)
\documentclass[sigconf,review,anonymous]{acmart} - 参考文献:
ACM-Reference-Format.bst - 终稿附加项:,
\acmConference,\acmDOI, CCS概念\setcopyright
What Is Always Included (Every Venue)
所有会议通用内容
macros.tex- Calligraphic …
\calA, bold\calZ…\bA/\bZ…\ba\bz - Blackboard bold
\R\E\P\B - Greek shortcuts
\sG\lG\tG\pa\half - Operators
\argmin\argmax\Softmax\Sigmoid\Var - Sum shortcuts
\sumN\sumK\sumM\sumT - Theorem environments (grey tcolorbox):
theoremlemmadefinitionremarkassumption - Author comment macros
\jerry{}\wwm{}etc.\jieke{}
Standard section files (all placeholder):
, , , , , , , ,
title.texabstract.texintro.texrelated.texmethod.texexp.texconclusion.texappendix.texacknowledgement.texbib/refs.bibmacros.tex- 花体字母…
\calA、粗体字母\calZ…\bA/\bZ…\ba\bz - 黑板粗体
\R\E\P\B - 希腊字母快捷命令
\sG\lG\tG\pa\half - 算子命令
\argmin\argmax\Softmax\Sigmoid\Var - 求和快捷命令
\sumN\sumK\sumM\sumT - 定理环境(灰色tcolorbox):
theoremlemmadefinitionremarkassumption - 作者注释宏命令
\jerry{}\wwm{}等\jieke{}
标准章节文件(均为占位符):
, , , , , , , ,
title.texabstract.texintro.texrelated.texmethod.texexp.texconclusion.texappendix.texacknowledgement.texbib/refs.bibExample Invocations
调用示例
/init-latex-project my-new-paper # generic arXiv
/init-latex-project my-icml-paper ~/Papers --venue icml --git
/init-latex-project my-acl-paper ~/Papers --venue acl --git
/init-latex-project my-iccv-paper . --venue iccv
/init-latex-project my-eccv-paper . --venue eccv
/init-latex-project my-neurips-paper . --venue neurips --git
/init-latex-project my-emnlp-paper . --venue emnlp
/init-latex-project my-iclr-paper ~/Papers --venue iclr --git
/init-latex-project my-cvpr-paper . --venue cvpr
/init-latex-project my-naacl-paper . --venue naacl
/init-latex-project my-acm-paper . --venue acm
/init-latex-project my-paper-offline . --venue neurips --offline # skip download/init-latex-project my-new-paper # 通用arXiv模板
/init-latex-project my-icml-paper ~/Papers --venue icml --git
/init-latex-project my-acl-paper ~/Papers --venue acl --git
/init-latex-project my-iccv-paper . --venue iccv
/init-latex-project my-eccv-paper . --venue eccv
/init-latex-project my-neurips-paper . --venue neurips --git
/init-latex-project my-emnlp-paper . --venue emnlp
/init-latex-project my-iclr-paper ~/Papers --venue iclr --git
/init-latex-project my-cvpr-paper . --venue cvpr
/init-latex-project my-naacl-paper . --venue naacl
/init-latex-project my-acm-paper . --venue acm
/init-latex-project my-paper-offline . --venue neurips --offline # 跳过下载If the Auto-Download Fails
自动下载失败时的处理
If cannot reach the venue server, is created as a
placeholder. Fix it:
init.shvenue_preamble.tex- Visit the venue's author instructions page (URL is in ).
sources.yaml - Download the style zip manually and unpack /
.styfiles into the project root..bst - Edit to add the correct
venue_preamble.texline.\usepackage{...}
As a last resort, use WebSearch to find the current year's download URL and fetch it:
bash
undefined如果无法连接会议服务器,会作为占位符生成。修复步骤:
init.shvenue_preamble.tex- 访问会议的作者指南页面(URL在中)。
sources.yaml - 手动下载样式压缩包,并将/
.sty文件解压到项目根目录。.bst - 编辑添加正确的
venue_preamble.tex命令。\usepackage{...}
如果以上方法无效,可使用WebSearch查找当年的下载链接并获取:
bash
undefinedExample for NeurIPS <year>:
NeurIPS <year>示例:
curl -fsSL https://media.nips.cc/Conferences/<year>/Styles/neurips_<year>.zip -o /tmp/n.zip
unzip -j /tmp/n.zip "*.sty" -d /path/to/project/
---curl -fsSL https://media.nips.cc/Conferences/<year>/Styles/neurips_<year>.zip -o /tmp/n.zip
unzip -j /tmp/n.zip "*.sty" -d /path/to/project/
---Package Conflict Notes
包冲突说明
The library is loaded last in all venue templates (after venue packages), so our definitions take precedence. Known conflicts:
macros.tex| Venue | Potential Conflict | Resolution |
|---|---|---|
| ACM | | Our |
| ACM | | |
| CVPR | Two-column layout | |
| ICML | Uses its own | Load macros.tex after |
| NeurIPS | | Always use |
| NeurIPS | | |
| ALL | | PERMANENTLY DISABLED. These four lines redefined LaTeX's built-in math-mode delimiters ( |
| ALL | | PERMANENTLY DISABLED. Loading both |
macros.tex| 会议 | 潜在冲突 | 解决方案 |
|---|---|---|
| ACM | | 我们的 |
| ACM | | |
| CVPR | 双栏版式 | |
| ICML | 使用自身的 | 在 |
| NeurIPS | | 始终使用 |
| NeurIPS | | |
| 所有会议 | | 永久禁用。这四行重定义了LaTeX内置的数学模式分隔符( |
| 所有会议 | | 永久禁用。同时加载 |