Index | Diary

Journal 2025-09-07

vimwiki math LaTeX syntax

# List syntax tree at cursor.
for id in synstack(line('.'), col('.') - (col('.')>=2 ? 1 : 0)) | echomsg synIDattr(id, "name") | endfor

Inline Math

On the delimiters:

Within the delimiters:

\(\sum_i a_i^2 = 1\)

In vimwiki markdown:

$\sum_i a_i^2 = 1$

- VimwikiH1Folding
  - textSnipTEX

In Pandoc:

Within a text delimiter:

Block Display Math

On the block display delimiter lines:

Within the block:

In vimwiki markdown:

$$
\sum_i a_i^2
=
1
$$

- VimwikiH1Folding
  - textSnipTEX

On the block display delimiter lines:

- VimwikiH1Folding
  - textSnipTEX
    - VimwikiMath

Block Align Math

\begin{align} \sum_i a_i^2 &= 1 + 1 \\ &= 2. \end{align}

Page created on 2025-10-24