You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you so much for this amazing package! The count for reference is especially unique useful! Just want to make sure, though, that the current version (0.1.0) still does not count for the title and figure notes, right? As illustrated in the following example, the word count was always 3 no matter how I changed the title or the figure notes. Just in case I didn't set the function properly. Thanks!
---title: "1 2"citeproc: nooutput:
html_document:
pandoc_args: !expr rmdfiltr::add_wordcount_filter(rmdfiltr::add_citeproc_filter(args = NULL))---```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)```
3 4 5
```{r pressure, echo = FALSE, message = FALSE, warning = FALSE}
# plot(pressure)library(grid)library(gridExtra)library(ggplot2)g <- ggplot(pressure, aes(x = temperature, y = pressure)) + geom_point()plot_text <- textGrob("6 7", gp = gpar(fontface = 3, fontsize = 9), x = 0.05, hjust = 0)# x stands for where the text starts, hjust stands for left, middle, right.grid.arrange(g, bottom = plot_text)```
The out put in the "R Markdown" tab is
3 words in text body
0 words in reference section
The text was updated successfully, but these errors were encountered:
crsh
changed the title
Words in titles and notes?
Words in document title and captions are not counted
Aug 21, 2019
That's correct. Figure and table captions are not counted towards the words in the body of the text. I have considered counting figure and table captions separately. Similarly, footnotes could be counted separately. Would that be useful to you?
Oh, definitely! Save a lot of time to convert pdf to word every time. Also, it might be even impossible in operation, but just be curious: is it possible to record the counts into a parameter or an object (such as a global variable)?
I don't think so. Lua-Filters are applied after R code is evaluated, so I see no way in which I could make the word count available to the R session. However, if you are thinking about adding the word count to the document automatically, it might be possible to define a keyword that one can add to the document and which the filter replaces by the word count. Is this what you are looking to do?
Thank you so much for this amazing package! The count for reference is especially unique useful! Just want to make sure, though, that the current version (0.1.0) still does not count for the title and figure notes, right? As illustrated in the following example, the word count was always 3 no matter how I changed the title or the figure notes. Just in case I didn't set the function properly. Thanks!
The out put in the "R Markdown" tab is
The text was updated successfully, but these errors were encountered: