Write Math: LaTeX

Read · 2 min

The following is largely inspired by this. We also second the recommendation of Detexify for finding arbitrary TeX\TeX symbols.

  1. The easiest way to learn LaTeX\LaTeX is by viewing others' code and output side-by-side! (This post is relatively long, so if you click "info" to see the source code here, it may be helpful to use Ctrl+F: there will always be "searchable" tags or keywords.)

  2. Inline formulas in dollar signs; displayed formulas in "backslash brackets" (don't use double-dollar signs), as follows: ∑i=0ni=n(n+1)2\sum_{i=0}^n i = \frac{n(n+1)}{2} (inline) or ∑i=0ni=n(n+1)2.(displayed)\sum_{i=0}^n i = \frac{n(n+1)}{2}. \tag{displayed}

Also, you may want to use display LaTeX{\LaTeX} when in inline mode. This can be done by putting \displaystyle in your latex as follows: ∑i=0ni=n(n+1)2\displaystyle\sum_{i=0}^ni=\dfrac{n(n+1)}{2} You can also do the reverse; putting inline text when you are in display mode by using \textmode as shown:

  1. Greek letters: α,β,…,ω\alpha, \beta, \dots, \omega for lower case and Γ,Δ,…,Ω\Gamma, \Delta, \dots, \Omega for upper case.

  2. For superscripts and subscripts, compare xi2x_i^2, xi2x_{i^2}, xi2{x_i}^2, (xi)2(x_i)^2, vpqr′′′v_{pqr}''', vpqr′′′v'''_{pqr}, vpqr′′′v_{pqr}^{'''}, vpqr′′′v_{pqr}^{\prime\prime\prime}.

(General pointer: when in doubt, use curly braces to be safe!)

  1. Parentheses, brackets, braces: (2+3)(2+3), [4+4][4+4], {a+b}\{a+b\}, ∣c+d∣|c+d|, ∣u+v∣\lvert{u+v}\rvert, ∥c+d∥\|c+d\|, ∥u+v∥\lVert u+v \rVert, ⟨x+y⟩\langle{x+y}\rangle, ⌊x+y⌋\lfloor{x+y}\rfloor, ⌈x+y⌉\lceil{x+y}\rceil. (Note that curly braces need the extra backslashes! See (14) for more on this point.)

You can scale these too: compare ⌊ππππ⌋\lfloor{\pi^{\pi^{\pi^{\pi}}}}\rfloor to ⌊ππππ⌋\left\lfloor{\pi^{\pi^{\pi^{\pi}}}}\right\rfloor.

Underbraces and overbraces - these can be helpful when writing long, complicated equations. x2+y2⏞side lengths=z2⏟hypotenuse length\overbrace{x^2 + y^2}^{\text{side lengths}} = \underbrace{z^2}_{\text{hypotenuse length}}

  1. Sums and integrals: compare ∑1nx\sum_1^nx, ∑1nx\sum_{1}^{n}x, ∑12nx\sum_12^nx, ∑12nx\sum_{12}^{n}x, ∑i=12ni\sum_{i=12}^{n}i. The following work similarly: ∏\prod, ∫\int, ⋃\bigcup, ⋂\bigcap, ∬\iint.

  2. Fractions: There are two ways to make these. Compare 23\frac23, ab\frac ab, ab\dfrac{a}{b}, a+1b+1\frac{a+1}{b+1}, a+xyb+rs{a+{x\over y}\over b+{r\over s}}, 11+11+12\cfrac{1}{1+\cfrac{1}{1+\cfrac{1}{2}}}

  3. Fonts:

Normal math font: ABCDEFGHABCDEFGH (uppercase) or abcdefghabcdefgh (lowercase).

For "blackboard bold": Compare QRZ3\mathbb{QRZ^3}, QRZ3\mathbb{Q}\mathbb{R}\mathbb{Z^3}, QRZ3\Bbb{QRZ}^3.

For boldface: ABCDEFGH\mathbf{ABCDEFGH} (uppercase) or abcdefgh\mathbf{abcdefgh} (lowercase).

For "typewriter": ABCDEFGH\mathtt{ABCDEFGH} (uppercase) or abcdefgh\mathtt{abcdefgh} (lowercase).

For roman: ABCDEFGH\mathrm{ABCDEFGH} (uppercase) or abcdefgh\mathrm{abcdefgh} (lowercase).

For "calligraphic": ABCDEFGH\mathcal{ABCDEFGH}.

For script letters: ABCDEFGH\mathscr{ABCDEFGH}.

For "Fraktur" (old German style) letters: ABCDEFGH\mathfrak{ABCDEFGH} or abcdefgh\mathfrak{abcdefgh}.

Spaces and plain text: Compare abab, aba b, a ba\,b, a  ba\;b, aba\quad b, aba\qquad b. Generally, for "normal" (plain) text, consider a+1 spaces are still weird1but noticeablea+1\text{ spaces are still weird}1\text{but noticeable}.

  1. Radical signs: Compare x3\sqrt{x^3}, x23\sqrt[3]{x^2}, (x2)1/3(x^2)^{1/3}.

  2. Sufficiently special functions: Consider lim⁡x→0\lim_{x\to0}, sin⁡sin⁡xx\sin^{\sin{x}}{x}, max⁡x∈R\max_{x\in\mathbb{R}}, log⁡x\log{x}, lim⁡x→0cos⁡(min⁡(exp⁡(ln⁡(arctan⁡(x)))).\lim_{x\to0}\cos(\min(\exp(\ln(\arctan(x)))).

  3. For more special symbols and notations, see here or here. Consider <<>>≤≥≠=≮(≯)×⋅÷±∓.\lt<\gt>\le\ge\ne = {\not\lt}(\not\gt)\times\cdot\div\pm\mp.(In particular, no need to use asterisks for multiplication!)

Ellipses: 1,2,…,51,2,\dots,5 vs. 1+2+⋯+51+2+\dots+5 vs. 1,2,⋯ ,51,2,\cdots,5 vs. 1+2+…+51+2+\ldots+5 ("dots" will usually automatically give the more appropriate of "ldots" and "cdots").

Set stuff: ∪∩∖⊂⊆⊊∈∉∅∅\cup \cap \setminus \subset \subseteq \subsetneq \in \notin \emptyset \varnothing.

Logic: ∧∨¬∀∃⊤⊥⊢⊨\land \lor \lnot \forall \exists \top \bot \vdash \vDash.

Mappings: →←⇒⇐↦\rightarrow \leftarrow \Rightarrow \Leftarrow \mapsto.

Binomial coefficients: (n+12k)\binom{n+1}{2k} or (n+12k){n+1 \choose 2k} (similar to "frac" vs. "over").

Miscellaneous: 90∘∘≈∼≅90^{\circ} \circ\approx \sim \cong; ∞∇∂\infty \nabla \partial; a≡b(mod9000)a \equiv b\pmod{9000}; a∣ba\mid b (divides), AB∥CDAB\parallel CD (parallel); ϵ+ε\epsilon+\varepsilon; ϕ+φ\phi+\varphi; l+ℓl+\ell.

  1. Accents, bars, vectors: Consider x^\hat{x}, xyz^\hat{xyz}, x^\widehat{x}, xyz^\widehat{xyz} for accents, and zˉ+z‾+xyzˉ+xyz‾\bar{z}+\overline{z}+\bar{xyz}+\overline{xyz}; v⃗+v→+VW⃗+VW→\vec{v}+\overrightarrow{v}+\vec{VW}+\overrightarrow{VW}. For fluxion derivative notation, try (x⋅x˙)′=(x⋅x˙)′=x˙2+x⋅x¨(x\cdot\dot{x})' = (x\cdot\dot{x})^{\prime} = \dot{x}^2 + x\cdot\ddot{x}.

  2. Special characters can be "escaped" using the backslash (""): $9000\$9000, {9000\{9000, a_ba\_b, etc.

Interactive · 11 questions

LaTeX Practice

Here's a quick practice to see whether you know how to use Latex, which is very important to make your math equations look nice.

Here's a short quiz to test your latex skills.

What is the latex code for ?

Choose one answer

Read · 1 min

Suppose you want to write out steps for a solution. For example, solve x2x−1=4\dfrac{x^2}{x-1}=4. This would be what it looks like:

x2x−1=4\dfrac{x^2}{x-1}=4x2=4(x−1)x^2=4(x-1) x2=4x−4x^2=4x-4 x2−4x+4=0x^2-4x+4=0 (x−2)2=0(x-2)^2=0 x−2=0x-2=0 x=2x=\boxed{2}

Not bad, but with all the latex, it's a little hard to read. The equal sign is everywhere, and it's hard to see if you said x2=4x−4x^2=4x-4 or x2−4x=4x^2-4x=4.

However, there is a solution: the align environment.

To use the align environment, first wrap everything you want to align up with

\begin{align}

and

\end{align}

in the front and back respectively.

Then, in front of each thing that you want to align in a vertical direction downwards, you put a &.

For example, if you wanted to align all the equal signs together, you would put an & in front of each equal sign.

Second step is to divide each separate line by two backslashes, side by side. This tells the latex compiler that you are starting a new line.

Just to make sure, when using the align environment, make sure everything is in one pair of dollar signs or brackets, not separate dollar signs or brackets.

For example, the above example solution, when put into the align environment and having the & and double backslashes added correctly, looks like this: x2x−1=4x2=4(x−1)x2=4x−4x2−4x+4=0(x−2)2=0x−2=0x=2\begin{align}\dfrac{x^2}{x-1}&=4\\ x^2&=4(x-1)\\ x^2&= 4x-4\\ x^2-4x+4&= 0\\ (x-2)^2&= 0\\ x-2&= 0\\ x&=\boxed{2}\end{align}

Much better!

Read · 3 min

In this guide I will show you how to make tables: 12hitherenicetomeetyou\begin{array}{r|l}1 & 2 \\\hline hi & there \\ nice & to\\ meet& you\end{array}

System of equations: {x+y=2x2+y2=2\left\{\begin{array}{l}x+y=2\\x^2+y^2=2\end{array}\right.

Matrices: [1000010000100001]\left[\begin{array}{cccc}1&0&0&0\\ 0&1&0&0 \\ 0&0&1&0\\ 0&0&0&1 \end{array}\right]

and other things, using one useful command in LaTeX{\LaTeX}: The array environment.

To use this, you must know a couple of its components. The first component is how to create it. To do that, type in:

\begin{array}

In your LaTeX{\LaTeX} code.

The next component is something that tells the compiler how many columns you want your array, how each element is centered in its column, and where to place vertical divider lines. This component looks something like this:

{l|cr}

This component goes right after the first component, as follows:

\begin{array}{l|cr}

The "l" stands for "left", and it tells the compiler to center the elements in that specific column to the left (just like in Microsoft Word). For example, these elements, with the component {|l|l|l}, are all centered at the left: hiblahblahblahspacecreatorhelloleft←\begin{array}{|l|l|l}hi & blahblahblah & spacecreator\\ hello & left & \leftarrow\end{array}

The "c" stands for "center", and the "r" stands for "right". In the below array, the column on the left has its elements centered to the left, and ditto for the centered elements in the center, and right. The component for this one looks like {|l|c|r|}.

leftmiddleright←⌣¨→\begin{array}{|l|c|r|}left & middle & right\\ \leftarrow & \ddot\smile & \rightarrow\end{array}

Finally, the "|" (SHIFT+the key above the enter key and below the backspace) key, if you haven't figured out, adds a vertical line between the two columns that it separates. For example, an array with the component {ccc} looks like: 123456789\begin{array}{ccc}1 &2 &3 \\ 4 &5 & 6 \\ 7&8&9\end{array}

While one with component {c|cc} looks like: 123456789\begin{array}{c|cc}1 &2 &3 \\ 4 &5 & 6 \\ 7&8&9\end{array}

Now on to actually entering your elements. Elements are inserted row by row: first, we go through the first row from left to right, then the second row, and so on, until we finish with the final row. Each separate element in a row is divided by the "&" (ampersand) key, and to signify going to the next row, we put two backslashes.

For example, look at this code:

1 & 2 & 3 \ 4 & 5 & 6 \ 7 & 8 & 9

Its output is this:

123456789\begin{array}{ccc}1 &2 &3 \\ 4 &5 & 6 \\ 7&8&9\end{array}

Note that the elements 1,2,31,2,3 in the first row are divided by two "&"'s. You do not need to place a "&" at the end. To enter elements into the next row, we put the two backslashes.

To end an array, we put the following component at the end:

\end{array}

To add horizontal lines, we use the command

\hline

To insert a horizontal line between two rows, put the command behind of the two backslashes separating the rows. For example, this code:

1 & 2 & 3 \ \hline 4 & 5 & 6 \ 7 & 8 & 9

Will yield this: 123456789\begin{array}{ccc}1 & 2 & 3 \\ \hline 4 & 5 & 6 \\ 7 & 8 & 9 \end{array}

while this erroneous code:

1 & 2 & 3 \hline \ 4 & 5 & 6 \ 7 & 8 & 9

Will yield this: \begin{array}{ccc}1 & 2 & 3 \hline \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{array}

To create matrices, we simply just use the

\left(...\right)

Commands, where our array goes where the ellipses are and the parenthesis can be replaced with any other sort of brackets.

To create an array wrapped by a bracket on only one side (for a system of equations), put

\left.

or

\right.

on the side which you do not need a bracket.

For example, the code

\left{ \dfrac{blah}{blah} \right.

will yield {blahblah\left\{ \dfrac{blah}{blah} \right.

Read · 1 min

Typing piecewise functions might also be useful:

f(x)={x:x≤1x+6:x>1f(x) = \left\{ \begin{array}{lr} x & : x \le 1 \\ x + 6 & : x > 1 \end{array} \right.

Code:

\[
f(x) = \left\{
\begin{array}{lr}
x & : x \le 1 \\
x + 6 & : x > 1
\end{array}
\right.
\]

Also, keep in mind that if you want to view source code for LaTeX\LaTeX without the need to hit "edit", you can right-click the latex code to view the code used.

Read · 1 min

Calculus LaTeX\LaTeX crash course! You can click "edit" on this post to see the code for each of the below expressions.

Derivatives: ddx\frac {\mathrm{d}}{\mathrm{d}x} <- Note: please use \mathrm{d} as opposed to just d.

Integrals: ∫\int, ∫\displaystyle\int, ∮\oint, ∬\iint, ∭\iiint

Partials and gradients: ∂\partial, ∇\nabla

Vectors: <a,b,c>\left< a, b, c \right>

Illustrated · 2 min

Alex’s Mansplanation Guide to Expii\large{\text{Alex's Mansplanation Guide to Expii}}Part 3 - LaTeX\text{Part 3 - LaTeX}

←Go back to Part 2\scriptsize{\leftarrow\text{Go back to Part 2}}

What is LaTeX?

No one knows. It's been around since the Big Bang and scientists are still trying to figure out its origins. All we know is that it makes Expii look like a beautiful autumn morning.

Okay, that's all a lie but who cares. I honestly googled "What is LaTeX" and I put myself to sleep it was so boring.

Just know that it is a way to write out math expressions. Kind of like coding but not.

How do I use LaTeX?

Using LaTeX is real simple. You just need $\$! That's right, using LaTeX requires cold, hard cash. Or your parent's credit card!

Okay, that's all a lie. You actually just need to use the dollar sign key.

You just put your LaTeX code(??) between two dollar signs and voilà you LaTeX-ed.

Here's the number three: 3.

Here's the number three as LaTeX: $3$⇒3\$3\$\Rightarrow3.

$\$ Versus $$\$\$

There's actually two styles of using LaTeX: put it between one set of dollar signs or put it between two sets of dollar signs.

  • Using one set of dollar signs (like the 3 example above) puts the LaTeX on the same line as the text.

  • Using two sets of dollar signs centers the LaTeX on the line below.

Here's the number three: 3.

Here's the number three with one set of dollar signs: $3$⇒3\$3\$\Rightarrow3

Here's the number three with two sets of dollar signs: $$3$$⇒3\$\$3\$\$\Rightarrow3

LaTeX Placement

It doesn't really matter where you place the dollar signs. Let's take a look at some examples.

Here's a phrase written three different ways.

They all come out to be:

I am writing some text, adding the equation x+y=1x+y=1, and then finishing the text.

The same is for the double dollar signs.

Here's a phrase written three different ways.

They all come out to be:

I am writing some text, adding the equation x+y=1x+y =1 , and then finishing the text.

LaTeX Dangers

Sometimes LaTeX can be a real pain. If it senses two dollar signs it puts everything in-between into LaTeX.

Suppose we wanted to write a word problem dealing with money.

It looks fine. But those two dollar signs mess everything up. This comes out to be:

Jane had 3.10tospendongumballs.Gumballscost3.10 to spend on gumballs. Gumballs cost0.30 each. How many gumballs can she buy?

Yeah. Not pretty anymore.

One of the reasons is that LaTeX doesn't like actual words, or spaces. Any word you write in LaTeX will get weirdly spaced. This is because it thinks each letter is it's own separate variable.

In the next section I'll go into detail on how you work around that mess above.

  1. Don't put punctuation after a double dollar sign command. It will put it on its own line and it looks bad.
  2. Don't write words in LaTeX. They get all weirdly spaced and it doesn't recognize spaces. Example: 3meters3 meters looks really dumb.

\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quadContinue on to Part 4→\scriptsize{\text{Continue on to Part 4}\rightarrow}

Illustrated · 3 min

Alex’s Mansplanation Guide to Expii\large{\text{Alex's Mansplanation Guide to Expii}}Part 4 - Simple Commands\text{Part 4 - Simple Commands}

←Go back to Part 3\scriptsize{\leftarrow\text{Go back to Part 3}}

Okay now let's learn how to do cool things with LaTeX!

Superscript: x2x^2

Superscript is really easy to use. You just need to use ^{ }.

Let's look at an example.

This comes out to be: x2x^{2} x3xyzx^{3xyz}

Subscript: x2x_2

Subscript is similarly easy. You just need to use _{ }.

Let's look at an example.

This comes out to be:

x2x_{2} x3xyzx_{3xyz}

Fractions

Fractions require you to use the command \frac{}{}. The first set of brackets is for the numerator and the second is for the denominator.

Here's an example of a fraction with double dollar signs.

This becomes:

This fraction is on its own line: xx−1\frac{x}{x-1}

Here's an example of a fraction with single dollar signs.

This becomes:

This fraction is on the same line as the text: xx−1\frac{x}{x-1}

Notice that this fraction appears much smaller! A fraction inside double dollar signs will always be larger than a fraction inside single dollar signs. \\ However, if you want to make a fraction larger, simply change \frac to \dfrac. So \dfrac{x}{x-1} becomes xx−1\dfrac{x}{x-1}.

Roots

To make a square root symbol you just need to use the command \sqrt{ }.

To make an nth^\text{th} root you use the command \sqrt[n]{ }.

Here's an example of the different kinds of roots.

This becomes:

3x\sqrt{3x} 3x5\sqrt[5]{3x}

Symbols

Here is a list of symbols and how to use them:

Division symbol is \div: ÷\div

Multiplication X is \times: ×\times

Multiplication dot is \cdot: ⋅\cdot

Less than or equal to is \le: ≤\le

Greater than or equal to is \ge: ≥\ge

Plus or minus is \pm: ±\pm

Approximately is \approx: ≈\approx

Not equal to is \ne: ≠\ne

Infinity is \infty: ∞\infty

Pi is \pi: π\pi

Percent is %: %\%

Degree is ^{\circ}: ∘^{\circ}

A space is ,: hey spacehey\,space

A tab is \quad: heytabhey\quad tab

Sized Parentheses

Parentheses are pretty easy ( ). But sometimes they aren't big enough. For example: (12)(\frac12) That looks pretty dumb.

To fix this we can use \left( and \right) at the beginning and end respectively. This adjusts those parentheses so that they fit the text inside them.

Here's an example.

This becomes:

(12)\left( \frac{1}{2} \right)

New Line

To start a new line in LaTeX you just need to place double backslashes: \\

This would mainly used with double dollar signs.

Let's look at an example.

This comes out to be:

I want to list two different equations: x+y=14x+y=2x+y=1\\ 4x+y=2

Update: This now makes the Latex really small. To work around this, don't use \\ Instead, put each new line between double dollar signs.

You can also put the latex inside the command

begin{gather}......end{gather}

Text

Remember when I said don't use text in LaTeX. Well still don't...unless you use the text command \text{}.

It will make the text look different than Expii's text though.

Let's look at an example.

This comes out to be:

Here is Expii text.

Here is LaTeX text.\text{Here is LaTeX text.}

Trig and Log

You can type out cos and sin and ln in LaTeX but it can look bad. cos(3x)cos(3x)

Not terrible though. But to make it look nice just put a backslash in front: \cos(3x) cos⁡(3x)\cos(3x)

This rule applies to all the trig functions, log and natural log, and limits.

Misc.

Trying to use a symbol but not sure what it would be called to look it up? Well check out this awesome website, Detexify.

It allows you to draw the shape or symbol and then gives you the LaTeX code! Some symbols require a separate package to use. Sadly, this means you CAN'T use it on Expii.

  1. When using a dollar sign in a word problem, it's best to use the LaTeX command instead. This way it won't accidentally section into LaTeX.
  2. Text inside the \text{ } command WILL NOT wrap to the next line. So don't write large portions inside the command. If you can, write any text outside of LaTeX.

\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quadContinue to Part 5→\scriptsize{\text{Continue to Part 5}\rightarrow}

Illustrated · 3 min

Alex’s Mansplanation Guide to Expii\large{\text{Alex's Mansplanation Guide to Expii}}Part 5 - More Commands\text{Part 5 - More Commands}

←Go back to Part 4\scriptsize{\leftarrow\text{Go back to Part 4}}

Now that we understand some basic LaTeX, it's time to go into the EXTRA stuff. I'm talking, aligning, tables, matrices, and colors!

Aligning

Aligning is very useful when writing out how you work through an equation. The command is simple.

\begin{align}

Write here.

\end{align}

When you write inside this command, you use & to denote where you want each line to align at.

For example, let's look at something without align.

This becomes: x−2=8x−2+2=8+2x=10x-2=8\\ x-2+2=8+2\\ x=10

Suppose now we wanted to align each line at the equal sign, =. To do this we write the same thing inside the align command, and put an & before each equal sign.

For example:

This would become: x−2=8x−2+2=8+2x=10\begin{align} x-2&=8\\ x-2+2&=8+2\\ x&=10 \end{align}

Cases or Piecewise

To make cases or piecewise you can use the cases command.

\begin{cases}

Write here.

\end{cases}

Suppose we wanted to list 2 equations in a system. We could write:

This becomes: {x+y=12x+2y=1\begin{cases} x+y=1\\ 2x+2y=1 \end{cases}

Suppose we wanted to list two equations but with rules as to when to use each. We can use the & symbol in the cases command to make an indent. We could write:

This becomes: {x+y=1x<02x+2y=1x≥0\begin{cases} x+y=1&x<0\\ 2x+2y=1&x\ge0 \end{cases}

Matrices

To make a matrix you can use the command:

\begin{bmatrix}

Write here.

\end{bmatrix}

Here, bmatrix stands for bracketed matrix. Inside this command, you put the first cell's contents and then use & to move to the next cell in that ROW. If you want to move to the next COLUMN, you use double backslashes, \\ .

Suppose we wanted a square matrix with the integers from 1 through 9. We can write:

This becomes: [123456789]\begin{bmatrix} 1&2&3\\ 4&5&6\\ 7&8&9 \end{bmatrix}

Arrays and Tables

This is probably the most complicated of the LaTeX commands, but not by much. We use begin{array} and end{array} but there's some other key components. It's easier to show you some sample code and explain it.

This comes out to be: Input:123Output:456\begin{array}{|r|c|c||} \hline \text{Input:}&1&2&3\\ \hline \text{Output:}&4&5&6\\ \hline \end{array}

The command will start with begin{array} and end with end{array}. Nothing new here.

Next comes {|r|c|c|c|}. This is how you want the text to be aligned. Each letter is a different column.

  • r = right
  • c = center
  • l = left

Notice also that there's a straight line, | , between each. This makes a straight vertical line before or after a specific column. I put one before and after each so the whole table is divided up.

Caution: Don't mix up the lowercase L and the straight line: l and |

The next new command is \hline. This is just a horizontal line. You can use this command outside of arrays as well. The horizontal line auto adjusts to the length of what's above it and below it. I put three in: at the top, middle, and bottom. Therefore, my table has a horizontal line at the top, middle, and bottom.

Then I write out what I want each cell in the first row to be. This is the same as the matrix command. Each & symbol moves you to the next cell. Use \\ to move down to the next row.

Boxed

You can always box any text you want with the command \boxed{ }.

Suppose we want to box our answer.

This comes out to be: x+2=5x=3x+2=5\\ \boxed{x=3}

Color

You can also make different texts different colors with the command \quad \color{color}{ }.

Suppose we want to make our answer red.

This comes out as: x+2=5x=3x+2=5\\ \color{red}{x=3}

Here's a list of colors that work on Expii.

Strikethrough

We can use the command \cancel{ } to make text get a strikethrough. This is especially helpful if you want to show things cancel in a fraction or something.

Suppose we want to show that the 2's cancel in this fraction.

This comes out as: 2x2y\frac{\cancel{2}x}{\cancel{2}y}

Illustrated · 6 min

Alex’s Mansplanation Guide to Expii\large{\text{Alex's Mansplanation Guide to Expii}}Part 1 - Writing an Explanation\text{Part 1 - Writing an Explanation}

Expii is cool and nice. There are two different parts which we will look at in more detail: explanations and problems.

Explanations

Whenever you go to a topic, you're brought to the explanation page.

At the top we have the topic node that you're in and below that a brief description of the topic.

To the side we have the list of explanations written in this topic, the selected one is what is being displayed to the right of it.

Next to that is the "+2". This is the upvote. If the plus is blue than you haven't yet given it an upvote.

At the bottom is the "Add a Topic" button. This allows you to link a specific explanation to multiple topics. Suppose you write an explanation about fractions, decimals, and trig functions. Then you can write it under fractions and tag it under the decimal and trig functions sections as well.

There's also 4 different ways on this page to write your own explanation in the topic. Can you find them all?

Writing an Explanation

When you click any of the 4 "add an explanation" buttons you're brought to the editor.

The editor won't let you submit something until you meet the criteria it asks. As you can see, it tells you with the "Reminder" box what you need to do. In the bottom corner the "Submit" button is greyed out and says "Fix to Submit".

At the top is a green bar with the different types of tools you can use.

From left to right we have:

  • Pencil: Brings up a blank text box which you can write in or insert LaTeX.
  • Photo: Insert a photo or a gif
  • Video: Insert a YouTube video
  • Question: Add a question block
  • Pause: Add a break where the user must hit "Continue" to keep going
  • Graph: Insert a graph. I HAVE NO IDEA HOW TO USE THIS FUNCTION
  • Shape: Insert a shape. I HAVE NO IDEA HOW TO USE THIS FUNCTION

You can use any number and any combination of these in an explanation. Once you select one and fill something in, the "Submit" button turns blue and says "Save and exit".

Pencil - Textbox

The pencil tool just brings up a blank text box in which you can write or use LaTeX.

To submit with a textbox, the textbox must NOT be empty.

As you can see on the right we have a trashcan. This allows you to completely delete this block.

At the top is 5 different things/styles you can add to your text.

  • B: Makes the text bold.
  • I: Makes the text italic.
  • tT: Makes a header.
  • Link: Let's you insert a link as text.
  • x2x^2: Let's you insert an equation.

Bold

To make text bold you can highlight the text and click the B. You might notice that this places your text between two sets of asterisks. This is how to tell the editor to make text bold. You don't even need to hit the button, just place text between two sets of asterisks.

This comes out as:

Here's my bold text.

Warning: Make sure there is no blank spaces between your text and the asterisks. This causes the bold not to work.

Italic

To make text italic you can highlight the text and click the I. You might notice that this places your text between one set of asterisks. This is how to tell the editor to make text italic. You don't even need to hit the button, just place text between one set of asterisks.

This comes out as:

Here's my text italicized.

Warning: Make sure there is no blank spaces between your text and the asterisks. This causes the bold not to work.

Header

To make your text into a header you can highlight the text and click the tT. You might notice that this places three pound signs in from of the text. This is how to tell the editor to make text into a header. You don't even need to hit the button, just place the text after three pounds.

The second way to make a header is to place three equal signs underneath the text you want.

Notice both of these come out the same.

This is a header with equal signs.

This is a header with pound signs.

CAUTION: If you use the # header you must have a space above it (doesn't matter if it has text or is blank). If you use the = header you must have a space below it (doesn't matter if it has text or is blank.

Link

To make text into a link you can highlight the text and click the Link symbol. This brings up a set of brackets [ ] followed by a set of parentheses ( ). The brackets are where you write the text you want to make a link and the parentheses are where you put the URL.

This comes out as:

This is a link to google.

Equation

This brings up a box in which you can write out an equation and it places the LaTeX version of it into your text. I won't go into detail on how to use this since in the later sections I explain how you can use LaTeX which is easier in my opinion.

Numbered List - Not a Button

To make a numbered list just use 1. and then 2. and so on.

There isn't much of a difference:

  1. This is my first point.
  2. This is my second point.
  3. This is my third point.

But there is one. For starters, it indents a bit, spaces out the different points, and aligns all the text behind the number.

CAUTION: Make sure you place a blank space before you start making a numbered list.

Bullet Points - Not a Button

To make bullet points you just need to use -

This becomes:

  • Here is my bullet point.
  • Here is my next bullet point.
  • Here is my final bullet point.

CAUTION: Make sure you place a blank space before you start making a bullet list.

Indent Text - Not a Button

To indent text you just need to place > before the text.

This comes out as:

Here is my text in which I want to indent. I will write a bit more so you can see that it idents the whole chunk.

CAUTION: Make sure you place a blank space before you start an indent.

Image, video, and pause button are all very self explanatory.

The question box is the same the one used in writing a problem so I will wait to explain it there.

One difference though is you can have as many question blocks as you want in an explanation. In a problem there is only one question block.

Graphing

As I stated above, I have no idea how to use those graphing programs. Instead, I use a really nice website, Desmos.

You can then export the graph as an image and then upload it to Expii using the image button.

  1. When putting in an image, first make sure it's Creative Commons, and place the link in the textbox below it. You can use the Link button to make text like "Source" lead to where the image came from.
  2. If an image is too large, Expii will scale it which can sometimes make it look funky.
  3. Speaking of images, don't use an image with huge heights. No one wants to have to scroll to view a single image. 300 pixel height is usually a good size. (Don't worry if it's over or under, it's not a big deal.)
  4. When putting in a video link make a header in the following form:

\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quadContinue to Part 2→\scriptsize{\text{Continue to Part 2}\rightarrow}

Illustrated · 2 min

Alex’s Mansplanation Guide to Expii\large{\text{Alex's Mansplanation Guide to Expii}}Part 2 - Writing a Problem\text{Part 2 - Writing a Problem}

←Go back to Part 1\scriptsize{\leftarrow\text{Go back to Part 1}}

Problems

You can jump to the problems page of a topic by clicking "Problems" in the top left corner. You can also jump back to explanations at any point.

Below every question is a blue box that says "+ Add Solution"

This takes you to a solution adding page which operates the same as an explanation. Anything you write will appear under the specific question you are on.

Writing a Problem

When you go into the editor to add a problem you're brought to this:

Your question is written in the big open block. You can use any of the textbox styles that were explained in the Explanations section.

You can also add any other style block ABOVE the question block. So your question can have a block of text explaining it above it, or a picture, etc. The only thing you can't put above it is another question.

Furthermore, THE QUESTION MUST BE THE LAST BLOCK.

Making Answers

You can have any number of choices as answers. Usually try to keep it between 4 and 6.

Also try to always have AT LEAST 3 different choices. If you do a True or False you can do true, false, and not enough information is given.

At the top there's two different styles: Multiple Choice and Checkbox Items.

  • Multiple Choice: User only selects one choice as answer.
  • Checkbox Items: User selects one to multiple choices as answer.

Once you click the box "Add an answer" it will make an answer choice box for you.

You put the answer you want inside the "Answer" section. You can even use LaTeX in this part.

The "Feedback" box is text that will pop up if the user selects that answer. If it's a wrong answer it could give a hint. If it's a correct answer you can pose an open ended question to make them think.

To the side is the circle in which you select which one is the correct answer. Only one can be selected for Multiple Choice and one or more for Checkbox. You must select one in order to submit the question.

Below that is the option to Add an Image. Here's an example of a question with images.

IMPORTANT: Any image must be of the size 150 x 150. If it isn't it might get distorted.

Anything written in the "Answer" block will appear below the image.

IMPORTANT: If you use an image you have to use one for the rest of the choices.

IMPORTANT: You cannot use images for the Checkbox answer type.

  1. Using the enter key in Question Blocks doesn't work well. Put any large bodies of text in a text box above and place the specific question in the question block.
  2. When making picture choices, try to use multiples of 3 since three fit in a row.
  3. When making a true or false question, write the following above the statement:

\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad\quadContinue to Part 3→\scriptsize{\text{Continue to Part 3}\rightarrow}

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems