arrowrbook / book

https://arrowrbook.com
9 stars 0 forks source link

PDF rendering not picking up custom settings #50

Open thisisnic opened 3 days ago

thisisnic commented 3 days ago

There was something in the most recent PR that changed this. "Before" is HEAD~1 and "After" is HEAD

Before:

nic@xps-15:~/scalinguplive$ quarto render --to pdf
[ 1/12] index.qmd
[ 2/12] foreword.qmd
[ 3/12] intro.qmd
[ 4/12] getting_started.qmd
[ 5/12] data_manipulation.qmd
[ 6/12] files_and_formats.qmd
[ 7/12] datasets.qmd
[ 8/12] cloud.qmd
[ 9/12] advanced_topics.qmd
[10/12] processes.qmd
[11/12] references.qmd
[12/12] appendix.qmd

pandoc 
  to: latex
  output-file: index.tex
  standalone: true
  toc: false
  number-sections: true
  top-level-division: chapter
  pdf-engine: xelatex
  variables:
    graphics: true
    tables: true
  default-image-extension: pdf
  cite-method: natbib

metadata
  crossref:
    chapters: true
  documentclass: krantz
  papersize: letter
  block-headings: true
  bibliography:
    - references.bib
  editor: source
  toc-title: Contents
  biblio-style: apalike
  classoption:
    - krantz2
  hyperrefoptions: bookmarks=false
  links-as-notes: true
  colorlinks: false
  knitr:
    opts_chunk:
      R.options:
        width: 64
  title: Scaling Up With R and Arrow

After:

nic@xps-15:~/scalinguplive$ quarto render --to pdf
[ 1/12] index.qmd
[ 2/12] foreword.qmd
[ 3/12] intro.qmd
[ 4/12] getting_started.qmd
[ 5/12] data_manipulation.qmd
[ 6/12] files_and_formats.qmd
[ 7/12] datasets.qmd
[ 8/12] cloud.qmd
[ 9/12] advanced_topics.qmd
[10/12] processes.qmd
[11/12] references.qmd
[12/12] appendix.qmd

pandoc 
  to: latex
  output-file: index.tex
  standalone: true
  toc: true
  number-sections: true
  top-level-division: chapter
  pdf-engine: xelatex
  variables:
    graphics: true
    tables: true
  default-image-extension: pdf

metadata
  crossref:
    chapters: true
  documentclass: scrreprt
  papersize: letter
  classoption:
    - DIV=11
    - numbers=noendperiod
  header-includes:
    - '\KOMAoption{captions}{tableheading}'
  block-headings: true
  bibliography:
    - references.bib
  editor: source
  title: Scaling Up With R and Arrow

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.455 \mainmatter

CC @jonkeane

jonkeane commented 3 days ago

The problem is the command: quarto render --to pdf. Now that we are using profiles, it should be quarto render --profile pdf. Without the profile bit, it doesn't look at that yaml at all. This is part of the "this is more complicated / more than is strictly necessary, but the way that quarto render works it's the only way" but I probably should have been clearer about that in the PR.

thisisnic commented 3 days ago

I'll add something to the writer's notes myself, thanks for clarifying!