First Post: Testing LaTeX Rendering

1 min read
LaTeXTesting

Welcome to My First Blog Post

This is a test blog post to test the LaTeX and Markdown rendering capability of the blog.

LaTeX Rendering Test

Here are some examples of mathematical formulae:

  1. The quadratic formula:

    x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

  2. Einstein's famous equation:

    E=mc2E = mc^2

  3. The normal distribution probability density function:

    f(x)=1σ2πe12(xμσ)2f(x) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2}

  4. The Euler's identity:

    eiπ+1=0e^{i\pi} + 1 = 0

  5. The definition of the derivative:

    f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}

These formulae should be rendered properly using KaTeX. If you can see these correctly formatted, then LaTeX rendering is working in my blog posts!

I can also use inline LaTeX like this: The area of a circle is A=πr2A = \pi r^2.

Markdown Rendering Test

Adding markdown to test:

Inline code print("Hello, World!")

Block code:

fn main() {
    println!("Hello, World!");
}
function greet(name: string): void {
  console.log(`Hello, ${name}!`);
}

Hopefully I'll advance past "Hello, World!" soon!