Commit 2c97ef3
committed
when a numbered element (figure/table/equation) appears before Chapter 1 in the document, we number it with 0.x (otherwise here j will be character(0), and the following num[k} = cntr$inc() will error)
example: https://cran.rstudio.com/web/packages/SimCorrMix/vignettes/corr_mixture.html1 parent 02e5afd commit 2c97ef3
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
554 | 559 | | |
555 | 560 | | |
556 | 561 | | |
| |||
567 | 572 | | |
568 | 573 | | |
569 | 574 | | |
| 575 | + | |
570 | 576 | | |
571 | 577 | | |
572 | 578 | | |
| |||
0 commit comments