|
| 1 | +--- |
| 2 | +title: "Margin Citation with Locators" |
| 3 | +papersize: us-letter |
| 4 | +citation-location: margin |
| 5 | +bibliography: borges-refs.bib |
| 6 | +format: |
| 7 | + html: default |
| 8 | + typst: |
| 9 | + keep-typ: true |
| 10 | +_quarto: |
| 11 | + tests: |
| 12 | + typst: |
| 13 | + ensureTypstFileRegexMatches: |
| 14 | + # Margin citations use direct note() calls with cite(form: "full") |
| 15 | + - ['#note\(', 'form: "full"'] |
| 16 | + - [] |
| 17 | + ensurePdfRegexMatches: |
| 18 | + - - 'LOCATOR-MARKER' |
| 19 | + - 'Borges' |
| 20 | + - 'Quain' |
| 21 | + # Locators appear INLINE after citation number [N, locator] |
| 22 | + - '\[1,\s*p\.\s*42\]' # borges1941library, p. 42 |
| 23 | + - '\[2,\s*pp\.\s*100' # borges1944ficciones, pp. 100-115 |
| 24 | + - '\[3,\s*ch\.\s*3\]' # quain1936labyrinth, ch. 3 |
| 25 | + - '\[4,\s*p\.\s*200' # eco1980name, p. 200, fig. 5 |
| 26 | + - [] |
| 27 | + ensurePdfTextPositions: |
| 28 | + - # Full citation in margin - "bifurcan" is unique to borges1941library booktitle |
| 29 | + - subject: "bifurcan" |
| 30 | + relation: rightOf |
| 31 | + object: "LOCATOR-MARKER" |
| 32 | + # Locator appears inline (left of margin content) |
| 33 | + - subject: "p. 42" |
| 34 | + relation: leftOf |
| 35 | + object: "bifurcan" |
| 36 | + - [] |
| 37 | + noErrors: default |
| 38 | +--- |
| 39 | + |
| 40 | +# Testing Citation Locators in Margins |
| 41 | + |
| 42 | +LOCATOR-MARKER: The Library was first described with specific page references [@borges1941library, p. 42]. |
| 43 | + |
| 44 | +The expanded edition contains more details [@borges1944ficciones, pp. 100-115]. |
| 45 | + |
| 46 | +Chapter-specific references also work [@quain1936labyrinth, ch. 3]. |
| 47 | + |
| 48 | +Multiple locator types: see [@eco1980name, p. 200, fig. 5] for the library map. |
0 commit comments