Replies: 6 comments 6 replies
-
What do you mean by "table names"? The recommend way to use expression in captions is to use cross-ref div:
The legacy knitr approach:
In the future, please spend a bit more time searching through previous discussions: |
Beta Was this translation helpful? Give feedback.
-
Thanks. But what about making the label dynamic too. I actually want to use
this for knitr::child_document or knutr::knit_expand
…On Wed, Oct 30, 2024 at 10:58 PM Mickaël Canouil ***@***.***> wrote:
The recommend way is to use cross-ref div:
::: {#fig-amazing}
```{r}
whatever
```
A caption using `{r} params[["value"]]`
:::
The legacy knitr approach:
```{r}
#| label: fig-amazing
#| fig-cap: !expr 'paste("A caption using", params[["value"]])'
whatever
```
—
Reply to this email directly, view it on GitHub
<#11249 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APQKHS7ABDDFYGUE7WPQ5N3Z6EJMTAVCNFSM6AAAAABQ4TOPFKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMJQGMYTSNY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
yes. dates was my bad. actually copied little bit from rmarkdown document. What i really want to achieve is to refer to table generated from the child document. There will be a table div labbeled "gapminder_India" for example. How would i refer to this dynamically? |
Beta Was this translation helpful? Give feedback.
-
I dont know why it does not work for you, Thanks. |
Beta Was this translation helpful? Give feedback.
-
Thanks and sorry. Figured that out, but i still cant manage when the names to pass have special characters between them |
Beta Was this translation helpful? Give feedback.
-
Thanks. That helped me solve it!!
…On Sat, Nov 2, 2024 at 11:59 PM Mickaël Canouil ***@***.***> wrote:
You need to clean those names as references should only be alphanumerical
mostly ASCII.
—
Reply to this email directly, view it on GitHub
<#11249 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APQKHS6HOQRLFYIALELXX6TZ6UKX7AVCNFSM6AAAAABQ4TOPFKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMJTGA4DIMI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Description
Hello all,
I want to have dynamic table names (tables are based on computations, mostly in R) based on parameters using quarto document. How can this be done?
Beta Was this translation helpful? Give feedback.
All reactions