I'm trying to add numbered remarks (like in the definition or theorem environments) that I could referenced in a bookdown document. Something like:
```{remark, mylab}
my comment
```
In Remark \@ref(rem:mylab) we discussed...
which would produce:
Remark 1.1 my comment
In Remark 1.1 we discussed ...
Would anyone know if this is possible? Also, is it possible to change the numbering to A, B and so on? That is to have instead:
Remark A my comment
In Remark A we discussed ...
Thank you very much!
The general solution is:
example
.Redefine the printed name for that environment in _bookdown.yml
(c.f. https://bookdown.org/yihui/bookdown/internationalization.html) via:
language:
label:
exm: 'Remark '
In your Rmd
files use
```{example, mylab}
my comment
```
In Remark \@ref(exm:mylab) we discussed...
Note that you have to use example
and the correspoding label prefix exm
.
I do not know of a general solution to use alphabetic instead of numeric numbering. I am sure that this would be possible if one would use only LaTeX/PDF output.