layout | permalink |
---|---|
page |
/cheatsheet/ |
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.
The site is configure to use mathjax. To use LaTeX, just use it:
Inline equations look like
Equation array style
with referencing
Standard citations look like {% cite staton2016semanticslics %} 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.
Highlighting code fragments, should you wish to use them, works well. If you want line numbers use this form
{% highlight clojure linenos %} (let [x y] (prn x) (observe (normal 1 0) y)) {% endhighlight %}
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 --cited %}
Footnotes
-
Footnotes work this way ↩