<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
pku-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

FileRequiredWhen UsedPurpose
paper.mdRequiredStartSource CoPaper draft to convert
writingrules.mdRequiredStartInterpret CoPaper heading and paragraph structure
templates/latex/RequiredStartUser-provided LaTeX template directory
relatedwork/paper_list.bibOptionalBibliography stepBibTeX entries to copy or reference
fig/OptionalAsset stepFigures referenced by the paper

Workflow

  1. Confirm that templates/latex/ exists and contains at least one .tex template file.
  2. 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.
  3. Read paper.md and writingrules.md.
  4. Inspect the template files to identify the main .tex file, document class, bibliography commands, package conventions, and author/title placeholders.
  5. Create or update an output directory such as target/latex/.
  6. Copy the template contents into target/latex/, preserving class files, style files, bibliography style files, images, and auxiliary files.
  7. Convert paper.md into 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.
  1. 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.
  2. Copy relatedwork/paper_list.bib into the output directory when present and wire it to the template's bibliography command if needed.
  3. Copy referenced figures from fig/ when present.
  4. Report the output directory and main .tex file. 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 under target/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 .tex files 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.
All versions