Cheat Sheet
We all need three things for efficiently maintaining a faculty homepage; code highlighting, inline math, and latex-style bibliography.1 This cheatsheet shows how to do all of these things.
Math
The site is configure to use mathjax. To use LaTeX, just use it:
Inline equations look like $z$ and $j+1 \approx \log(8\pi)$.
Equation array style
with referencing $\eqref{eq1}$
References
Standard citations look like (Staton et al., 2016) and the
bibliography at the end is how to include the bibliography elements that are
included in the document. References are maintained in the standard .bib
files we all know and love.
Code
Highlighting code fragments, should you wish to use them, works well. If you want line numbers use this form
1
2
3
(let [x y]
(prn x)
(observe (normal 1 0) y))
Code fencing works just as well
(let [x y]
(prn x)
(observe (normal 1 0) y))
Inline code fragments like this one work too (observe (normal 1 0) y)
.
Bibliography
-
Staton, S., Yang, H., Heunen, C., Kammar, O., & Wood, F. (2016). Semantics for probabilistic programming: higher-order functions, continuous distributions, and soft constraints. Thirty-First Annual ACM/IEEE Symposium on Logic In Computer Science. PDF
@inproceedings{staton2016semanticslics, title = {Semantics for probabilistic programming: higher-order functions, continuous distributions, and soft constraints}, author = {Staton, S. and Yang, H. and Heunen, C. and Kammar, O. and Wood, F.}, booktitle = {Thirty-First Annual ACM/IEEE Symposium on Logic In Computer Science}, year = {2016} }
-
Footnotes work this way ↩