Omit Slide Number

css slide number content classes

Selectively omit slide numbers

Emil Hvitfeldt true
05-22-2021

Sometimes you want to remove slide numbers selectively. This can be handled with a content class.

Trick by Garrick Aden-Buie

Result

Rmd

---
output:
  xaringan::moon_reader:
    css: ["default", "style.css"]
    lib_dir: libs
    seal: FALSE
    nature:
      highlightStyle: github
      highlightLines: true
      countIncrementalSlides: false
---

# Sample Header

Duis vel viverra elit, eget hendrerit odio. Curabitur 
cursus elit nec diam vulputate, nec sollicitudin nunc 
ornare. Ut mi lectus, aliquet non ligula sed, 
lobortis vehicula erat. Morbi porttitor orci ut 
semper dapibus. Donec sodales tellus varius tortor 
varius, ornare commodo augue maximus. Vestibulum quis
bibendum mi, sit amet lobortis leo. Morbi vulputate 
orci arcu, ac lobortis sapien gravida eget. Nulla non
interdum orci, nec congue ligula.

style.css

.remark-slide-number {
  display: none;
}

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Hvitfeldt (2021, May 22). Xaringan Gallery: Omit Slide Number. Retrieved from https://xaringan.gallery/examples/omit-slide-number/

BibTeX citation

@misc{hvitfeldt2021omit,
  author = {Hvitfeldt, Emil},
  title = {Xaringan Gallery: Omit Slide Number},
  url = {https://xaringan.gallery/examples/omit-slide-number/},
  year = {2021}
}