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
{{ message }}
Repository navigation
Commit 3fb398e
Browse filesBrowse the repository at this point in the historyBrowse files
claude: Support margin citations with citeproc enabled
When citeproc is enabled, the native Typst #cite(form: "full") call
fails because citeproc removes the bibliography. This adds a pre-
processing pass that runs pandoc.utils.citeproc() to build a lookup
table of formatted bibliography entries, then inserts those directly
into margin notes instead of using #cite() calls.
Also adds comprehensive tests for citeproc margin citations with
locators, prefix/suffix, author suppression, and multiple citations.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- # Citations appear in margin (rightOf body text)
36
+
- subject: "Bifurcan"
37
+
relation: rightOf
38
+
object: "ventilation shaft"
39
+
- subject: "Ficciones"
40
+
relation: rightOf
41
+
object: "architecture"
42
+
# Sequential citations are stacked vertically in margin
43
+
- subject: "Ficciones"
44
+
relation: below
45
+
object: "Bifurcan"
46
+
- subject: "Universalbibliothek"
47
+
relation: below
48
+
object: "Ficciones"
49
+
# "Siamese Press" is unique to Quain citation in margin
50
+
- subject: "Siamese Press"
51
+
relation: below
52
+
object: "Universalbibliothek"
53
+
- []
54
+
noErrors: default
55
+
---
56
+
57
+
# Prolegomena
58
+
59
+
The universe (which others call the Library) is composed of an indefinite, perhaps infinite, number of hexagonal galleries [@borges1941library, p. 51]. In the center of each gallery is a ventilation shaft, bounded by a low railing. From any hexagon one can see the floors above and below---one after another, endlessly.
60
+
61
+
This essay concerns itself not with the Library's architecture, which has been adequately described elsewhere [see @borges1944ficciones, ch. 1], but with a peculiar feature of its books: the margin notes.
62
+
63
+
# On Marginalia in the Total Library
64
+
65
+
If the Library contains all possible books of 410 pages, it must contain books with margins. And if it contains books with margins, it must contain margin notes. The German philosopher @kurd1933hexagonal did not consider this recursive complication in his calculations.
66
+
67
+
Consider: for each book in the Library, there exists another book containing the first book's text plus commentary in the margins. And for each of these annotated volumes, there exists a meta-commentary. The recursion is, like the Library itself, infinite.
68
+
69
+
## Herbert Quain's Marginal Method
70
+
71
+
The Anglo-Irish writer Herbert Quain [-@quain1936labyrinth, pp. 12-15] reportedly composed his novels in reverse, writing the margin notes first. His masterwork, *April March*, can be read in nine different ways, each determined by which margin notes the reader chooses to follow.
72
+
73
+
## The Margins of the Vindication
74
+
75
+
The seekers of the Vindication [cf. @vindication1738, p. 7 and throughout] have long debated: if the Vindication exists, do its margins contain additional vindications? The First Librarian [@librarians1638first] argued that the true Vindication would have no margins at all---that the text itself would fill every available space, justifying even the whiteness of the paper.
76
+
77
+
# Literary Descendants
78
+
79
+
Borges's influence on subsequent literature is well documented [@casares1940morel; @eco1980name; @calvino1979winter]. Bioy Casares, Borges's collaborator and friend, created machines that record and replay reality. Eco built a library that murders. Calvino wrote about a reader unable to finish any book because each book keeps becoming another book.
80
+
81
+
What these authors share is an understanding that texts are not stable objects but rather provisional arrangements of signs that point to other signs. This is the lesson of the Library: meaning is always deferred, always in the margins.
82
+
83
+
# Conclusion
84
+
85
+
In the Library, I search for the book that will explain my life. Somewhere among the twenty-five symbols lies my vindication. Until then, I write these margin notes, adding to the infinite commentary.
86
+
87
+
As @tzinacana1521jaguar discovered in his prison, sometimes the most important text is not written in books at all but inscribed on the skin of a jaguar, fourteen words that make their speaker omnipotent. But Tzinacana chose not to speak them.
88
+
89
+
Perhaps the Library's true meaning is in the margins we choose not to read, the books we pass by in our endless search for the one book that will make sense of all the others. Perhaps meaning itself is marginal.
- #Citation in margin - "bifurcan" is unique to borges1941library booktitle
34
+
- #Citations appear in margin (rightOf body text)
24
35
- subject: "bifurcan"
25
36
relation: rightOf
26
37
object: "ventilation shaft"
38
+
- subject: "Ficciones"
39
+
relation: rightOf
40
+
object: "architecture"
41
+
# Sequential citations are stacked vertically in margin
42
+
- subject: "Ficciones"
43
+
relation: below
44
+
object: "bifurcan"
45
+
- subject: "Universalbib"
46
+
relation: below
47
+
object: "Ficciones"
48
+
- subject: "Siamese Press"
49
+
relation: below
50
+
object: "Universalbib"
27
51
- []
28
52
noErrors: default
29
53
---
30
54
31
55
# Prolegomena
32
56
33
-
The universe (which others call the Library) is composed of an indefinite, perhaps infinite, number of hexagonal galleries [@borges1941library]. In the center of each gallery is a ventilation shaft, bounded by a low railing. From any hexagon one can see the floors above and below---one after another, endlessly.
57
+
The universe (which others call the Library) is composed of an indefinite, perhaps infinite, number of hexagonal galleries [@borges1941library, p. 51]. In the center of each gallery is a ventilation shaft, bounded by a low railing. From any hexagon one can see the floors above and below---one after another, endlessly.
34
58
35
-
This essay concerns itself not with the Library's architecture, which has been adequately described elsewhere [@borges1944ficciones], but with a peculiar feature of its books: the margin notes.
59
+
This essay concerns itself not with the Library's architecture, which has been adequately described elsewhere [see @borges1944ficciones, ch. 1], but with a peculiar feature of its books: the margin notes.
36
60
37
61
# On Marginalia in the Total Library
38
62
39
-
If the Library contains all possible books of 410 pages, it must contain books with margins. And if it contains books with margins, it must contain margin notes. The German philosopher Kurd Lasswitz [@kurd1933hexagonal] did not consider this recursive complication in his calculations.
63
+
If the Library contains all possible books of 410 pages, it must contain books with margins. And if it contains books with margins, it must contain margin notes. The German philosopher @kurd1933hexagonal did not consider this recursive complication in his calculations.
40
64
41
65
Consider: for each book in the Library, there exists another book containing the first book's text plus commentary in the margins. And for each of these annotated volumes, there exists a meta-commentary. The recursion is, like the Library itself, infinite.
42
66
43
67
## Herbert Quain's Marginal Method
44
68
45
-
The Anglo-Irish writer Herbert Quain [@quain1936labyrinth] reportedly composed his novels in reverse, writing the margin notes first. His masterwork, *April March*, can be read in nine different ways, each determined by which margin notes the reader chooses to follow.
69
+
The Anglo-Irish writer Herbert Quain [-@quain1936labyrinth, pp. 12-15] reportedly composed his novels in reverse, writing the margin notes first. His masterwork, *April March*, can be read in nine different ways, each determined by which margin notes the reader chooses to follow.
46
70
47
71
## The Margins of the Vindication
48
72
49
-
The seekers of the Vindication [@vindication1738] have long debated: if the Vindication exists, do its margins contain additional vindications? The First Librarian [@librarians1638first] argued that the true Vindication would have no margins at all---that the text itself would fill every available space, justifying even the whiteness of the paper.
73
+
The seekers of the Vindication [cf. @vindication1738, p. 7 and throughout] have long debated: if the Vindication exists, do its margins contain additional vindications? The First Librarian [@librarians1638first] argued that the true Vindication would have no margins at all---that the text itself would fill every available space, justifying even the whiteness of the paper.
50
74
51
75
# Literary Descendants
52
76
53
-
Borges's influence on subsequent literature is well documented. Bioy Casares [@casares1940morel], Borges's collaborator and friend, created machines that record and replay reality. Eco [@eco1980name]built a library that murders. Calvino[@calvino1979winter] wrote about a reader unable to finish any book because each book keeps becoming another book.
77
+
Borges's influence on subsequent literature is well documented[@casares1940morel; @eco1980name; @calvino1979winter]. Bioy Casares, Borges's collaborator and friend, created machines that record and replay reality. Eco built a library that murders. Calvino wrote about a reader unable to finish any book because each book keeps becoming another book.
54
78
55
79
What these authors share is an understanding that texts are not stable objects but rather provisional arrangements of signs that point to other signs. This is the lesson of the Library: meaning is always deferred, always in the margins.
56
80
57
81
# Conclusion
58
82
59
83
In the Library, I search for the book that will explain my life. Somewhere among the twenty-five symbols lies my vindication. Until then, I write these margin notes, adding to the infinite commentary.
60
84
61
-
As Tzinacana discovered in his prison[@tzinacana1521jaguar], sometimes the most important text is not written in books at all but inscribed on the skin of a jaguar, fourteen words that make their speaker omnipotent. But Tzinacana chose not to speak them.
85
+
As @tzinacana1521jaguar discovered in his prison, sometimes the most important text is not written in books at all but inscribed on the skin of a jaguar, fourteen words that make their speaker omnipotent. But Tzinacana chose not to speak them.
62
86
63
87
Perhaps the Library's true meaning is in the margins we choose not to read, the books we pass by in our endless search for the one book that will make sense of all the others. Perhaps meaning itself is marginal.
0 commit comments