Skip to content
Kittycat.tech logo

Coding Guide in MathJax (LaTeX)

Contributors:
Pretty Image
Erica Madebeykin
PGDip Researcher
Pretty Image
Nikita Madebeykin
ML Engineer
Creation Date:
October 24, 2024

*Ongoing Development*

MathJax (LaTeX) Basic Tutorials and Coding Guide

✅ Useful code snippets and explanations for understanding and documenting with MathJax (LaTeX). Perfect for students, educators, and programmers! 😻

Just click the "copy code" button below 'markdown'!

1.1. Ellipses in Different Use Cases

1.1.1 Ellipsis Centered : "\cdots"

Centered Ellipsis : "\cdots"

Example Use Case: Sequences in Summation

  • In the contexts where terms are arranged in a sequence horizontally (such as in summation formulas), ( \cdots ) can be used to indicate continuation.
i=1nai=a1+a2++an
markdown
 $$
 \sum_{i=1}^n a_i = a_1 + a_2 + \cdots + a_n
 $$

Other Use Cases of Centered Ellipsis:

  1. Products:

    • When indicating a product of several factors, ( \cdots ) is used to represent multiplication.

    Product of several factors, for example:

    a1a2an
    • This suggests a multiplication of the terms from ( a_1 ) to ( a_n ).
    markdown
     $$
     a_1 \cdot a_2 \cdots a_n
     $$
  2. Matrices:

    • In matrix notation, ( \cdots ) can be used to indicate the continuation of entries in a row.

    Matrix Notation example:

    [12nabz]
    • This shows that the entries continue horizontally.
    markdown
     $$
     \begin{bmatrix}
     1 & 2 & \cdots & n \\
     a & b & \cdots & z
     \end{bmatrix}
     $$

1.1.2 Ellipsis Horizontal : "\ldots"

Horizontal Ellipsis : "\ldots" for "lowered dots"

Example:

1,2,,n

1.1.3 Ellipsis Vertical : "\vdots"

Vertical Ellipsis: "\vdots"

Example:

(ac)

1.1.4 Ellipsis Diagonal : "\ddots"

Diagonal Ellipsis: "\ddots"

Example:

(abcefghi)

1.2 Space Commands

1.2.1 Single Space

Space (Quad): "\quad"

Example:

x+yz

1.2.2 Double Space

Double Space (Double Quad): "\qquad"

Example:

x+yz

✅Summarized reviews based on Kittycat's insights from the best online courses at top universities