test_reference_basic

Reference Document Test

This file tests whether the Scriba .tex reference is sufficient for writing valid sources.

Text Formatting

Here is bold text, italic text, and monospace text. We can also use emphasized text and underlined text.

Mathematics

Inline math: the quadratic formula gives x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.

Display math:

i=0n1ai=a0+a1++an1\sum_{i=0}^{n-1} a_i = a_0 + a_1 + \cdots + a_{n-1}

Itemize List

Tabular Table

PrimitiveDimensionUse Case
Array1DLinear sequences
Grid2DMatrix problems
GraphNodes+EdgesNetwork traversal
DPTable1D or 2DDynamic programming

Code Block

def prefix_sum(arr):
    n = len(arr)
    ps = [0] * (n + 1)
    for i in range(n):
        ps[i + 1] = ps[i] + arr[i]
    return ps

Animation

Step 1 / 7