Mathjax Test

Inline Equations

This is an inline \(a^*=x-b^*\) equation.

Block Equations

These are block equations:

\[a^*=x-b^*\]\[ a^*=x-b^* \]\[ a^*=x-b^* \]

These are also block equations:

$$a^*=x-b^*$$$$ a^*=x-b^* $$$$ a^*=x-b^* $$

Example

The Rendering Equation:

\[ L_o(\mathbf{x}, \omega_o) = L_e(\mathbf{x}, \omega_o) + \int_{\Omega} f_r(\mathbf{x}, \omega_i, \omega_o) \, L_i(\mathbf{x}, \omega_i) \, (\omega_i \cdot \mathbf{n}) \, d\omega_i \]

Code Test

 1#include <bits/stdc++.h>
 2
 3using namespace std;
 4
 5enum class Color { Red, Green, Blue };
 6
 7struct Vec3 {
 8    float x{}, y{}, z{};
 9    Vec3 operator+(const Vec3& o) const { return {x + o.x, y + o.y, z + o.z}; }
10};
11
12int main() {
13    try {
14        vector<Vec3> points{{1,2,3}, {4,5,6}};
15        auto add = [](Vec3 a, Vec3 b){ return a + b; };
16        Vec3 sum = add(points[0], points[1]);
17        cout << fixed << setprecision(2);
18        cout << "Sum: (" << sum.x << ", " << sum.y << ", " << sum.z << ")\n";
19
20        Color c = Color::Green;
21        if (c == Color::Green)
22            cout << "It's green!\n";
23    } catch (const exception& e) {
24        cerr << "Error: " << e.what() << endl;
25    }
26}

Image Test

This is an image from /static/images/

This is a test image

This is an image in the same directory as this markdown source file.

This is a test image

<iframe>Test

Alert

CAUTION

Content

IMPORTANT

Content

NOTE

Content

TIP

Content

WARNING

Content