| layout | title |
|---|---|
default |
About |
This is an Edward Tufte theme
based on clayh53/tufte-jekyll. It is
updated to be
jekyll-remote-theme
compatible and tested with ruby 3.1 and jekyll 3.9. You can learn how
Jekyll sites work and how to customize them here.
To use this theme, add the following to your _config.yml:
remote_theme: danjenson/et
markdown: kramdown
plugins:
- ...
- jekyll-remote-theme
footer: # run `grep icon-` in project folder for icon names
- link: https://twitter.com/edwardtufte
icon: icon-twitter
- link: https://github.com/danjenson/et
icon: icon-githubThen, to run locally:
bundle add jekyll-remote-theme webrick
bundle install
bundle exec jekyll serveYou can also use latex with $$, e.g. $$f^2$$ becomes $$. You can see here the list of available mathjax commands.
Gotchas:
- Occasionally, rendering will fail with single
$delimiters, usually when there is a command followed by an underscore, i.e.$\mathcal{H}_{edge}:\mathcal{F}_{Markov}(G,R)\to\mathcal{O}_{edge}$will render as $\mathcal{H}{edge}:\mathcal{F}{Markov}(G,R)\to\mathcal{O}_{edge}$. The solution is to escape the_for the subscripts. So,$\mathcal{H}\_{edge}:\mathcal{F}\_{Markov}(G,R)\to\mathcal{O}\_{edge}$is correctly rendered as$\mathcal{H}_{edge}:\mathcal{F}_{Markov}(G,R)\to\mathcal{O}_{edge}$ .
Protips:
- If you use (n)vim, add the
vim-markdown plugin and enable
math markdown with
let g:vim_markdown_math = 1; this will prevent all sorts of syntax highlighting issues when using$and_. - To add tables of contents to your files, run
bundle add jekyll-toc && bundle install, then you can addtoc: trueto the front matter (yaml at the top of READMEs) to automatically include a table of contents. Seenotes.mdfor an example. - You can use the
title_urlkey to add a hyperlink to the title. - Copy the
_pluginsdirectory to your project to get access to the following Liquid tags:
{% raw %}
# Capitalizes words
{% newthought "Example website: <a href='http://example.com'>example label</a>" %}
# Short quotation
{% epigraph ' "How did you go bankrupt?" Two ways. Gradually, then suddenly.' 'Ernest Hemingway' ' "The Sun Also Rises" ' %}
# Indexed note that appears in margin
{% sidenote "sidenote-id" "This is a random sidenote" %}
# Non-indexed note that appears in margin
{% marginnote "margin-note-id" "Random thought when drinking" %}
# Full-width image
{% fullwidth "assets/img/full-width.png" "A full-width image." %}
# Main-column image
{% maincolumn "http://example.com/image.jpg" "Main column image." %}
# Margin image
{% marginfigure "margin-figure-id" "assets/img/side.png" "This is the caption" %}
{% endraw %}