Learn-skills.dev init-latex-project
Initialize LaTeX Academic Project with standard structure, macros, and writing guide. Use when user wants to create a new LaTeX paper project for any conference or journal.
install
source · Clone the upstream repo
git clone https://github.com/NeverSight/learn-skills.dev
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/NeverSight/learn-skills.dev "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/skills-md/a-green-hand-jack/ml-research-skills/init-latex-project" ~/.claude/skills/neversight-learn-skills-dev-init-latex-project && rm -rf "$T"
manifest:
data/skills-md/a-green-hand-jack/ml-research-skills/init-latex-project/SKILL.mdsource content
Initialize LaTeX Academic Project
Set up a complete LaTeX academic paper project from the standard template.
Skill Directory Layout
~/.claude/skills/init-latex-project/ ├── SKILL.md ├── templates/ │ ├── macros.tex # Full math macro library │ ├── main.tex # Generic arXiv/whitepaper template │ ├── CLAUDE.md # Writing rules for AI agents │ └── venues/ │ ├── iclr/main.tex # ICLR single-column template │ ├── cvpr/main.tex # CVPR two-column template │ ├── icml/main.tex # ICML two-column template │ ├── acm/main.tex # ACM SIGCONF template │ ├── acl/main.tex # ACL/*ACL single-column template │ └── neurips/main.tex # NeurIPS single-column template └── scripts/ └── init.sh # Shell script that builds the project
Steps to Follow
1. Parse $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 |
Supported venues:
iclr, cvpr, icml, acm, acl, neurips
2. Run the init script
bash ~/.claude/skills/init-latex-project/scripts/init.sh <project-name> [target-dir] [--venue <venue>] [--git]
Important: Use the absolute path to
init.sh. Do NOT use ~ — expand it to the actual home directory (e.g., /Users/username/.claude/skills/...). Find the correct home directory from the environment or from previous messages.
3. Offer to immediately customize
After the script runs, ask the user if they want to:
- Update
with their actual titlesections/title.tex - Fill in authors and affiliations in
main.tex - Any other immediate adjustments
4. Print the script's output to the user
The script prints a file tree and venue-specific setup notes. Make sure the user sees these.
Venue Details
ICLR
- Layout: Single-column
- Document class:
+\documentclass{article}\usepackage[submitted]{iclr2026_conference} - Bibliography:
iclr2026.bst - Extra sections:
(optional Ethics Statement)sections/impact.tex - Style files: https://github.com/ICLR/Master-Template
CVPR
- Layout: Two-column (10pt, letterpaper)
- Document class:
+\documentclass[times,10pt,twocolumn,letterpaper]{article}\usepackage[review]{cvpr} - Bibliography:
ieeenat_fullname.bst - Important: Use
/figure*
for full-width floats in two-column layouttable* - Style files: https://github.com/cvpr-org/author-kit
ICML
- Layout: Two-column (via icml2026.sty)
- Document class:
+\documentclass{article}\usepackage{icml2026} - Bibliography:
(APA format)icml2026.bst - MANDATORY:
— Broader Impact Statement, does NOT count toward page limitsections/impact.tex - Extra: Uses ICML-specific author macros (
,\icmltitle
, etc.)\icmlauthor - Style files: https://icml.cc/Downloads/2026
ACM (SIGCONF)
- Layout: Varies (sigconf is typically single-column for submission)
- Document class:
\documentclass[sigconf,review,anonymous]{acmart} - Bibliography:
ACM-Reference-Format.bst - Author format: Each author has separate
,\author{}
,\affiliation{}
commands\email{} - CCS Concepts: Required for camera-ready (the
commands)\ccsdesc - Warning:
conflicts with some packages — see comments in main.texacmart - Style files: Usually pre-installed in TeX Live / MiKTeX
NeurIPS
- Layout: Single-column
- Document class:
+\documentclass{article}\usepackage{neurips_2025} - Citation format: Numeric
— use[1]
before\PassOptionsToPackage{numbers,compress}{natbib}\usepackage{neurips_2025} - Bibliography:
(按出现顺序排列,数字格式)unsrtnat - Acknowledgments: Use the
environment (not{ack}
) — it auto-hides in anonymous submission mode\section*{Acknowledgments} - MANDATORY:
— Broader Impact Statement, does NOT count toward page limitsections/impact.tex - MANDATORY:
— Full 15-item Author Checklist (pre-filled where possible), does NOT count toward page limitsections/checklist.tex - Submission modes: plain (anonymous) /
(arXiv) /[preprint]
(camera-ready)[final] - Algorithm package: Uses
(providesalgpseudocode
,\State
,\Require
,\Ensure
,\For
,\EndFor
). Do NOT use the older\Comment
package which requires ALL-CAPS commands (algorithmic
,\STATE
, etc.).\REQUIRE - Style files: https://neurips.cc/Conferences/2025/PaperInformation/StyleFiles
ACL / *ACL Venues (EMNLP, NAACL, EACL, COLING)
- Layout: Single-column
- Document class:
+\documentclass[11pt]{article}\usepackage[review]{acl} - Bibliography:
acl_natbib.bst - Citation style:
for in-text,\citet{}
(=\cite{}
) for parenthetical\citep{} - Extra sections:
+sections/limitations.texsections/ethics.tex - Style files: https://github.com/acl-org/acl-style-files
What Is Always Included (Every Venue)
— complete math macro library: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.tex, abstract.tex, intro.tex, related.tex, method.tex, exp.tex, conclusion.tex, appendix.tex, acknowledgement.tex
— empty with usage examplebib/refs.bib
Example Invocations
/init-latex-project my-new-paper /init-latex-project my-iclr-paper ~/Papers --venue iclr --git /init-latex-project my-cvpr-paper . --venue cvpr /init-latex-project my-icml-paper . --venue icml --git /init-latex-project my-acm-paper . --venue acm /init-latex-project my-acl-paper ~/Papers --venue acl /init-latex-project my-neurips-paper . --venue neurips --git
Package Conflict Notes
The
macros.tex library is loaded last in all venue templates (after venue packages), so our definitions take precedence. Known conflicts:
| Venue | Potential Conflict | Resolution |
|---|---|---|
| ACM | redefines | Our overrides it — intentional |
| ACM | has its own | in macros.tex may interfere — comment it out if needed |
| CVPR | Two-column layout | theorem envs may span columns — switch to plain if needed |
| ICML | Uses its own setup | Load macros.tex after to avoid double-load errors |
| NeurIPS | vs | Always use (lowercase , , etc.). The older package uses ALL-CAPS commands and is incompatible with modern algorithm code. |
| NeurIPS | Option Clash | must be loaded ONCE, in , AFTER . The macros.tex template also contains — this causes an Option Clash ( vs ) when both files are compiled together. Fix: remove or comment out the line from in NeurIPS projects. The NeurIPS venue template already does this correctly. |
| ALL | , , , in macros.tex | PERMANENTLY DISABLED. These four lines redefined LaTeX's built-in math-mode delimiters ( = inline math; = display math), which broke ALL math environments (, , states, etc.) with cascading "Missing $" and "Extra )" errors. Never re-enable. Use explicitly instead. |
| ALL | + in macros.tex | PERMANENTLY DISABLED. Loading both / alongside (required by NeurIPS, ICML, ICLR) causes "Command \algorithmicindent already defined" and similar errors. The float wrapper should be loaded once in together with exactly one of (modern, recommended) or (legacy). |