测试一下 Hugo 对 org-mode 的支持。

代码

OCaml

type 'a tree =
  | Nil
  | Node of 'a * 'a tree * 'a tree

let rec map f = function
  | Nil -> Nil
  | Node (v, lc, rc) -> Node (f v, map f lc, map f rc)

module type FUNCTOR = sig
  type 'a t
  val map : ('a -> 'b) -> 'a tree -> 'b tree
end

C艹

#include <bits/stdc++.h>
typedef long long ll;
const int maxb = 62;
const int maxn = 1000005;
struct seg {
  int l, r, id;
};
seg segq[maxn];
std::vector<int> lim_0[maxb], lim_1[maxb];
void proc_lim(int l, int r, int id, ll x) {
  seg pr = (seg){l, r, id};
  segq[id] = pr;
  for(int i = 0; i < maxb; i ++) {
    const int th = (x & 1);
    if(th) {
      lim_1[i].push_back(id);
    } else {
      lim_0[i].push_back(id);
    }
    x >>= 1;
  }
}

公式

这个 $114514^{1919810}$ 就是逊啊!

\begin{equation} \int_{\partial\Sigma}\omega=\int_{\Sigma}\mathrm d\omega \end{equation}

\begin{equation} e^{\pi i}+1=0 \end{equation}