quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.75k stars 306 forks source link

book chapter cross referencing going wrong #9294

Open cscheid opened 5 months ago

cscheid commented 5 months ago

(cc @mine-cetinkaya-rundel)

Something seems to have changed with book chapter cross referencing. See https://r4ds.hadley.nz/whole-game, the references used to say things like "In Chapter 1 ...", now it shows the chapter number and the title. I tried a few variations of cross-referencing but I'm not landing on something that gives "Chapter 1".

mine-cetinkaya-rundel commented 5 months ago

I think this happens when chapters are linked from part landing pages, e.g. here we observe the same behavior -- https://openintro-ims2.netlify.app/introduction-to-data, vs. from any other page, e.g., here it looks ok -- https://openintro-ims2.netlify.app/02-data-design#sec-chp2-review.

cderv commented 5 months ago

@mine-cetinkaya-rundel I think you found the important point. Those part page are using .unnumbered on there header https://github.com/OpenIntroStat/ims/blob/30e6a98100246e298884303ae0b75e4d56b12f8d/introduction-to-data.qmd#L1

# Introduction to data {.unnumbered}

So I believe this could related to recent changes by @cscheid regarding unnumbered chapters. Possibly

cderv commented 3 months ago

Related issue: