Typeset 0.4.0
Typeset 0.4.0 introduces centered wide content that extends symmetrically into both margins, a new wide parameter for figures, and layout refinements to prevent sidebar overlap.
Centered Wide Content
Code blocks and tables now extend into both margins equally, creating a more balanced visual appearance. Previously, wide content only extended to the right into the sidenote margin. Now it extends 7ch on each side (14ch total), keeping the content centered on the page.
# This code block extends equally into both margins
def fibonacci(n):
if n <= 1:
return n
return fibonacci(n - 1) + fibonacci(n - 2)
The same applies to tables, which now sit centered relative to the surrounding prose.
Figure Shortcode
This release introduces a new figure shortcode for academic-style figures with automatic numbering and captions:
Figures stay within the content column by default. For larger images like panoramas or detailed diagrams, use the wide=true parameter to extend them into the margins:
wide=trueThe shortcode supports captions with inline markdown and math, custom IDs for cross-references, and automatic sequential numbering. See the figures documentation for full details.
Migration Notes
- Figures are now normal width by default. Add
wide=trueto any figures that looked better extended. - The
--content-extendvariable changed from 13ch to 7ch (per side). Total extension is now 14ch. - Wide content appears more centered and balanced than before.
These changes complete the wide content system introduced in 0.3.0, making it symmetric and preventing layout collisions.