/paper-to-latex — optional .tex / PDF rendering
Arguments: $ARGUMENTS
LaTeX availability: !which pdflatex latexmk 2>/dev/null || echo "no LaTeX toolchain found"
Preconditions: resolve the run (--run or ACTIVE_RUN); final/paper.md
must exist — otherwise point to /verify-claims.
- Read
final/paper.md,bibliography.jsonl, and the template${CLAUDE_SKILL_DIR}/templates/paper.tex.tmpl. - Write
final/paper.tex:- Map markdown sections →
\section{}, bold/italic/code accordingly. - Strip evidence tags from the prose UNLESS
--keep-tagswas passed (then render them as\footnote{\texttt{EV:...}}). Stripping tags is a RENDERING step only — never touch final/paper.md itself. - Replace
[EV:cite:key]with\cite{key}and generatefinal/references.bibfrom bibliography.jsonl (BibTeX entries; use@miscwithhowpublished={\url{...}}when venue data is thin). - Escape LaTeX specials (%, &, _, #) in text.
- Map markdown sections →
- If pdflatex/latexmk exists: compile in
final/(latexmk -pdf -interaction=nonstopmode paper.texor two pdflatex + bibtex passes), reportfinal/paper.pdf. Clean aux files. - If no toolchain: stop at
final/paper.tex+final/references.biband tell the user they compile anywhere (e.g. Overleaf) — do NOT attempt to install texlive.