a

alexandria

@preview

Use multiple bibliographies in a single Typst document

v0.2.2
MIT

Package Information

Last Updated
Minimum Typst Version
0.12.0
Categories
modelthesis

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/alexandria:0.2.2

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/alexandria:0.2.2": *

Version History

0.2.20.12.0
acb798d9f954...
0.2.10.12.0
ae684b2cf348...
0.2.00.12.0
4cc011154c83...
0.1.30.12.0
cece2378d40d...
0.1.20.12.0
d5dafe0ba1bd...
0.1.10.12.0
6e1853f7a8ee...
0.1.00.12.0
279e3f4eb730...

Alexandria

This package provides an alternative to the built-in bibliography to allow a single document to have multiple bibliographies.

This package currently has a few limitations, mostly around how styling applies differently between the built-in bibliography and Alexandria.

Getting Started

To add this package to your project, use this:

#import "@preview/alexandria:0.2.2": *

#show: alexandria(prefix: "x:", read: path => read(path))

...

#bibliographyx(
  "bibliography.bib",
  // title: auto is not yet supported so it needs to be specified
  title: "Bibliography",
)

Usage

See the manual for details.

License

Parts of the Rust plugin that interfaces with the Hayagriva citation library are based on typst-library's bibliography.rs. Likewise, the example bibliographies are taken or adapted from typst-dev-assets' works.bib. Both are licensed from Typst's authors under the Apache License 2.0.

The example CSL style ieee.csl is taken from the CSL project who provide it under the Creative Commons Attribution-ShareAlike 3.0 Unported license.