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

未关闭
#15,357 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript, r, yaml
领域
tooling

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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
主要语言
JavaScript
星标
6.2k
派生
492
平均合并
15 小时 15 分钟
30 天内合并 PR
94

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

quarto-dev/quarto-cli 的其他 Issue

查看 quarto-dev/quarto-cli 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。