Packs / latex-and-papers-public
journal-submission
Prepare a journal or co-author copy: strip internal comments, detect leaked paths/emails, copy only used files, zip for Overleaf/journal.
Install
logicpacks pack use latex-and-papers-public/journal-submissionget_pack latex-and-papers-public/journal-submissionThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
local - Checks: 3 in
outcome/checks.yaml - Code:
strip_internal.py - Tools: python3
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
A submission package with nothing internal in it (no TODO/DRAFT/REF comments, server paths, emails, unused figures).
Steps
python3 code/strip_internal.py paper/ out/journal --main main.tex(exit 1 lists leaks to fix in the source).- Compile the stripped copy (compile-latex pack) and diff page count with the marked build.
- Check new references resolve (DOIs on Crossref, see research/cite-sources).
- Zip
out/journalfor Overleaf or the journal system; Waleed uploads/sends.
Edge cases
- Comments with
\%(escaped percent) are content, not comments; the stripper keeps them. - Figures referenced without extension: the stripper finds .pdf/.png/.jpg/.eps.
Don'ts
- Don't send anything to co-authors, editors or journals; Waleed sends. Prepare files and open them for him.
- Don't change numbers in a paper without the script/run that produced them.
- Don't leave internal comments, server paths or chat quotes in a copy that leaves us.