quarto-journals / acm

Quarto template for the Association of Computing Machinery
https://quarto-journals.github.io/acm/
MIT License
14 stars 8 forks source link

Undefined control sequence with tinytex #34

Open wjones127 opened 7 months ago

wjones127 commented 7 months ago

If I try to render the template locally on a Mac with:

quarto use template quarto-journals/acm
cd article
quarto install tinytex
quarto render article.qmd --to acm-pdf

I get:

compilation failed- error
Undefined control sequence.
l.182 \acmPrice
               {15.00}

Even though it appears tinytex is installing the acmart package:

updating existing packages
finding package for acmart.cls
> 1 package to install
> installing acmart (1 of 1)
  This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode

It does work if I instead install a full MacTex installation, which is what I'm doing for now.

Full logs

``` ❯ quarto render article.qmd --to acm-pdf pandoc to: latex output-file: article.tex template: _extensions/quarto-journals/acm/acmarttemplate.tex standalone: true pdf-engine: xelatex variables: graphics: true tables: true default-image-extension: pdf cite-method: natbib metadata block-headings: true knitr: opts_chunk: echo: false colorlinks: true urlcolor: red biblio-style: te.bst documentclass: acmart header-includes: - | \definecolor{mypink}{RGB}{219, 48, 122} bibliography: - bibliography.bib title: The Name of the Title Is Hope short-title: Hope author: - name: Ben Trovato email: trovato@corporation.com orcid: 1234-5678-9012 - name: G.K.M. Tobin email: webmaster@marysville-ohio.com affiliation: name: Institute for Clarity in Documentation address: P.O. Box 1212 city: Dublin state: Ohio country: USA postal-code: 43017-6221 - name: Lars Thørväld email: larst@affiliation.org affiliation: name: The Thørväld Group address: 1 Thørväld Circle city: Hekla country: Iceland - name: Valerie Béranger affiliation: name: Inria Paris-Rocquencourt city: Rocquencourt country: France - name: Aparna Patel affiliation: name: Rajiv Gandhi University address: Rono-Hills city: Doimukh state: Arunachal Pradesh country: India - name: Huifen Chan affiliation: name: Tsinghua University address: 30 Shuangqing Rd city: Haidian Qu state: Beijing Shi country: China - name: Charles Palmer affiliation: name: Palmer Research Laboratories address: 8600 Datapoint Drive city: San Antonio state: Texas country: USA postal-code: 78829 email: cpalmer@prl.com - name: John Smith affiliation: name: The Thørväld Group address: 1 Thørväld Circle city: Hekla country: Iceland email: jsmith@affiliation.org - name: Julius P. Kumquat affiliation: name: The Kumquat Consortium city: New York country: USA email: jpkumquat@consortium.net acm-metadata: final: true copyright-year: 2018 acm-year: 2018 copyright: acmcopyright doi: XXXXXXX.XXXXXXX conference-acronym: Conference acronym 'XX conference-name: | Make sure to enter the correct conference title from your rights confirmation emai conference-date: 'June 03--05, 2018' conference-location: 'Woodstock, NY' price: '15.00' isbn: 978-1-4503-XXXX-X/18/06 shortauthors: Trovato et al. ccs: | \begin{CCSXML} 10010520.10010553.10010562 Computer systems organization~Embedded systems 500 10010520.10010575.10010755 Computer systems organization~Redundancy 300 10010520.10010553.10010554 Computer systems organization~Robotics 100 10003033.10003083.10003095 Networks~Network reliability 100 \end{CCSXML} \ccsdesc[500]{Computer systems organization~Embedded systems} \ccsdesc[300]{Computer systems organization~Redundancy} \ccsdesc{Computer systems organization~Robotics} \ccsdesc[100]{Networks~Network reliability} keywords: - datasets - neural networks - gaze detection - text tagging abstract: | A clear and well-documented \LaTeX\ document is presented as an article formatted for publication by ACM in a conference proceedings or journal publication. Based on the "acmart" document class, this article presents and explains many of the common variations, as well as many of the formatting elements an author may use in the preparation of the documentation of their work. 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 updating tlmgr updating existing packages finding package for acmart.cls > 1 package to install > installing acmart (1 of 1) This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode finding package for manyfoot.sty > 1 package to install > installing ncctools (1 of 1) This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode compilation failed- error Undefined control sequence. l.182 \acmPrice {15.00} ```

wjones127 commented 7 months ago

A colleague of mine reproduced this just now, so I think it's not just limited to my computer.

dragonstyle commented 7 months ago

Thanks for reporting this!

The issue is that the most recent version of the acmart class removed acmPrice (your full installation of tex is likely providing an older version of the template):

https://github.com/borisveytsman/acmart/blob/049003167a3d4b78502ced539dfb8eb59aef6ffc/README#L17

There is something a bit more complicated in play here as we are attempting to include a static version of the class, but it isn't being used properly (due to the way we have the extension configured). I'll take a closer look and get a fix prepared that is general in this repo later today.

In the meantime, if you'd like you can remove \acmPrice{$acm-metadata.price$} from the template partial located in _extensions/quarto-journals/acm/partials/_acmart_preamble.tex to just get up and running if you'd like.