Incorrect "Article Notebook" links in generated pdf from manuscript project

Aperta
#15,357 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, r, yaml
Ambito
tooling

Direzione di ricerca

In a manuscript project, start with the provided _quarto.yml and index.qmd, then run the reproduction commands and compare the link in _manuscript/_tex/index.tex with the HTML files in _manuscript/. The issue is done when the PDF’s Article Notebook link points to https://example.com/ms/index-preview.html rather than the nonexistent index.qmd.html.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug manuscript
Bug description

Manuscript PDF "Article Notebook" links point to index.qmd.html, not index-preview.html

I noticed in a manuscript project I'm writing that the Article Notebook links in the pdf output are correct. I tried to see if perhaps the problem was my own: I added a manuscript_url to _quarto.yml and tried turning off freeze: true. But the error persisted.

Here is a reprex.

_quarto.yml

project:
  type: manuscript

manuscript:
  article: index.qmd
  manuscript-url: https://example.com/ms

format:
  html: default
  pdf: default

index.qmd

---
title: "Reprex: wrong Article Notebook link in PDF"
---

```{r}
#| label: fig-x
#| fig-cap: "A plot"
plot(1:10)
```
Steps to reproduce

In the quarto project directory

quarto render
echo "Article Notebook link found in PDF:"
grep -o 'example.com/ms/[^}]*' _manuscript/_tex/index.tex
echo "Files in _manuscript directory:"
ls _manuscript/*.html
Actual behavior

The links point to https://example.com/ms/index.qmd.html, which doesn't
exist. _manuscript/ contains index-preview.html.

Expected behavior

The PDF's "Article Notebook" links point to the article notebook that the
HTML render produces:
https://example.com/ms/index-preview.html

Your environment
  • Quarto 1.11.9
  • macOS (arm64), R 4.6.1
Lingua principale
JavaScript
Stelle
6.2k
Fork
492
Merge medio
15h 15m
PR unite (30g)
94

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quarto-dev/quarto-cli

Tutte le issue di quarto-dev/quarto-cli

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.