{# ============= #} {# === KATEX === #} {# ============= #} {% macro katex() %} {% endmacro katex %} {# =========================== #} {# === resize static image === #} {# =========================== #} {% macro resize_static(path, width=160, height=160, op="fit_height") %} {% set resized = resize_image(path="../static" ~ path, width=width, height=height, op=op) %} {{ resized.url }} {% endmacro resize_static %} {# ========================= #} {# === table of contents === #} {# ========================= #} {% macro toc(toc, level, depth) %} {%- if level == 1 %}