nmfs-opensci / quarto_titlepages

A Quarto extension for making title and cover pages for PDF output.
https://nmfs-opensci.github.io/quarto_titlepages/
Creative Commons Zero v1.0 Universal
115 stars 20 forks source link

Renders without theme style #43

Closed davidpomerenke closed 9 months ago

davidpomerenke commented 1 year ago

Description

The PDF content renders, but without the titlepage theme.

Steps to Reproduce

❯ quarto use template nmfs-opensci/quarto_titlepages

Quarto templates may execute code when documents are rendered. If you do not 
trust the authors of the template, we recommend that you do not install or 
use the template.
 ? Do you trust the authors of this template (Y/n) › Yes
 ? Directory name: › titlepage-test
[✓] Downloading
[✓] Unzipping
    Found 1 extension.
[✓] Copying files...

Files created:
 - documentation
 - tex
 - references.bib
 - cls
 - img
 - _extensions
 - example_1.pdf
 - example_2.pdf
 - example_3.pdf
 - example_1.qmd
 - QTDublinIrish.otf
 - example_2.qmd
 - example_3.qmd

❯ cd titlepage-test/
❯ quarto render example_1.qmd --to pdf
pandoc 
  to: latex
  output-file: example_1.tex
  standalone: true
  pdf-engine: xelatex
  variables:
    graphics: true
    tables: true
  default-image-extension: pdf

metadata
  documentclass: scrartcl
  classoption:
    - DIV=11
    - numbers=noendperiod
  papersize: letter
  header-includes:
    - '\KOMAoption{captions}{tableheading}'
  block-headings: true
  title: A Sample Title - The SocioEconomic Aspects of Stock Assessments
  subtitle: with non-English diacritics in the author names. See documentation.
  author:
    - name: Jane Doe
      affiliations:
        - name: Minnesota Department of Natural Resources
          address: '500 Lafayette Road Saint Paul, MN 55155'
        - name: University of Minnesota
          department: Department of Mathematics
    - name: Eva Nováková
      affiliations:
        - name: Czech University of Life Sciences
          address: 'Družstevní 666, Vikýřovice, Czechia'
    - name: Matti Meikäläinen
      email: matti@jy.fi
      affiliations:
        - name: University of Kemijärvi
          department: Department of Biological and Environmental Science
          address: 'Kylmäniementie 79, 98120, KEMIJÄRVI, Finland'
    - name: Ashok Kumar
      affiliations:
        - name: University of Minnesota
          department: Department of Mathematics
        - name: HØnefoss Institute
          address: 'R Tradição 35, Portugal 2950-726'
  bibliography:
    - references.bib

WARNING: Unable to resolve crossref @eq-eq2
running xelatex - 1
  This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode

running xelatex - 2
  This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode

Output created: example_1.pdf
Actual PDF Expected (the PDF that was originally in the created template folder)
image image

Quarto version:

❯ quarto --version
1.3.450
❯ quarto check

[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.450
      Path: /Applications/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.10.10
      Path: /Users/david/Repositories/protest-impact/.venv/bin/python
      Jupyter: 5.3.1
      Kernels: ir, python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.2.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library
      knitr: 1.39
      rmarkdown: 2.14

[✓] Checking Knitr engine render......OK

I also tried with a recent pre-release version.

Tex version: TinyTex installed via Quarto, just updated to v2023.08, did not work previously either with v2023.06.

OS: MacOS Ventura 13.4.1 (c)

davidpomerenke commented 1 year ago

Reinstalled tinytex using --update-path, can now give the exact version:

❯ tex --version
TeX 3.141592653 (TeX Live 2023)
kpathsea version 6.3.5
Copyright 2023 D.E. Knuth.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the TeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the TeX source.
Primary author of TeX: D.E. Knuth.
eeholmes commented 9 months ago

Sorry I didn't see this! You were not using the titlepage-pdf theme when rendering. You needed to do this

quarto render example_1.qmd --to titlepage-pdf

instead of

quarto render example_1.qmd --to pdf