editorial-typesetting

Convert copy-edited markdown files into print-ready LaTeX documents using memoir and XeLaTeX.

1|1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/brycehamrick/editorial-skills --skill editorial-typesetting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: editorial-typesetting
Source: https://github.com/brycehamrick/editorial-skills/tree/main/skills/editorial-typesetting
Command: npx skills add https://github.com/brycehamrick/editorial-skills --skill editorial-typesetting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill solves the complex technical challenge of transforming structured markdown writing into professional, print-ready book layouts using the LaTeX memoir class, eliminating the need for manual formatting or expensive proprietary software.

Core Features & Use Cases

  • Automated Layout: Handles trim size, margins, gutter calculations, and bleed requirements for professional print-on-demand services.
  • Advanced Typography: Manages drop caps, running heads, chapter styling, and font integration via XeLaTeX.
  • Use Case: When an author has completed their final copy-edit and needs to generate a high-quality, print-ready PDF for a service like KDP or IngramSpark, this skill automates the entire assembly of the LaTeX preamble, front matter, and chapter files.

Quick Start

Run the editorial-typesetting skill to begin the layout process for the current manuscript and follow the prompts to configure your book geometry and typography.

Frequently Asked Questions about editorial-typesetting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert markdown to a print-ready LaTeX book?

Convert markdown manuscripts to print-ready LaTeX books by running the typesetting process, which uses the memoir class and XeLaTeX to generate a professional PDF. It requires structured markdown files and predefined design decisions.

Can I generate KDP or IngramSpark files from markdown?

Yes, generating KDP or IngramSpark files from markdown is possible when the manuscript is copy-edited. The process calculates trim size, margins, gutters, and bleed to output a high-quality PDF for print-on-demand services.

Does XeLaTeX work with the memoir class for book design?

XeLaTeX works with the memoir class to handle advanced book design typography. It manages drop caps, running heads, chapter styling, and font integration, assembling the preamble and chapter files automatically.

What is the best way to automate LaTeX preamble assembly for publishing?

Automating LaTeX preamble assembly for publishing is best handled by converting structured markdown sources directly. This eliminates manual formatting by automatically generating the complete document layout configuration.

Do I need copy-edited markdown to typeset a print-ready book?

Copy-edited markdown is required to typeset a print-ready book because the conversion applies to the final stage of the editorial workflow. Manuscripts must be fully prepared before generating the LaTeX document.

Are there limitations when converting markdown to LaTeX for book publication?

Limitations when converting markdown to LaTeX include requiring a structured directory of markdown files and adherence to defined typesetting design decisions. Without this structure, automated layout and typography configuration cannot be applied.