Features of this site

This site is built with SvelteKit and uses Pandoc to convert LaTeX articles to HTML at build time. Here is what is available.

Math

Inline math works with dollar signs. For example, the quadratic formula is x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} and Euler’s identity is eiπ+1=0e^{i\pi} + 1 = 0.

Display math uses double dollars:

𝐄=ρε0\nabla \cdot \mathbf{E} = \frac{\rho}{\varepsilon_0}

The cross-entropy loss commonly used in NLP:

(θ)=i=1Nlogpθ(xi)\mathcal{L}(\theta) = -\sum_{i=1}^{N} \log p_\theta(x_i)

Code

Code blocks use verbatim environments:

import torch
import torch.nn as nn

class Transformer(nn.Module):
    def __init__(self, d_model: int, nhead: int):
        super().__init__()
        self.attention = nn.MultiheadAttention(d_model, nhead)
        self.norm = nn.LayerNorm(d_model)

    def forward(self, x: torch.Tensor) -> torch.Tensor:
        attn_out, _ = self.attention(x, x, x)
        return self.norm(x + attn_out)

Inline code uses texttt, like const x = 42.

Images

Articles can include images from their assets/ folder. The build script copies them to static/articles/<slug>/ so they are served as static files.

A simplified transformer architecture diagram.

Citations

Each article can have its own refs.bib file. Pandoc processes citations automatically via –citeproc.

The Transformer architecture [1] revolutionized natural language processing. For foundational algorithms, see Knuth [2].

Typography

Regular text uses Cascadia Mono. Bold and italic work as expected.

Blockquotes are rendered from the quote environment.

Lists work too:

  1. First item

  2. Second item

  3. Third item

Publications

Site-wide publications are loaded from a BibTeX file (content/refs.bib) and rendered on the publications page. Article-specific references are kept in each article’s own refs.bib.

[1]
A. Vaswani et al., “Attention is all you need,” Advances in Neural Information Processing Systems, vol. 30, 2017, Available: https://arxiv.org/abs/1706.03762
[2]
D. E. Knuth, The art of computer programming, vol. 1. Addison-Wesley, 1997.