latex-writer

Generate professional LaTeX documents from templates. Supports academic papers (IEEE/ACM), Chinese thesis (CTeX), CVs (moderncv), and custom templates. Auto-compile to PDF.

3,891 stars

Best use case

latex-writer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Generate professional LaTeX documents from templates. Supports academic papers (IEEE/ACM), Chinese thesis (CTeX), CVs (moderncv), and custom templates. Auto-compile to PDF.

Teams using latex-writer should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/latex-writer/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/alicepub/latex-writer/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/latex-writer/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How latex-writer Compares

Feature / Agentlatex-writerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Generate professional LaTeX documents from templates. Supports academic papers (IEEE/ACM), Chinese thesis (CTeX), CVs (moderncv), and custom templates. Auto-compile to PDF.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# LaTeX Writer

Intelligent LaTeX document generator with template management and PDF compilation.

## Features

- 📄 **Academic Templates**: IEEE, ACM, Springer, Elsevier
- 📝 **Chinese Support**: CTeX for thesis and reports
- 👤 **CV/Resume**: moderncv, altacv templates
- 🎨 **Custom Templates**: Import your own .cls files
- 🔧 **Auto Compilation**: xelatex/lualatex with error handling
- 📊 **Figure/Table Support**: Auto-convert markdown tables to LaTeX

## Trigger Conditions

Use this skill when:
1. User asks to "write a paper" with specific format
2. User mentions "LaTeX", "PDF", "typesetting"
3. User needs CV/resume generation
4. User provides content and asks for professional formatting

## Usage Examples

### Academic Paper
```
User: 帮我写一篇 IEEE 格式的机器学习论文,主题是深度学习在医学影像中的应用

Skill Actions:
1. Select IEEEtran template
2. Generate structure: Abstract → Intro → Method → Experiments → Conclusion
3. Ask user for key content points
4. Generate LaTeX with proper math formulas
5. Compile to PDF
```

### Chinese Thesis
```
User: 我要写硕士毕业论文,学校要求用 LaTeX

Skill Actions:
1. Select CTeX template (ctexrep)
2. Configure Chinese fonts (SimSun, SimHei)
3. Setup school-specific requirements
4. Generate chapter structure
```

### CV Generation
```
User: 帮我生成一份软件工程师的英文简历

Skill Actions:
1. Select moderncv template (banking style)
2. Collect user information
3. Format with proper sections
4. Generate PDF
```

## Implementation

See `scripts/` directory for implementation:
- `latex_writer.py` - Main entry point
- `template_manager.py` - Template library management
- `content_parser.py` - Parse user input to structured content
- `latex_generator.py` - Generate LaTeX code
- `pdf_builder.py` - Compile LaTeX to PDF

## Requirements

- Python 3.10+
- TeX Live or MiKTeX (with xelatex)
- CJK fonts for Chinese support

Related Skills

Cold Email Writer

3891
from openclaw/skills

Writes personalized cold emails that actually get replies

Content & Documentation

Policy Writer

3891
from openclaw/skills

Generate professional internal policies for any business function — HR, IT, finance, compliance, data privacy, acceptable use, and more.

Business Management

Grant Writer

3891
from openclaw/skills

Write winning grant proposals and funding applications. Works for government grants (SBIR, Innovate UK, Horizon Europe), foundation grants, and corporate funding programs.

Workflow & Productivity

问专家技能 - 使用 Playwriter 控制已登录的浏览器

3891
from openclaw/skills

## 技能描述

Workflow & Productivity

Xiaohongshu Founder Growth Writer

3891
from openclaw/skills

Turn rough notes, founder insights, and English drafts into natural Xiaohongshu posts that feel human, trustworthy, and platform-native.

Decision Memo Writer

3891
from openclaw/skills

Turn long documents, reports, proposals, and email threads into decision-ready memos with key points, risks, open questions, and next steps.

bullet-rewriter

3891
from openclaw/skills

Rewrite raw experience descriptions into stronger, clearer, and more job-relevant resume bullets.

contract-and-proposal-writer

3891
from openclaw/skills

Contract & Proposal Writer

discharge-summary-writer

3891
from openclaw/skills

Generate hospital discharge summaries from admission data, hospital course, medications, and follow-up plans. Trigger when user needs to create a discharge summary, compile inpatient medical records, or generate post-hospitalization documentation for patients.

audio-script-writer

3891
from openclaw/skills

Convert written medical content into podcast or video scripts optimized for audio delivery. Transforms academic papers, reports, and educational materials into engaging spoken-word formats with pronunciation guides, timing markers, and audio-friendly structure.

seo-content-writer

3891
from openclaw/skills

SEO content writer: create optimized blog posts, articles, and landing pages with keyword integration, header optimization, featured snippet targeting, and EEAT signals. Part of a 20-skill SEO & GEO suite. SEO文章写作/内容优化/博客写作/内容营销/搜索引擎优化

rednote-viral-writer

3891
from openclaw/skills

小红书爆款助手,热点追踪、文案生成、标签推荐。