Skip to content

Tables caption in Appendix A and Appendix B #406

@Nico-Rojas

Description

@Nico-Rojas

Hi,

First of all, thank you so much for your terrific work.

The issue: In the cookbook references example here there is a super useful way of separating References from two Appendices, Appendix A and Appendix B.

Titles work great, but if one adds tables in the appendix the coding keeps naming tables from Appendix A.

I added the simplest example below, building on the bookdown.org example.

# References

<div id="refs"></div>

# (APPENDIX) Appendix {-} 

# More information
```{r}
t1 <- c(1,2,3)
kable(t1, caption = "This table is Table A1", format = "latex") 
This will be Appendix A.

# One more thing

This will be Appendix B
```{r}
t2 <- c(1,2,3)
kable(t2, caption = "This table is Table A2 and I want it to be Table B1", format = "latex") 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions