Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with single abstract #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MitchellAcoustics
Copy link

This commit aims to fix #3 (comment) by adding a check to catch a string abstract and by ensuring an array is returned when a single abstract is provided.

This commit aims to fix LaPreprint#3 (comment) by adding a check to catch a string abstract and by ensuring an array is returned when a single abstract is provided.
@MitchellAcoustics
Copy link
Author

MitchellAcoustics commented Apr 6, 2024

Per the Typst documentation, to return a single value array, it should be written as (1,). Since we want an array containing a single dictionary, it should be ((title: "", content: ""), ). This solves the issue.

When the author list is to short, the authors are displayed on the same line as the title. This patch adds a linebreak before the authors, so that the authors are displayed on a new line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile breaks when given a single abstract
1 participant