Skip to content

Instantly share code, notes, and snippets.

@dewittpe
Last active November 28, 2021 15:47
Show Gist options
  • Save dewittpe/ee42f46b23b9de6b1338 to your computer and use it in GitHub Desktop.
Save dewittpe/ee42f46b23b9de6b1338 to your computer and use it in GitHub Desktop.
Equation Numbering in Rmd
library(rmarkdown)
library(knitr)
render("eqn-numbering.Rmd")
---
title: Eqn Numbering
output: pdf_document
---
An equation with numbering
\begin{equation}
\label{eq:1}
\phi \left( x; \mu, \sigma \right) = \frac{1}{\sqrt{2 \pi \sigma^2}} \exp \left( -
\frac{\left(x - \mu\right)^2}{2 \sigma^2} \right)
\end{equation}
\begin{equation}
5 = 2 + 3
\end{equation}
blah blah blah, reference equation \ref{eq:1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment