I’m writing my own personal notes covering system administration using Typst. Even though there are no strict rules regarding citations and bibliography management, I would like to use #bibliography()
with the Hayagriva format at the end of the document because I think this is a better alternative to including footnotes and regular hyperlinks in the middle of the text, potentially breaking the flow of reading.
Some of my findings are from Linux man pages (e.g. man less
) or PowerShell documentation accessible with the command Get-Help
(e.g. Get-Help about_Return
). How would an entry of these two examples look like in a Hayagriva file?
I’m thinking of making the bibliography entries so that they include the commands in monospace, looking like this at the end of the document:
[1] “LESS(1)” [Manual] Access:
man less
[2] “About return.” [Manual] Access:about_Return
Here’s what I’ve tried so far:
# bibliography.yml
ps-help-about-return:
type: manual
title: About return
url: Get-Help about_Return
man-less:
type: manual
title: LESS(1)
url: man less
// main.typ
Reference to the man page @man-less
Reference to the PowerShell About page @ps-help-about-return
#bibliography("bibliography.yml")
I got the idea of using manual
as the type from Stack Exchange TeX. However, this type is not supported by Typst (0.13.1); running typst watch
with these entries gives me the error ‘unknown variant manual
’.
I’m also not sure whether url
is the most suitable field name for storing the command. I’m open to suggestions on this as well.