⚠️ This page is development and staging only. To progress, update your page to publishThisPage(Astro, "prod")

Testing LaTeX in the browser with KaTeX

March 05, 2024
Title picture for LaTeX Test

To write inline LaTeX formula, use \( before and \) after the equation.

To write "display" (block) LaTeX formula, use \[ before and \] after the equation.

Block quote test

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.

Quote test

This text should appear before the equation... ...and this text after it.

This text should appear above the equation...

...and this text below it.

This text should appear above the equation...

...and this text below it.

If for some reasons you need to show a LaTeX formula as a formula, simply use backticks: \[f(X,n) = X_n + X_{n-1}\] or code fences (triple-backticks):

\[f(X,n) = X_n + X_{n-1}\]