Difference between revisions of "Test page"

From Bitnami MediaWiki
Jump to navigation Jump to search
Line 13: Line 13:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
−
test inline equation \[$x^TAx$\]
+
test inline equation  
 +
<math>
 +
\[
 +
\begin{bmatrix}
 +
1 & 2 & 0 & 0\\
 +
2 & 1 & 0 & 0 \\
 +
0 & 2 & 1 & 0\\
 +
0 & 0 & 0 & 1\\
 +
\end{bmatrix}
 +
\]
 +
</math>

Revision as of 01:12, 15 June 2021

i'm wonder how this works

  • supports lists
  1. supports numbering

$e=mc^2$ supports latex testing code tag

def catch(func, *args, handle=lambda e: None, **kwargs)
 try:
    return func(*args, **kwargs)
  except Exception as e:
    return handle(e)

test inline equation [math]\displaystyle{ \[ \begin{bmatrix} 1 & 2 & 0 & 0\\ 2 & 1 & 0 & 0 \\ 0 & 2 & 1 & 0\\ 0 & 0 & 0 & 1\\ \end{bmatrix} \] }[/math]