```{example, inbuilt, include=FALSE} 2+3
```{newtheorem, author, env='Exercise', include=FALSE} 4+5
```{example, inbuilt}
```{newtheorem, author, env='Exercise'}
```{example, inbuilt}
# Section 2 ```{example} I should be example 2.1
```{example, inbuilt}
```{newtheorem, author, env='Exercise'}
I should be example 2.2
{newtheorem, author2, env='Exercise'}
I should be exercise 2.1
Conclusion: This worked already everywhere except LaTeX. This is a Bookdown issue. To be fair, there isn't any nice way to do this in LaTeX. I did not want to go down the road of restatable in LaTeX. Instead I wanted to resolve this prior to that point in the way an author would. To do so we change the repeated label to be the ref instead and also ensure that the counter is not incremented.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.