How can I insert a page number into the slides of the rmarkdown slider?

How can I show page numbers (preferably like 4/10, 5/10, etc.) in the rmarkdown chart view? Thanks in advance.

+5
source share
2 answers

In the main document, you can include the .tex file with additional commands, as shown in the RStudio documentation here .

I created a new .tex file, which I named "header_pagenrs.tex", which includes only the top 2 lines from @ user4281727's answer:

\setbeamertemplate{navigation symbols}{} \setbeamertemplate{footline}[page number] 

Then I referenced this file at the top of my .Rmd file:

 --- title: "Things and Stuff" author: "Me" output: beamer_presentation: includes: in_header: header_pagenrs.tex --- 

If this still gives you errors, you can also skip some required TeX packages (separate issue from RStudio and rmarkdown).

+4
source

Try putting the lines below in the template.

 \setbeamertemplate{navigation symbols}{} \setbeamertemplate{footline}[page number] ~/Library/R/3.1/library/rmarkdown/rmd/beamer/default.tex 
0
source

Source: https://habr.com/ru/post/1207333/


All Articles