英文:
In a quarto book, how to remove the chapter number in a figure or table crossreference?
问题
我在写一个四开本的不同章节。当我在一个章节中引用一个图表时,章节号会被包括进去。例如,在第二章中的图表1将会是“图2.1”,第三章中的表2将会是“表3.2”。有没有办法去掉章节的引用?我想让每个章节的编号在每个章节中重新开始,所以每个章节可以有一个“图1”或“表2”。我不需要引用来自另一个章节的图表(例如,在第二章中,我不会引用第三章中的图表1)。
非常感谢!
英文:
I'm writing different chapters in a quarto book. When I reference a figure or table in a chapter, the chapter number is included. For example, figure 1 in chapter 2 will be "Figure 2.1" and table 2 in chapter 3 will be "Table 3.2". Is there a way to remove the chapter reference? I want the numbers to restart in each chapter, so each chapter can have a "Figure 1" or "Table 2". I do not need to reference figures/ tables from another chapter (so in chapter 2 I wont reference to figure 1 in chapter 3, for example).
Many thanks!
答案1
得分: 1
你可以在你的 _quarto.yml
文件中使用:
crossref:
chapters: false
来关闭章节之间的交叉引用。
英文:
You can use
crossref:
chapters: false
in your _quarto.yml
to turn of cross-reference between chapters.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论