Skip to content

Commit

Permalink
fixed import in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nleanba committed Nov 19, 2024
1 parent 005cf00 commit 07ddabf
Show file tree
Hide file tree
Showing 4 changed files with 536 additions and 517 deletions.
Binary file modified Marginalia.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Put something akin to the following at the start of your `.typ` file:

```typ
#import "@preview/marginalia:version": note, wideblock
#import "@preview/marginalia:0.1.0" as marginalia: note, wideblock
#let config = (
// inner: ( far: 5mm, width: 15mm, sep: 5mm ),
// outer: ( far: 5mm, width: 15mm, sep: 5mm ),
Expand Down
14 changes: 7 additions & 7 deletions main.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "lib.typ" as marginalia: page-setup, note, wideblock
#import "lib.typ" as marginalia: note, wideblock

#let config = (
inner: ( far: 16mm, width: 18mm, sep: 8mm ),
Expand Down Expand Up @@ -102,9 +102,9 @@ Put something akin to the following at the start of your `.typ` file:
// ```
// ]
#block[
#set text(size: 0.9em)
#set text(size: 0.84em)
```typst
#import "@preview/marginalia:0.1.0": note, wideblock
#import "@preview/marginalia:0.1.0" as marginalia: note, wideblock
#let config = (
// inner: ( far: 5mm, width: 15mm, sep: 5mm ),
// outer: ( far: 5mm, width: 15mm, sep: 5mm ),
Expand Down Expand Up @@ -154,14 +154,14 @@ To change the markers, you can override ```typc config.numbering```-function whi
It is recommended to reset the `notecounter` regularly, either per page:
#block[
#set text(size: 0.9em)
#set text(size: 0.84em)
```typ
#set page(header: { marginalia.notecounter.update(0) })
```
]
or per heading:
#block[
#set text(size: 0.9em)
#set text(size: 0.84em)
```typ
#show heading.where(level: 1): it =>
{ marginalia.notecounter.update(0); it }
Expand Down Expand Up @@ -194,7 +194,7 @@ In your documents, consider removing this check and simplifying the ```typc if``
Here's how the headers in this document were made:
#block[
#set text(size: 0.9em)
#set text(size: 0.84em)
```typst
#set page(header: context {
marginalia.notecounter.update(0)
Expand Down Expand Up @@ -232,7 +232,7 @@ And here's the code for the lines in the background:#note[
Not that you should copy them, they're mostly here to showcase the columns and help me verify that everything gets placed in the right spot.
]
#block[
#set text(size: 0.9em)
#set text(size: 0.84em)
```typst
#set page(background: context {
let leftm = marginalia.get-left()
Expand Down
Loading

0 comments on commit 07ddabf

Please sign in to comment.