0

In R Bookdown, I would like to refer to a definition:

<!-- body or .Rmd file -->
The first definition is Definition \@ref(newterm) below:

::: {.definition #newterm name="new def 1"}
New def 1 is a definition for this e-book.
:::

When I render the book, I get the following rendered in the body of the index.html file:

The first definition is Definition ?? below:

Definition 1.1 (new term 1) New def 1 is definition for this e-book.

and the following warning message

Warning message:
The label(s) newterm not found 

How can I reference this definition correctly?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.