-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supporting short figure/table captions for list of figures/tables #543
Comments
I believe this should work:
Of course, this will only work for LaTeX/PDF output. |
BTW, next time please try to ask questions on StackOverflow instead. You may also try the RStudio Community. Thanks! |
Hi Yihui, |
It is not easy to discover all knitr features. I want to bring happy surprises to users for decades. Just kidding. 😀 |
Hello, sorry for re-opening this issue. |
Not for now, e.g., |
Thanks a lot for your quick answer. |
WAT? I had implemented it two years ago? I totally forgot it! You are right that there is no way to specify short captions with Markdown tables. Your only options are: (1) file a feature request to Pandoc; or (2) use |
Thanks for your reply and having implemented it in |
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. |
The captions of figures or tables often need to be long in order to provide the reader with an accurate explanation about what is being shown.
To prevent the list of figures from becoming too difficult to read, LaTeX is offering an optional argument in the
\caption[short description for list of figures/tables]{Here comes the full explanation, which can consist of multiple sentences. This is particularly useful when having multiple subfigures.}
.As far as I can see, there is no way to map a figure caption written in R Markdown/knitr to this macro.
However, I think this would be both, helpful and technically feasible.
Please note that there is already some discussion in the development of pandoc to implement such a feature (jgm/pandoc#2417).
The text was updated successfully, but these errors were encountered: