Files
mytoolkit/.claude/skills/mytoolkit/references/latex.md
T
Zhengshou Lai f45b46073a feat(scaffold): redesign paper scaffold + clarify doc responsibilities
Scaffold (mytoolkit init paper):
- default to portable Elsevier elsarticle [review,3p,11pt] (was ctexart/Fandol)
- TeX Live Libertinus fonts (serif+math+mono), no system-font dependency
- xelatex one-engine via latexmk; figure/abstract/keyword frontmatter
- PDF bookmarks expand to two levels (bookmarksopenlevel=2)
- fix diffpreamble.dtx: define \DIFadd/\DIFdel (latexdiff highlighted now compiles)

Docs responsibility split:
- CLAUDE.md owns design decisions/constraints; exact scaffold specs live only
  in the generated main.tex header (self-documenting, no drift)
- README/SKILL point to those; README command table gains `voice`
- reconcile source-of-truth wording across CLAUDE.md / README / SKILL
2026-06-29 00:47:48 +08:00

893 B
Raw Blame History

LaTeXlatex

详细用法以 mytoolkit 项目 README.md 为准(可用 mytoolkit info paths 辅助定位)。

mytoolkit latex compile paper.tex
mytoolkit latex compile paper.tex -e xelatex
mytoolkit latex count paper.tex

论文脚手架 / 投稿模板

mytoolkit init paper <dir>           # 新建论文项目(elsarticle 脚手架,xelatex,可移植;精确配置见生成的 main.tex 头部注释,设计约束见仓库 CLAUDE.md §3
mytoolkit init journal               # 列出投稿套件
mytoolkit init journal elsevier      # Elsevier / ieee / springer 套件 → ./submit-<name>/

投稿套件自带文档类与 bstmakepdflatex+bibtex)直接编译;自动复用当前目录 references.bib。Springer 切样式只改 \documentclass[...,sn-xxx]{sn-jnl} 选项,勿写 \bibliographystyle。详见 CLAUDE.md §3。