You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.typ
+37-8Lines changed: 37 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
#letconfig= (
4
4
inner: ( far: 16mm, width: 20mm, sep: 8mm ),
5
5
outer: ( far: 16mm, width: 40mm, sep: 8mm ),
6
-
top: 32mm+1em, bottom: 16mm,
6
+
top: 32mm+11pt, bottom: 16mm,
7
7
book: true,
8
8
// clearance: 30pt,
9
9
// flush-numbers: false,
@@ -136,13 +136,20 @@ By default, the #link(label("marginalianote()"))[```typst #note[...]```] command
136
136
This is a note.
137
137
138
138
They can contain any content, and will wrap within the note column.
139
+
// #note(dy: 11pt)[Sometimes, they can even contain other notes! (But not always, and I don't know what gives.)]
139
140
].
140
141
By giving the argument ```typc reverse: true```, we obtain a note on the left/inner margin.#note(reverse: true)[Reversed.]
141
142
If ```typc config.book = true```, the side will of course be adjusted automatically.
142
143
143
-
If~#note[Note 1] we~#note[Note 2] place~#note[Note 3] multiple~#note[Note 4] notes~#note[Note 5] in~#note(dy:15pt)[This note was given ```typc 15pt``` dy, but it was shifted more than that to avoid Notes 1--5.] one~#note(reverse: true, dy:15pt)[This note was given ```typc 15pt``` dy.] line,#note(dy:110pt)[This note was given ```typc 110pt``` dy.] they automatically adjust their positions.
144
+
If~#note[Note 1] we~#note[Note 2] place~#note[Note 3] multiple~#note[Note 4] notes~#note[Note 5] in~#note(dy:15pt)[This note was given ```typc 15pt``` dy, but it was shifted more than that to avoid Notes 1--5.] one~#note(reverse: true, dy:15pt)[This note was given ```typc 15pt``` dy.] line,#note(dy:10cm)[This note was given ```typc 10cm``` dy.] they automatically adjust their positions.
144
145
Additionally, a ```typc dy``` argument can be passed to shift their initial position by that amount vertically. They may still get shifted around.
145
146
147
+
Notes will shift downwards to avoid previous notes, containing wideblocks, and the top page margin. Notes will shift upwards to avoid later notes and wideblocks, and the bottom page margin. However, if there is not enough space between two wideblocks or between wideblocks and the margins, there will be collisions.
148
+
149
+
Currently, notes (and wideblocks) are not reordered,
150
+
#note[This note lands below the previous one!]
151
+
so two ```typ #note```s are placed in the same order vertically as they appear in the markup, even if the first is shifted with a `dy` such that the other would fit above it.
152
+
146
153
== Markers
147
154
The margin notes are decorated with little symbols, which by default hang into the gap. If this is not desired, set the configuration option ```typc flush-numbers: true```.
148
155
Setting the argument ```typc numbered: false```, we obtain notes without icon/number.#note(numbered: false)[Like this.]
0 commit comments