【发布时间】:2016-11-18 13:13:29
【问题描述】:
Bookdown 是一个很棒的包,我期待看到它是如何开发的,但是现在我在以pdf_document2 格式呈现数字时遇到了麻烦,而数字在附录中。具体来说,当带有标题的图在附录中时,图号应为 A.1、A.2、B.1、B.2 等形式,但图号被视为具有数字 3.1 的正常部分, 3.2、4.1、4.2等,其中附录分别为第三节和第四节。这是一个例子:
---
title: "Untitled"
author: "John Doe"
date: "November 18, 2016"
documentclass: article
output:
bookdown::pdf_document2:
toc: yes
fig_caption: yes
number_sections: yes
linkcolor: blue
---
# Chapter One
```{r a, fig.cap="rabble rabble"}
plot(cars) # a scatterplot
```
```{r b, fig.cap="rabble rabble"}
plot(cars) # a scatterplot
```
# Chapter Two
# (APPENDIX) Appendix {-}
# Appendix A
```{r c, fig.cap="rabble rabble"}
plot(cars) # a scatterplot
```
# Appendix B
```{r d, fig.cap="rabble rabble"}
plot(cars) # a scatterplot
```
这是 bookdown 本身的问题,还是在某些方面不正确?
【问题讨论】: