Smithery Logo
MCPsSkillsDocsPricing
Login
NewFlame, an assistant that learns and improves. Available onTelegramSlack
    willoscar

    latex-scaffold

    willoscar/latex-scaffold
    Writing
    163

    About

    SKILL.md

    Install

    • Telegram
      Telegram
    • Slack
      Slack
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    • Download skill
    ├─
    ├─
    └─
    Smithery Logo

    Give agents more agency

    Resources

    DocumentationPrivacy PolicySystem Status

    Company

    PricingAboutBlog

    Connect

    © 2026 Smithery. All rights reserved.

    About

    Scaffold a LaTeX project (latex/main.tex, bibliography wiring, structure) from an existing Markdown draft and citations/ref.bib. Trigger: latex scaffold, md→tex, LaTeX 项目骨架, 生成...

    SKILL.md

    LaTeX Scaffold

    Convert the approved Markdown draft into a minimal, buildable LaTeX project.

    This is a deterministic conversion step; prose quality should already be addressed in output/DRAFT.md.

    Inputs

    • output/DRAFT.md or output/TUTORIAL.md
    • optional: citations/ref.bib

    Outputs

    • latex/main.tex (and any required LaTeX support files)

    Workflow

    1. Create latex/ directory if missing.
    2. Create latex/main.tex with sections matching the outline.
    3. Wire bibliography to citations/ref.bib when that file exists.

    Quality checklist

    • latex/main.tex exists.
    • If citations/ref.bib exists, latex/main.tex references it.

    Script

    Quick Start

    • python .codex/skills/latex-scaffold/scripts/run.py --help
    • python .codex/skills/latex-scaffold/scripts/run.py --workspace <workspace_dir>

    All Options

    • See --help (inputs/outputs are taken from the unit runner when used via pipeline)

    Examples

    • Build latex/main.tex from output/DRAFT.md or output/TUTORIAL.md:
      • python .codex/skills/latex-scaffold/scripts/run.py --workspace <ws>

    Notes

    • The generated latex/main.tex includes a table of contents (tocdepth=2) for readability.
    • Language default: the scaffold uses article (English-looking front matter). If the draft contains CJK characters, it switches to ctexart so the PDF renders correctly.
    • Conversion rules (high level):
      • Headings ##/###/#### → \section/\subsection/\subsubsection (strips leading numeric prefixes like 1.2).
      • Headings starting with Appendix / 附录 trigger \appendix once, then render as appendix sections.
      • Bold caption lines like **Table 1. ...** / **Appendix Table A1. ...** immediately before a Markdown table become a LaTeX table float with \caption{...} and a stable \label{tab:...}.
      • ## Abstract → abstract environment.
      • [@Key] or [@Key1; @Key2] → \citep{Key} / \citep{Key1,Key2}.
      • Inline markdown **bold** / *italic* / `code` → \textbf{} / \emph{} / \texttt{}.

    Troubleshooting

    Issue: the generated latex/main.tex still contains Markdown markers

    Fix:

    • Re-run latex-scaffold and ensure the input output/DRAFT.md is clean (no ##, no **, no [@...] syntax that isn""t handled).

    Issue: citations are missing in LaTeX

    Fix:

    • Ensure citations/ref.bib exists and the scaffold points bibliography to it; then compile with latex-compile-qa.
    Recommended Servers
    InfraNodus Knowledge Graphs & Text Analysis
    InfraNodus Knowledge Graphs & Text Analysis
    Ref
    Ref
    Docfork
    Docfork
    Repository
    willoscar/research-units-pipeline-skills
    Files