Code listing for executable code chunks! #6216
-
Hi, The quarto documentation mentions that we can reference code listings as in here https://quarto.org/docs/authoring/cross-references.html#code-listings. However, that seems to only work for static code chunks and not for executable code chunks! Is that correct and will that be a feature that will come to quarto soon? In the time being, is the only work around this is to have two copies of the code chunk, one executable and hidden and another static one with the listing reference? Thank you. Ahmed. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Yes, that's the only currently supported workaround. |
Beta Was this translation helpful? Give feedback.
-
FYI the same question already answered with a working "knitr" example: |
Beta Was this translation helpful? Give feedback.
Yes, that's the only currently supported workaround.