Advanced Math Manipulation
At this point, you should know how to properly typeset your mathematical idea. This article will provide you with advanced LaTeX elements and how to position them.
Dots
In , to define horizontal, vertical and diagonal dots, we are provided with \ldots
, \cdots
, \vdots
and \ddots
.
\ldots
for horizontal dots on the line\cdots
for horizontal dots above the line\vdots
for vertical dots\ddots
for diagonal dots
Regarding other Math symbols
Arrays and Matrices
Arrays
Let's explain the code. First, we define the array environment by the pair \begin{array}
and \end{array}
. After that, we have a special properties called "column spec" - which defines the alignment of the columns. <row i, column j>
is just the element.
Here is an example of arrays in action:
Matrices
matrix
is an environment that is bundled into the amsmath
package, which could simplify the process of creating a matrix. Luckily, amsmath
provides us with a lot of matrices with different delimeters:
Plain (no parentheses)
matrix
Parentheses
pmatrix
Brackets
bmatrix
Curly brackets
Bmatrix
Pipes
vmatrix
Double pipes
Vmatrix
The syntax is very simple. Let's take pmatrix
as an example:
Display style in math mode
TeX engines provide several commands which can be used to override the default style in which a piece of math is typeset:
\textstyle
: apply the style used for mathematics typeset in paragraphs (inline mode while in display math mode)\displaystyle
: apply the style used for mathematics typeset on lines by themselves (display math mode while in inline mode)\scriptstyle
: apply the style used for subscripts or superscripts (make your math smaller)\scriptscriptstyle
: apply the style used for second-order subscripts or superscripts (make your math smallest)
Let's look at this example to understand how it works:
Last updated