Last active
April 30, 2021 03:05
-
-
Save y1zhou/aceb8faa3faac692617dba69b4ceeb80 to your computer and use it in GitHub Desktop.
RStudio Rmarkdown snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# \begin{}...\end{} | |
snippet begin | |
\begin{${1:env}} | |
${2} | |
\end{$1} | |
# Align(ed) | |
snippet ali | |
\begin{align${1:ed}} | |
${2} | |
\end{align$1} | |
# Gather(ed) | |
snippet gat | |
\begin{gather${1:ed}} | |
${2} | |
\end{gather$1} | |
# Equation | |
snippet eq | |
\begin{equation} | |
${1} | |
(\\#eq:${2:label}) | |
\end{equation} | |
# Reference equations, tables, etc. | |
snippet ref | |
\\@ref(${1}) | |
# Enumerate | |
snippet enum | |
\begin{enumerate} | |
\item ${1} | |
\end{enumerate} | |
snippet frac | |
\frac{${1:num}}{${2:denom}} | |
snippet sum | |
\sum_{${1:i=1}}^{${2:n}}{${3}} | |
# Inline maths | |
snippet m | |
`\\(${1}\\)` | |
# Display maths | |
snippet \ | |
<div> | |
\$\$ | |
${1} | |
\$\$ | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment