brycewang-stanford/Auto-Empirical-Research-Skills / skills/35-bahayonghang-academic-writing-skills/skills/latex-paper-en
latex-paper-en
VerifiedEnglish LaTeX academic paper assistant for existing `.tex` projects. Use this skill whenever the user wants to compile, lint, audit, or improve an English LaTeX conference or journal paper such as IEEE, ACM, Springer, NeurIPS, or ICML submissions. Trigger even when the user only mentions one paper issue, such as bibliography errors, grammar cleanup, sentence splitting, logic review, expression polishing, translation, title optimization, figure checks, pseudocode review, algorithm block cleanup, de-AI editing, experiment-section review, table structure validation, three-line table generation, abstract structure diagnosis, or journal adaptation. Also trigger for "proofread my paper", "fix my LaTeX", "prepare for submission", "check my manuscript", "improve my writing", "three-line table", "booktabs", "check abstract", "reformat for another journal", "换投", `algorithm2e`, `algorithmicx`, `algpseudocodex`, `Require/Ensure`, or "Algorithm 1" when the user has a .tex file.
references/COMPILATION.md
View on GitHub# LaTeX Compilation Guide
## Compiler Selection
### pdfLaTeX
- **Best for**: English papers, fast compilation
- **Limitations**: Poor CJK support, requires `CJKutf8` package
- **Command**: `latexmk -pdf main.tex`
### XeLaTeX (Recommended for Chinese)
- **Best for**: Chinese documents, Unicode support, system fonts
- **Packages**: `ctex`, `xeCJK`, `fontspec`
- **Command**: `latexmk -xelatex main.tex`
### LuaLaTeX
- **Best for**: Modern features, Lua scripting, complex typography
- **Note**: Actively maintained, recommended for future-proofing
- **Command**: `latexmk -lualatex main.tex`
## latexmk Configuration
Create `.latexmkrc` in project root:
```perl
# For XeLaTeX (Chinese documents)
$pdf_mode = 5; # xelatex
$xelatex = 'xelatex -interaction=nonstopmode -shell-escape %O %S';
# For pdfLaTeX (English papers)
# $pdf_mode = 1;
# $pdflatex = 'pdflatex -interaction=nonstopmode -shell-escape %O %S';
# Bibliography
$bibtex_use = 2;
$biber = 'biber %O %S';
# Output directory (optional)
# $out_dir = 'build';
# Clean extensions
@generated_exts = (@generated_exts, 'synctex.gz', 'nav', 'snm', 'vrb');
```
## Common Issues
### Chinese Font Not Found
```latex
% Specify fonts explicitly
\setCJKmainfont{SimSun}[BoldFont=SimHei, ItalicFont=KaiTi]
\setCJKsansfont{SimHei}
\setCJKmonofont{FangSong}
```
### Missing Package
```bash
# TeX Live
tlmgr install <package-name>
# MiKTeX (auto-install on first use)
# Or use MiKTeX Console
```
### Bibliography Not Updating
```bash
# Force rebuild
latexmk -C main.tex # Clean all
latexmk -xelatex main.tex # Rebuild
```
## Watch Mode (Continuous Compilation)
```bash
# Auto-recompile on file changes
latexmk -xelatex -pvc main.tex
# With PDF viewer sync
latexmk -xelatex -pvc -view=pdf main.tex
```
## Cross-Platform Notes
### Windows
- Install MiKTeX or TeX Live
- Use PowerShell or CMD
- Path: Use forward slashes or escaped backslashes
### Linux
```bash
sudo apt-get install texlive-full latexmk
```
### macOS
```bash
brew install --cask mactex
# Or: brew install basictex
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |