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

Đang mở
#15,357 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, r, yaml
Lĩnh vực
tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
JavaScript
Star
6.2k
Fork
492
Merge trung bình
15 giờ 15 phút
Pull request đã merge (30 ngày)
94

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của quarto-dev/quarto-cli

Tất cả issue của quarto-dev/quarto-cli

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.