rstudio / bookdown

Authoring Books and Technical Documents with R Markdown
https://pkgs.rstudio.com/bookdown/
GNU General Public License v3.0
3.78k stars 1.27k forks source link

Highlighting figure calls (\@ref(fig:MyFigName) within an Rmd #765

Closed alapo closed 5 years ago

alapo commented 5 years ago

I am started using bookdown for some of my manuscripts but I am running into a small annoyance when I write the document. Specifically, it seems that themes won't highlight the special terms used to call figures and tables. This issue was posted on StackOverflow but gained little tractions

The issue I am running into is that when I write something in bookdown the function calling the Figure is not being highlighted properly (see image below).

I have imported my own rsTheme in an attempt to solve this problem myself I don't see an option to add keywords to highlight.

img

But I would like for the entire function to be colored differently from the inline text (Photoshop version of desired output shown below) which would allow me to differentiate it better from other text in my document img

Does anyone have any input on how this could be accomplished?


By filing an issue to this repo, I promise that

I understand that my issue may be closed if I don't fulfill my promises.

yihui commented 5 years ago

This would be an issue for the RStudio IDE https://github.com/rstudio/rstudio. Thanks!

alapo commented 5 years ago

My apologies I will close this issue and repost it there. Was simply curious if anyone here had the issue. Thanks Yihui!

github-actions[bot] commented 4 years ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.