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

Error when rendering to apaquarto-typst #114

Open
cbrnr opened this issue Mar 6, 2025 · 5 comments
Open

Error when rendering to apaquarto-typst #114

cbrnr opened this issue Mar 6, 2025 · 5 comments

Comments

@cbrnr
Copy link

cbrnr commented Mar 6, 2025

I get an error when rendering to apaquarto-typst, for example with the following document:

---
title: "My Paper's Title: A Full Analysis of Everything"
shorttitle: "My Paper's Title"
author:
  - name: W. Joel Schneider
    corresponding: true
    orcid: 0000-0002-8393-5316
    email: [email protected]
    affiliations:
      - name: Temple University
        department: College of Education and Human Development
        address: 1301 Cecil B. Moore Ave.
        city: Philadelphia
        region: PA
        postal-code: 19122-6091
abstract: "This is my abstract."
keywords: [keyword1, keyword2]
format:
  apaquarto-typst: default
---

This will result in the following error:

[typst]: Compiling mwe.typ to mwe.pdf...error: file not found (searched at /Users/clemens/Projects/adds/article/\_extensions/wjschne/apaquarto/apa.csl)
    ┌─ article/mwe.typ:432:25
    │
432 │ #set bibliography(style: "\_extensions/wjschne/apaquarto/apa.csl") 
    │                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I'm using Quarto 1.6.42 and apaquarto 4.3.10 on macOS.

@wjschne
Copy link
Owner

wjschne commented Mar 6, 2025

I cannot duplicate this error. It is strange that the apa.csl file is reported as missing because it is used by the .docx and .html formats, which seem to run well for you. I would try re-installing the template. If that does not work, then I am happy to meet over Zoom and try to identify the problem.

@jgeller112
Copy link

I am having the same issue--upgraded to new version of Quarto which might have something to do with it.

@cbrnr
Copy link
Author

cbrnr commented Mar 7, 2025

Yes, this seems to be related to the Quarto version used. I bisected the issue down to v1.6.1, which breaks apaquarto-typst (v1.6.0 and earlier work just fine).

@tuomaseerola
Copy link

I have the same (Mac OS, latest quarto, latest apaquarto) , but it is easily fixed when the extra \ is removed from the last line ( #set bibliography(style: "\_extensions/wjschne/apaquarto/apa.csl") and compilation is done separately (quarto typst compile example.typ). I suspect it is being added when the local folder is being created and the script thinks the _ requires an escape character (\).

@wjschne
Copy link
Owner

wjschne commented Mar 7, 2025

The Quarto team members are aware of the issue and are deciding what to do about it. This problem slipped past me because it does not occur on Windows for reasons unknown to me.

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

No branches or pull requests

4 participants