Skip to content

render failing in Crimson jobfish example #45

@CaitlinAkselrud-NOAA

Description

@CaitlinAkselrud-NOAA

I've been getting a rendering error in the Crimson jobfish example:

compilation failed- error

Undefined control sequence.

l.257 \pandocbounded

{\includegraphics[width=6in, alt=An illustration of Crim...

The solution required me manually modifying the YAML file to add the following:

format:
  pdf:
    include-in-header:
      text: |
        \providecommand{\pandocbounded}[1]{#1}

Thus my new YAML looks like this:

---
title: 'Stock Assessment for Crimson jobfish (Pristipomoides filamentosus) on Hawaii in 2026'
author:
  - name: 'Samantha Schiano'
    affiliations:
      - name: 'NOAA Fisheries Office of Science and Technology'
        address: '1315 East-West Highway'
        city: 'Silver Spring, MD'
        state: 'MD'
        postal-code: '20910'
  - name: 'Jane Doe'
    affiliations:
      - name: 'NOAA Fisheries Pacific Islands Fisheries Science Center'
        address: '1845 Wasp Boulevard'
        city: 'Honolulu, HI'
        state: 'HI'
        postal-code: '96818'
date: today
keep-tex: true 
mainfont: 'Latin Modern Sans' 
cover: support_files/Crimson_jobfish.png
pdf-engine: lualatex
format: 
  pdf: 
    documentclass: article
    papersize: letter
    number-sections: true
    template-partials:
      - 'support_files/before-body.tex'
      - 'support_files/_titlepage.tex'
    include-in-header:
      - 'support_files/in-header.tex'
      - text: |
          \providecommand{\pandocbounded}[1]{#1}
    toc: true
    sansfont: 'Latin Modern Sans'
    lof: true
    lot: true
    titlepage-geometry: 
      - top=2in
      - bottom=1in
      - right=1in
      - left=1in
output-file: 'Crimson_jobfish_SAR_2026' 
params:
   office: 'PIFSC'
   species: 'Crimson jobfish'
   spp_latin: 'Pristipomoides filamentosus'
   region: 'Hawaii'
bibliography:  
  - asar_references.bib
csl: support_files/cjfas.csl
---

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions