LaPreprint / typst

Easily create beautiful preprints in Typst
MIT License
228 stars 10 forks source link

Document with no abstract fails #8

Open mvuorre opened 1 month ago

mvuorre commented 1 month ago

The example at https://typst.app/project/wGseT9HAhk-HHQ7oVBJ-pw contains

#import "lapreprint.typ": template

#show: template.with(
  title: "A beautiful preprint template"
)

and fails with "Type none has no method map (line 278)"

This is related to #4 so suggestion is to do some kind of if-else logic to handle metadata that potentially does not exist.

mvuorre commented 1 month ago

Fixed here https://github.com/MitchellAcoustics/LaPreprint-typst/pull/1