Psychic - LaTeX Formatting Style Guide
Psychic - LaTeX Formatting Style Guide
Guide
LaTeX is a powerful typesetting tool used to render mathematics
into a readable style. This guide is not aimed at teaching you how
to use LaTeX but instead what styles and conventions are required
by this project. We include several resources below if you wish to
brush up or learn LaTeX.
Suggested LaTeX Resources
The best way to learn LaTeX is through examples and by using online
resources like
Overleaf
Art of Problem Solving
LaTeX Symbols
LaTeX Gen Tool for Psychic
Note the last item is a Psychic Project specific tool that will help you convert
math to proper LaTeX format required in this project.
Required LaTeX Deliminators
In this project the only acceptable deliminators for math-mode are
Display LaTeX
Markd
own
A basic
fact
from
trig is \
(\sin(\
pi/2) =
1\).
A
famous
formula
in
Physics
is
\[
E=
mc^2\,.
\]
Delimiters & Punctuation
In this project proper punctuation is paramount! When combining this with math delimiters
please take special note:
Math Mode Style Punctuation Rule Example
Delimiter Warning
DO NOT USE $...$ or $$...$$ in this project – they are not permitted as they
confuse with the dollar symbol.
Required Style for Multiple Steps Equations
Often you will need to write math that consists of a series of
equalities or a series of steps. In this project, there is a specific way
this needs to be done. The allowed and a few not allowed options are
shown below:
Allo Display LaTeX Rational
wed Markd e
? own
\[ Uses the
\ aligned
begin{ environm
aligned ent which
} is the
f(x) &= required
x^2 + style for
5x + 7 this
-6x -9 \\ project.
Goo
&=
d
x^2 -x-
2\\
&=
(x+1)
(x-2)
\
end{ali
gned}
\]
\[ Uses the
\ aligned
begin{ environm
aligned ent for
} systems
z &= of
3x- equations
5y+w \\ .
Goo z &=
d x+y+w\
\
z &=
2x+2y
+2w
\
end{ali
gned}
\]
\(12x - Although
3= these
57\) related
\(12x = steps are
60\) on
\(x = multiple
5\) lines,
they are
Bad each in
their own
math
environm
ent. This
is not
permitted
in this
project.
When using the aligned environment note the following crucial details:
Symbols like & and $ are reserved LaTeX symbols and must be used with
appropriately. If you want to write something like the
Greek Symbols
\[
\alpha\sin(\theta + \delta) = \
beta
\]
Symbol Warning
Never copy/paste rendered math symbols like the ones shown above
directly into LaTeX. Instead use the appropriate command – it is not only
easier but right!
Divisio \(\ U
n frac{a s
^2+1} e
{b-3} \
\(4/3\) fr
a
c
{
}
{
}
f
o
r
m
o
s
t
fr
a
c
ti
o
n
s
a
n
d
c
e
rt
a
i
n
l
y
w
h
e
n
t
h
e
fr
a
c
ti
o
n
s
a
r
e
c
o
m
p
li
c
a
t
e
d
.
Y
o
u
c
a
n
a
ls
o
u
s
e
v
a
ri
a
n
t
s
o
f
t
h
is
li
k
e
\
d
fr
a
c
f
o
r
d
is
p
l
a
y
i
n
g
l
a
r
g
e
r
fr
a
c
ti
o
n
s
U
s
e
‘/
’
o
n
l
y
w
h
e
n
t
h
e
fr
a
c
ti
o
n
s
a
r
e
si
m
p
l
e
a
s
s
h
o
w
n
h
e
r
e
.
Expon \(e^{i\ U
ents theta} s
\) e
\ t
( 2^{2 h
^2} \) e
\(x^y\) s
y
m
b
o
l
^
N
o
t
e
t
h
a
t
w
e
n
e
e
d
c
u
rl
y
b
r
a
c
k
e
t
s
{
}
if
t
h
e
e
x
p
o
n
e
n
t
is
m
o
r
e
t
h
a
n
o
n
e
s
y
m
b
o
l
D
O
N
O
T
u
s
e
*
*
Appro \(\pi \ U
ximati approx s
on 3.1415\ e
) t
h
e
\
a
p
p
r
o
x
s
y
m
b
o
l
w
h
e
n
e
v
e
r
a
n
a
p
p
r
o
x
i
m
a
ti
o
n
is
i
n
v
o
l
v
e
d
,
s
u
c
h
a
s
r
o
u
n
d
i
n
g
.
D
O
N
O
T
u
s
e
\
a
p
p
r
o
x
d
ir
e
c
tl
y
a
ft
e
r
a
n
o
p
e
r
a
t
o
r
(
e
.
g
.
\
(
1
0
\
ti
m
e
s
\
a
p
p
r
o
x
5
\)
).
Mathematical functions
When writing any mathematical function like cos(x) or sqrt(x) or ln(x) they
require ‘\’ to be rendered correctly.
If you want to write plain text inside math mode then use \text{} or \
textrm{}.
Allo Display LaTe Ratio
wed? X nale
Mark
down
\( \ Corre
sqrt{x ct
^2-1} usage
\) with
Good \( \ ‘\’
cos(\
pi) \)
\(\ln e
= 1\)
\ The ‘\’
( cos(\ is
pi) \) missi
\(ln e ng
= 1\) causi
ng
Bad the
math
to not
rende
r
correc
tly
\( \ Prope
cos(x) r use
}\ of \
textr textr
m{ an m{}
Good d }\ to
sin(x)\ rende
) are r text
trig in
functi math
ons. mode
\( \ Impro
cos(x) per,
} and\ as
sin(x)\ ‘and’
) are was
Bad trig incorr
functi ectly
ons. interp
reted
as
math
Lists
Lists should be in Markdown format.
Bulleted Lists
Numbered Lists
Units
Default
Formatting
Plaintext
Units must be rendered in plaintext a space between the value
and the unit
Ex:
Spacing
Units should be separated from the numerical value using thin
spaces (\,) in \mathrm{} or a space within \text{}
Ex: \(2\mathrm{\,m/s}\)
Ex: \(2\text{ m/s}\)
Exponents
Exponents can be rendered within \mathrm{} or outside of \
text{}
Ex: \(2\mathrm{\,m/s^2}\)
EX: \(2\,\text{ m/s}^2\)
Rounding
Format