Skip to content
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

crossref values are displayed in html but not in pdf #11772

Open
bergsmat opened this issue Jan 2, 2025 · 4 comments
Open

crossref values are displayed in html but not in pdf #11772

bergsmat opened this issue Jan 2, 2025 · 4 comments
Labels
books enhancement New feature or request latex LaTeX engines related libraries and technologies
Milestone

Comments

@bergsmat
Copy link

bergsmat commented Jan 2, 2025

Bug description

crossref attributes appendix-title and appendix-delim are not implemented in pdf.

Steps to reproduce

  • Create a new quarto project in RStudio by invoking the default template as project "example".
  • Add details.qmd in project directory with content "# Details".
  • Tweak _quarto.yml as below.
  • Run quarto render from terminal in project directory.
project:
  type: book

book:
  title: "example"
  author: "Norah Jones"
  date: "1/2/2025"
  chapters:
    - index.qmd
    - intro.qmd
    - summary.qmd
    - references.qmd
  appendices: 
    - details.qmd

crossref:
  appendix-title: "Attachment"
  appendix-delim: ":"

bibliography: references.bib

format:
  html:
    theme: cosmo
  pdf:
    documentclass: scrreprt
  

editor: visual

Expected behavior

I expect to see "Attachment A: Details" in example/_book/details.html and in example.pdf.

Actual behavior

I see "Attachment A: Details" in example/_book/details.html but in example.pdf I just see "A Details".

Your environment

  • IDE: RStudio 2023.06.2 Build 561
  • OS: Windows Version 10.0.19045 Build 19045

Quarto check output

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.353
      Path: C:\Program Files\RStudio\resources\app\bin\quarto\bin
      CodePage: 1252

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

[>] Checking Python 3 installation....OK
      Version: 3.10.3
      Path: C:/Users/tim.bergsma/AppData/Local/Programs/Python/Python310/python.exe
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with py -m pip install jupyter

[>] Checking R installation...........OK
      Version: 4.4.2
      Path: C:/PROGRA~1/R/R-44~1.2
      LibPaths:
        - C:/Users/tim.bergsma/AppData/Local/R/win-library/4.4
        - C:/Program Files/R/R-4.4.2/library
      knitr: 1.42
      rmarkdown: 2.21

[>] Checking Knitr engine render......OK
@bergsmat bergsmat added the bug Something isn't working label Jan 2, 2025
@cscheid cscheid added latex LaTeX engines related libraries and technologies enhancement New feature or request and removed bug Something isn't working labels Jan 2, 2025
@cscheid cscheid added this to the Future milestone Jan 2, 2025
@mcanouil
Copy link
Collaborator

mcanouil commented Jan 2, 2025

@bergsmat Could you update your Quarto version? You are using a fairly old one (1.3). Current version is 1.6.

https://quarto.org/docs/get-started/

As it seems you are using Quarto embedded in an RStudio release, it also means you are using an old version of RStudio which you might want to update as well.

Edit: Using 1.7.5 pre-release, the LaTeX book template does indeed not use the crossref alternative language.

@mcanouil mcanouil added the books label Jan 2, 2025
@bergsmat
Copy link
Author

bergsmat commented Jan 3, 2025

Thanks. I updated to 1.6. But now I have the empty refs problem discussed in #6819 . Perhaps I need a matching version of pandoc? Still trying, and the “no cite” workaround did not help.

@mcanouil
Copy link
Collaborator

mcanouil commented Jan 3, 2025

Quarto handles its dependencies and you should not interfere with that.

The issue you mentioned is closed thus has been resolved. Without a small reproducible example showing your new issue, we cannot do anything to help.

Please open a new discussion (not an issue) has it's unrelated to the issue reported here.

@bergsmat
Copy link
Author

bergsmat commented Jan 3, 2025

@mcanouil Duly noted, thanks. I have updated RStudio as suggested, and I have updated Quarto to 1.6 (.39) as requested. I confirm that the behavior originally reported for Quarto 1.3 persists after updating to 1.6. This seems consistent with your finding above for 1.7.5 pre-release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
books enhancement New feature or request latex LaTeX engines related libraries and technologies
Projects
None yet
Development

No branches or pull requests

3 participants