wjschne / apaquarto

A quarto extension for creating APA7 documents in .docx, .html, and .pdf formats
https://wjschne.github.io/apaquarto/
Creative Commons Zero v1.0 Universal
153 stars 13 forks source link

bad indentation error with apaquarto-pdf #51

Closed schneiderpy closed 4 months ago

schneiderpy commented 4 months ago

I get a bad indentation error for apaquarto-pdf and documentmode: jou

format:
  #apaquarto-docx: default
  #apaquarto-html: default
  apaquarto-pdf: default
    # Can be jou (journal), man (manuscript), stu (student), or doc (document)
    documentmode: jou
    keep-tex: true

bad indentation of a mapping entry at line 37, column 5: documentmode: jou ^

wjschne commented 4 months ago

I think this error will go away if you remove default from the apaquarto-pdf: yaml:

format:
  #apaquarto-docx: default
  #apaquarto-html: default
  apaquarto-pdf: 
    # Can be jou (journal), man (manuscript), stu (student), or doc (document)
    documentmode: jou
    keep-tex: true
schneiderpy commented 4 months ago

Thank you @wjschne for your prompt answer. It renders know just as a word doc (but the error disapeared) not as a pdf. By the way: Name and Institution are not centered (they are left aligned).

wjschne commented 4 months ago

I think the alignment problem is fixed. Please verify. To render a .pdf in RStudio, there is a drop-down box on the Render button that allows you to select any of the formats you have listed. Let me know if you are still having difficulty rendering the .pdf.

schneiderpy commented 4 months ago

Thank you Joel. The alignment issue is fixed and the pdf renders too.