tiaoma(条码) is a barcode generator for typst. It compiles zint to wasm and use it to generate barcode. It support nearly all common barcode types. For a complete list of supported barcode types, see zint’s documentation.
Example
#import "@preview/tiaoma:0.1.0"
#set page(width: auto, height: auto)
= tiáo mǎ
#tiaoma.ean("1234567890128")
Manual
Please refer to manual for more details.
Comparison
There are multiple barcode/qrcode libraries for typst such as
Here is a comparison of them.
Pros of this package:
- Support more barcode types
- Might be faster because the zint is written in C and compiled to wasm. These libraries are written in typst and javascript.
Cons of this package:
- Doesn’t provide enough customization options although it can be improved in the future.