pdf-typography

Configure Pretext typography settings for consistent PDF layouts.

2|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/DojoGenesis/gateway --skill pdf-typography
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-typography
Source: https://github.com/DojoGenesis/gateway/tree/main/plugins/pretext-pdf/skills/pdf-typography
Command: npx skills add https://github.com/DojoGenesis/gateway --skill pdf-typography

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure and validate typography settings for Pretext-driven PDF exports to ensure consistent, readable, and brand-aligned page layouts across prose, code, chat, and reference outputs.

Core Features & Use Cases

  • Content-aware profiles: Preset typography profiles for prose, code review, chat exports, presentations, and reference manuals with tuned font stacks, sizes, and line heights.
  • Page geometry and measurement: Produce page geometry in points, margin settings, column layouts, and validated font descriptors compatible with Pretext measurements.
  • Disposition mapping & accessibility: Map agent dispositions to typographic choices and enforce accessibility constraints such as minimum font sizes and readable line lengths.
  • Use Case: Generate a client-facing Go specification PDF with increased body size, adjusted code block settings, and validated page breaks to avoid widows/orphans.

Quick Start

Configure typography for a mixed prose-and-code PDF export by specifying content_type: "mixed", increasing body_size to 12pt, setting Recursive MONO=1 for code, and exporting a test page to validate line length and page breaks.

Frequently Asked Questions about pdf-typography

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

FAQPage Schema
How do I configure Pretext typography settings for PDF exports?

To configure Pretext typography settings for PDF exports, specify content type, body size, font stacks, and line heights. This generates validated TypographyConfig objects with page geometry, margins, and disposition mappings compatible with the Pretext layout pipeline.

What is a TypographyConfig object and what does it include?

A TypographyConfig object is a validated structure for PDF layout that includes font descriptors, optical sizes, line heights, page margins in points, column counts, and disposition-driven mappings to ensure consistent readable typography.

Can I adjust page geometry and margins in points for PDF layouts?

Yes, you can adjust page geometry and margins in points for PDF layouts. The configuration produces validated page geometry measurements, margin settings, and column layouts compatible with Pretext measurement standards for precise export control.

Does PDF typography configuration enforce accessibility constraints?

Yes, PDF typography configuration enforces accessibility constraints such as minimum font sizes and readable line lengths. It maps agent dispositions to typographic choices to maintain accessibility across prose, code, and reference outputs.

What's the best way to set up typography for mixed prose and code PDFs?

The best way to set up typography for mixed prose and code PDFs is to specify content type as mixed, increase body size, set specific code block font stacks, and export a test page to validate line length and prevent widows or orphans.

Are there preset typography profiles for different PDF content types?

Yes, there are preset typography profiles for prose, code review, chat exports, presentations, and reference manuals. These content-aware profiles provide tuned font stacks, sizes, and line heights for consistent readable PDF layouts.