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

Abierto
#15,357 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, r, yaml
Área
tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
JavaScript
Estrellas
6.2k
Forks
492
Merge medio
15 h 15 min
PR fusionados (30 d)
94

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de quarto-dev/quarto-cli

Todos los issues de quarto-dev/quarto-cli

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.