LaTeX is a high quality typesetting system. It is mainly used in creating technical and scientific documentation. It possesses an ability to show complex mathematical equations in their fiducial format.
You can use the same markup for writing equations in your question/answers.
Instead of bland looking equations like, E=mc^2, you could use latex to write beautiful equations.
Just enclose your equation/expression within
$
latex your_latex_code_here $
.
For example:
$
latex E=mc^2 $
prints:
LaTeX Error
If your code is broken, instead of the equation you’ll see an ugly yellow and red error message. Sorry, we can’t provide support for
syntax, but there are plenty of useful guides elsewhere online. One thing to keep in mind is that Phys Whiz puts all of your
code inside a
math
environment. If you try to use that doesn’t work inside the
math
environment (such as \begin{align} ... \end{align}
), you will get an error:
LaTeX Size
You can change the size of the LaTeX by specifying an s
parameter after the code.
$
latex \LaTeX&s=X$
Where X goes from -4 to 4 (0 is the default). These sizes correspond to ‘s font size commands:
s= |
font size | Example |
---|---|---|
-4 | \tiny |
|
-3 | \scriptsize |
|
-2 | \footnotesize |
|
-1 | \small |
|
0 | \normalsize (12pt) |
|
1 | \large |
|
2 | \Large |
|
3 | \LARGE |
|
4 | \huge |
LaTeX Colors
You can change the colors of your LaTeX expression. You can specify bg
and fg
parameters after the code to change the background and foreground colors, respectively. The colors must be in hexadecimal RGB format:
ffffff
for white, 0000ff
for bright blue, etc.
$
latex \LaTeX&bg=ffcccc&fg=cc00ff&s=4$
LaTeX Packages
Phys Whiz uses standard with the following packages:
- amsmath
- amsfonts
- amssymb