#How to make a single continuous page with no page breaks?
6 messages ยท Page 1 of 1 (latest)
ok, I should clarify that this won't fully remove pagebrakes. Like #pagebreak function will still work, it will just create a new page which will last until the next pagebreak
they will be visible
height: auto means that the height of the page is unbounded and page will grow however much it needs to, to fit all the content in it
ok ok
https://typst.app/docs/tutorial/making-a-template/ you can check this out, but TLDR is:
Styles are not exported, so
// a.typ
#set text(red)
// b.typ
#import "a.typ" // same for include "a.typ"
red text
won't work.
However, functions are exported. So
// a.typ
#let make-red(content) = {
set text(red)
content
}
// b.typ
#import "a.typ": make-red
#make-red[red text]
will work.
However, since wrapping your whole document in function calls is cumbersome, there is plain #show rule, which applies the function to all the content after it, so:
// a.typ
#let make-red(content) = {
set text(red)
content
}
// b.typ
#import "a.typ": make-red
#show: make-red
red text
will color text in red.
Templates work in the same way. Those are usually functions which return new functions, so for example document(author: "elteammate") will return a function which accepts content and returns it, beautifully wrapped in headings, with title page, and with an author specified, etc. So you can use it with show, like #show: document(author: "elteammate").