Package Information
- Last Updated
- Minimum Typst Version
- 0.12.0
- Authors
- wisp3rwind
- Categories
- utilitylayout
1. Get the package
Download the package using the TPIX CLI:
tpix get @preview/scaffolder:0.2.12. Import in your Typst file
Add this to your .typ file:
#import "@preview/scaffolder:0.2.1": *The scaffolder Package
Show borders around the main text area, header and footer in Typst documents.
This may be useful to understand and debug layout issues.
The idea is similar to the LaTeX showframe
package.
Usage
#import "@preview/scaffolder:0.2.1": scaffolding
#set page(paper: "a6")
#set page(background: scaffolding())
#lorem(100)
#pagebreak()
#set page(
background: scaffolding(stroke: blue + 1pt),
columns: 2,
)
#lorem(100)
Known issues
The following limitations are known, PRs to address them are always welcome!:
- (none)
Feature ideas
The following are some ideas of functionality that might be added or improved
in this package:
- Further separate measuring and rendering steps in the implementation.
This would allow to make the rendering more customizable
e.g. like the cross markers in this related
tex.SEquestion,
or by not having contiguous lines but just rectangles around the main and
margin text areas.
Acknowledgements
The following Typst issues and forum post inspired this package and informed
its design and implementation:
LaTeX equivalents
- the
layoutpackage shows the page dimensions - the
showframepackage - the
geometrypackage used as\usepackge[showframe,pass]{geometry} - a related
tex.SEquestion