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

オープン
#15,357 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
94

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quarto-dev/quarto-cli のほかの issue

quarto-dev/quarto-cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。