<< All versions
Skill v1.0.0
currentLLM-judged scan90/100pku-asal/copaper-opencode/template-latex-export
──Details
PublishedOctober 23, 2026 at 02:26 AM
Content Hashsha256:ee95c9559ac8868d...
Git SHA67f132d4b71f
──Files
Files (1 file, 3.2 KB)
SKILL.md3.2 KBactive
SKILL.md · 49 lines · 3.2 KB
version: "1.0.0" name: template-latex-export description: Convert paper.md into a final LaTeX paper project using a user-provided conference or journal template placed under templates/latex/. Use when the user asks to generate the final LaTeX paper from the CoPaper markdown draft with a local template.
Template LaTeX Export
This skill converts paper.md into a final LaTeX paper using a template that the user has placed in templates/latex/.
Input Files
| File | Required | When Used | Purpose | |
|---|---|---|---|---|
paper.md | Required | Start | Source CoPaper draft to convert | |
writingrules.md | Required | Start | Interpret CoPaper heading and paragraph structure | |
templates/latex/ | Required | Start | User-provided LaTeX template directory | |
relatedwork/paper_list.bib | Optional | Bibliography step | BibTeX entries to copy or reference | |
fig/ | Optional | Asset step | Figures referenced by the paper |
Workflow
- Confirm that
templates/latex/exists and contains at least one.textemplate file. - If no template exists, ask the user to place the target venue template under
templates/latex/and stop. Do not invent or download a template. - Read
paper.mdandwritingrules.md. - Inspect the template files to identify the main
.texfile, document class, bibliography commands, package conventions, and author/title placeholders. - Create or update an output directory such as
target/latex/. - Copy the template contents into
target/latex/, preserving class files, style files, bibliography style files, images, and auxiliary files. - Convert
paper.mdinto LaTeX content:
#becomes the paper title unless the template already has a title placeholder.##to#####become sectioning commands appropriate for the template.######headings become topic sentences at the start of paragraphs, followed by their body text.- HTML metadata comments are omitted.
$...$and$$...$$math are preserved.- Existing citation markers are preserved or converted conservatively; do not invent citations.
- Insert the converted content into the copied template. Prefer explicit placeholders such as
CONTENT_HERE,% CONTENT, or\input{sections/...}when present. If no placeholder exists, replace only the main body between\begin{document}and bibliography/backmatter commands. - Copy
relatedwork/paper_list.bibinto the output directory when present and wire it to the template's bibliography command if needed. - Copy referenced figures from
fig/when present. - Report the output directory and main
.texfile. If a LaTeX engine is available and the user asked for compilation, compile from the output directory.
Constraints
- The user must provide the template in
templates/latex/; do not auto-download templates. - Preserve the original template files in
templates/latex/; write generated output undertarget/latex/. - Do not fabricate author names, affiliations, citations, venue names, or experimental results.
- Do not remove template license comments or required style files.
- If multiple
.texfiles look like main files, ask the user which one to use. - Keep the conversion faithful to
paper.md; polish only enough to produce valid LaTeX.