Skip to content

feat(pdf): revamp latex template#159

Merged
ekassos merged 28 commits into
mainfrom
ekassos/feat/revamp-latex-template-positioning-handling
Jun 8, 2026
Merged

feat(pdf): revamp latex template#159
ekassos merged 28 commits into
mainfrom
ekassos/feat/revamp-latex-template-positioning-handling

Conversation

@ekassos

@ekassos ekassos commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Changed

  • Change the default paragraph font size from 9.0pt to 9.5625pt to match Swift-DocC-Render's default body font size.
  • Rework generated PDF chapter heroes, body text, headings, and table-of-contents section headings to use Swift-DocC-Render-derived typography, line heights, and spacing.
  • Rework generated PDF block spacing so paragraphs, headings, lists, asides, code listings, images, and tables use DocC-style top-margin ownership instead of implicit LaTeX spacing.
  • Render generated PDF code listings with DocC-style listing boxes, padding, borders, and code typography.
  • Redesign generated PDF aside notes with DocC-style padding, label spacing, text color, left-border rendering, and breakable-page behavior.
  • Refine generated PDF aside note borders so the left accent follows the rounded box corners instead of drawing as a square-edged rule.
  • Rework generated PDF unordered, ordered, and term lists to use DocC-style list spacing, indentation, and nested paragraph rendering.
  • Rework generated PDF tables to use DocC-style cell padding, borders, body typography, and measured column widths instead of the previous stretched table layout.
  • Rework generated PDF table-of-contents chapter links to use DocC-style topic link blocks with aligned icons, subtitle indentation, and print page-reference leaders.
  • Align generated PDF inline image spacing with DocC content-node spacing and surrounding block-state handling.
  • Improve handling of special characters in generated PDF code blocks and inline text with PUA escapes.

Fixed

  • Fix an issue where generated PDF code listings could be missing a double pipe (||) because of an unintended formatting escape.

Closes #153, closes #154, closes #155, closes #156, closes #157

@ekassos ekassos self-assigned this Jun 8, 2026
@ekassos ekassos added enhancement New feature or request LaTeX Typesetting Issues or pull requests related to the LaTeX typesetting step Markdown to LaTeX Converter Issues or pull requests related to the Markdown to LaTeX conversion step LaTeX Template labels Jun 8, 2026
@ekassos ekassos merged commit a69f4c5 into main Jun 8, 2026
4 checks passed
@ekassos ekassos deleted the ekassos/feat/revamp-latex-template-positioning-handling branch June 8, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request LaTeX Template LaTeX Typesetting Issues or pull requests related to the LaTeX typesetting step Markdown to LaTeX Converter Issues or pull requests related to the Markdown to LaTeX conversion step

Projects

None yet

1 participant