Skip to content

Undefined control sequence with tinytex #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wjones127 opened this issue Dec 19, 2023 · 2 comments · May be fixed by #39
Open

Undefined control sequence with tinytex #34

wjones127 opened this issue Dec 19, 2023 · 2 comments · May be fixed by #39
Assignees

Comments

@wjones127
Copy link

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}
      <ccs2012>
       <concept>
        <concept_id>10010520.10010553.10010562</concept_id>
        <concept_desc>Computer systems organization~Embedded systems</concept_desc>
        <concept_significance>500</concept_significance>
       </concept>
       <concept>
        <concept_id>10010520.10010575.10010755</concept_id>
        <concept_desc>Computer systems organization~Redundancy</concept_desc>
        <concept_significance>300</concept_significance>
       </concept>
       <concept>
        <concept_id>10010520.10010553.10010554</concept_id>
        <concept_desc>Computer systems organization~Robotics</concept_desc>
        <concept_significance>100</concept_significance>
       </concept>
       <concept>
        <concept_id>10003033.10003083.10003095</concept_id>
        <concept_desc>Networks~Network reliability</concept_desc>
        <concept_significance>100</concept_significance>
       </concept>
      </ccs2012>
      \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
Copy link
Author

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

@dragonstyle
Copy link
Collaborator

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.

@dragonstyle dragonstyle self-assigned this Dec 20, 2023
@cderv cderv linked a pull request Apr 16, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants