typst / webapp-issues

Issue tracker for Typst's web app.
https://typst.app
11 stars 0 forks source link

abstract bug in ams template, preview won't display #126

Closed jadebarclay closed 1 year ago

jadebarclay commented 1 year ago

Description

Won't display preview until I delete line 194 from the ams template.typ file or put "abstract" instead of abstract at line 194. With abstract: true or abstract: false it only displays preview if I delete/edit line 194, and always includes the abstract title and no abstract content either way. image

This error first appeared when I had 3 names 2 spaces in the authors: name: yaml. It couldn't render the preview then either, and highlighted line 194 "cannot join content with boolean" image

After I deleted/edited line 194 in the template, it displayed the preview with the full name and didn't have the "expecting keyed pair" error anymore. But if I undelete line 194 or remove the "" it won't preview and the "cannot join content with boolean" error returns.

Browser is Brave.

Reproduction URL

https://typst.app/project/p_saVqxe2Ud8xahZw1fYjg

Browsers

Chrome

OS

Windows

laurmaedje commented 1 year ago

The idea is to write something like abstract: [My Abstract Text ...] and not abstract: true. The argument should contain the abstract's text and if it is a boolean instead, things go wrong.

mattfbacon commented 1 year ago

FYI, attempting to view the project gives "You do not have sufficient permissions".

jadebarclay commented 1 year ago

Sorry -- this should work https://typst.app/project/wxStrpRMmctFGAbY-DLEoS

jadebarclay commented 1 year ago

Ohhh... That makes sense. Just like pandoc without the 'abstract-section' lua filter. Thanks for the help!