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
152 stars 13 forks source link

Can't render example.qmd to apaquarto-pdf with documentmode: doc #49

Closed mvuorre closed 4 months ago

mvuorre commented 4 months ago

Trying to render a pdf in doc mode errs:

quarto render template.qmd --to apaquarto-pdf --output template-doc.pdf -M documentmode:doc

Gives the following output

pandoc --output template.tex -M documentmode:doc
  to: latex
  template: _extensions/apaquarto/apatemplate.tex
  standalone: true
  pdf-engine: xelatex
  variables:
    graphics: true
    tables: true
  default-image-extension: pdf
  citeproc: false
  toc: false

metadata
  block-headings: false
  fig-cap-location: top
  tbl-cap-location: top
  cap-location: top
  csl: _extensions/apaquarto/apa.csl
  documentclass: apa7
  link-ciations: false
  suppress-bibliography: false
  hyperrefoptions:
    - linktoc=none
  classoption: 'colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue'
  title: My Title
  shorttitle: Short Title in Running Header
  author:
    - name: Jane Doe
      corresponding: true
      orcid: 0000-0000-0000-0001
      email: janedoe@generic.edu
      affiliations:
        - name: Generic University
          department: Department of Scholarly Studies
          address: 1234 Capital St.
          city: New York
          region: NY
          country: USA
          postal-code: 12084-1234
  author-note:
    status-changes:
      affiliation-change: null
      deceased: null
    disclosures:
      study-registration: null
      data-sharing: null
      related-report: null
      conflict-of-interest: null
      financial-support: null
      gratitude: null
      authorship-agreements: null
  abstract: This document is a template.
  keywords:
    - keyword1
    - keyword2
    - keyword3
  bibliography:
    - bibliography.bib
  documentmode: man

Rendering PDF
running xelatex - 1
  This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode

updating tlmgr

updating existing packages
ERROR:
compilation failed- error
Undefined control sequence.
l.24 \DeclareDelayedFloatFlavor
                               {ThreePartTable}{table}

see template.log for more information.
wjschne commented 4 months ago

Works great! thank you.