Skip to main content
v2026.11,986 entries · CC-BY 4.0

LaTeX ellipsis: text, math and matrix dots

Choose LaTeX ellipsis commands for prose, lists, sums and matrices, with a complete manuscript example and a sourced command table.

Written and maintained by CASRAI Editorial Board

Published

On this page

For a LaTeX ellipsis, use \ldots for low horizontal dots and \cdots for centered horizontal dots; use \vdots and \ddots for vertical and diagonal continuation. With amsmath, commands such as \dotsc for comma-separated items and \dotsb for sums describe the notation’s purpose, which helps when a research manuscript must follow a publisher’s different dot-placement conventions.

The worked specimen below puts prose, an observation list, a sum, a product and a matrix into one document. The downloadable data table pairs each notation context with its documented command and package requirement, so you can check the source as well as the appearance.

What it is used for in research

Ellipses indicate continuation without printing every item. In a manuscript, the continuation might run through an indexed list, along an arithmetic expression, down a matrix column or across a diagonal. The surrounding notation must still tell the reader what continues: dots alone do not define the missing terms.

The distinction between low and centered dots is typographic. The LaTeX Project’s base definitions distinguish low punctuation from centered punctuation and define the vertical and descending diagonal forms separately. For the same reason, a horizontal ellipsis cannot substitute for a vertical one in a matrix: its orientation conveys a different direction of continuation.

The AMS amsmath guide, section 4.3, explicitly recognizes differing placement conventions. Its semantic commands identify commas, binary operations or relations, multiplication, integrals and other contexts instead of prescribing one appearance for every occurrence. In a shared methods manuscript, that distinction lets an author encode the purpose of the dots while leaving the typesetting convention adaptable.

Install or access

You need a working LaTeX system rather than a separate ellipsis application. The LaTeX Project’s installation page directs Windows users to MiKTeX or TeX Live, macOS users to MacTeX, and Linux users to a distribution containing LaTeX or to TeX Live. It also identifies online services that edit LaTeX documents and produce PDFs.

For the semantic commands and matrix example here, place \usepackage{amsmath} in the document preamble, before \begin{document}. CTAN’s amsmath record identifies it as part of the required LaTeX distribution and lists it in TeX Live and MiKTeX. An existing manuscript may already load it; check the preamble before adding another package declaration.

For a team project, use the same specimen in your current writing environment before inserting it into the manuscript. The LaTeX and Overleaf collaborative writing workflow covers the broader project process. Ellipsis selection itself belongs in the source document, regardless of which editor displays that source.

Step-by-step task

1. Separate text from mathematical notation

First identify whether the dots occur in prose or inside a formula. For prose, an example is The recorded labels were A, B, \ldots{} and Z. For a mathematical list, put the whole expression inside math delimiters, for example \(x_1, x_2, \ldots, x_n\). The empty braces in the prose example terminate the command before the following text.

Overleaf’s mathematical expressions documentation distinguishes inline math, written with \( ... \) or dollar delimiters, from display math, written with \[ ... \]. Keep the commas and subscripts that belong to the list inside those delimiters. Switching dot commands does not replace the need to mark the formula as mathematics.

2. Choose low dots, centered dots or semantic dots

For explicit horizontal placement, compare \(x_1, x_2, \ldots, x_n\) with \(x_1 + x_2 + \cdots + x_n\). The first asks for low dots; the second asks for centered dots. These are two typographic choices, not different definitions of an ellipsis.

With amsmath loaded, you can instead write \(x_1, x_2, \dotsc, x_n\) and \(x_1 + x_2 + \dotsb + x_n\). For a product written by juxtaposition, the corresponding semantic form is \(x_1 x_2 \dotsm x_n\). Use \dotsi for integral continuation and \dotso for a context outside those categories.

The unspecialized command \dots also works with amsmath: the package chooses a form using the immediate context. The AMS guide recommends inspecting the result when that choice is inappropriate. An explicit semantic command is useful when the surrounding source does not make the intended category clear.

3. Build one complete manuscript specimen

This illustrative composite demonstrates typesetting only; the symbols do not represent measurements from a study. Copy the complete document into a new LaTeX source file, including the preamble, then compile it using your editor’s normal LaTeX compilation action.

\documentclass{article}
\usepackage{amsmath}
\begin{document}

The recorded labels were A, B, \ldots{} and Z.

The observations are \(x_1, x_2, \dotsc, x_n\).

\[
S = x_1 + x_2 + \dotsb + x_n
\]

\[
P = x_1 x_2 \dotsm x_n
\]

\[
X = \begin{bmatrix}
x_{11} & \cdots & x_{1n} \\
\vdots & \ddots & \vdots \\
x_{m1} & \cdots & x_{mn}
\end{bmatrix}
\]

\end{document}

The matrix uses the bmatrix environment documented by Overleaf’s matrix guide. Within each row, ampersands separate columns; a double backslash ends a row. The middle row therefore has a vertical ellipsis in each outer column and a diagonal ellipsis in the central column. For complete matrix construction, including other delimiters, see matrices in LaTeX.

4. Move the relevant expression into the manuscript

After checking the standalone output, copy only the passage you need into the journal or institutional template. Keep the template’s existing document class and document boundaries. If amsmath is already loaded, retain that declaration rather than copying a second complete preamble into the body.

Review the expression in its actual sentence or display, not just in isolation. In this specimen, the subscripts specify the list endpoints, the plus signs specify addition, and the matrix labels distinguish row and column indices. Preserve those details when replacing the illustrative symbols with the notation used in your own methods section.

Output and how to read it

The specimen should produce a prose ellipsis, a comma-separated observation list, two separate mathematical displays and a square-bracketed matrix. Read the output together with the source: the sum continues with addition, while the product continues with adjacent factors. Similar-looking dots do not make those two expressions interchangeable.

In the matrix, \cdots runs horizontally, \vdots runs vertically, and \ddots descends from upper left to lower right. These are continuation signs placed in matrix cells. They do not add hidden rows or columns to the source. Check that each visible row has the intended column separators before diagnosing the ellipsis glyph itself.

For the semantic examples, compare the result with the convention required by your manuscript template. The AMS documentation deliberately avoids claiming that every context has one universally agreed dot height. If a template changes the output, first establish which command you used and which packages it loads.

The data table below is a source crosswalk, rather than a new notation standard. Its context column records the role of the dots; its package and source columns explain where the command comes from. It is useful when reviewing several authors’ source passages that produce visually similar continuation marks.

Troubleshooting

An ellipsis command is undefined

Check the spelling and the package declaration before changing the expression. Overleaf’s undefined control sequence guide identifies both command typos and omitted packages as common causes. In particular, the semantic forms used here belong to amsmath; a source file using \dotsc must have that functionality available.

Compare the failing file with the complete specimen. If the specimen’s preamble is present but your manuscript’s is different, inspect that difference first. Make one change at a time so a missing package is not confused with a misspelled command.

The dots are at the wrong height

Distinguish a placement choice from a compilation failure. \ldots requests low dots and \cdots requests centered dots. If \dots produces an unsuitable form, replace it with the appropriate documented semantic command and inspect the PDF again. The immediate context is what amsmath uses to choose an automatic form.

Avoid treating extra spaces as a substitute for choosing the right command. When you need to adjust the surrounding formula after selecting the ellipsis, consult the separate guide to spacing in LaTeX. That keeps spacing changes distinct from changes to the notation’s meaning.

The expression ends immediately after the dots

Give the context explicitly when the dots are the final item. For example, the illustrative unfinished list \(x_1, x_2, \dotsc\) and unfinished sum \(x_1 + x_2 + \dotsb\) identify different continuation contexts even though neither has another item after the ellipsis. These follow the AMS guide’s own list and sum patterns.

This is especially useful when revising a finite expression into an open-ended one: the last comma or plus sign may disappear from the material following the command. Recheck the semantic command at the same time as the endpoint. For integral notation, the AMS example \[\int_{A_1}\int_{A_2}\dotsi\] likewise names the context instead of relying on a following symbol.

A single dot appears instead of continuation

Check that the source says \cdots, with a final s, rather than \cdot. Overleaf lists the former among mathematical symbols and the latter among binary operation symbols. One operation dot and a three-dot continuation sign serve different purposes; see LaTeX multiplication symbols when the intended operation itself is unclear.

Copied commands appear as letters

Inspect the source for its leading backslashes. The intended command is \dotsc, not the plain word dotsc; matrix row endings need two backslashes. When transferring a snippet through another editor or content system, compare the transferred characters with the original before adjusting packages or fonts.

Also check the math boundaries. A source example printed on a web page is text to copy into a LaTeX document; it is not itself a compiled equation. Keep the opening and closing math delimiters together, then judge the typesetting in the resulting PDF.

Free alternatives

You can use the same LaTeX commands through different local distributions. The following options are identified as free distributions by the LaTeX Project; the table compares access routes, not ellipsis rendering quality. None requires a different spelling of the commands in the specimen.

Distribution Platform route in the LaTeX Project documentation Use for this task
TeX Live Windows or Linux A local LaTeX system for compiling the source document.
MacTeX macOS A complete local TeX system including LaTeX and editors.
MiKTeX Windows A local TeX system including LaTeX and editors.

The installation choices above come from the LaTeX Project’s distribution guidance. They change how you obtain and maintain your typesetting system. The separate command dataset records the notation choices, so distribution selection and ellipsis selection can be checked independently.

Sources

Data: LaTeX ellipsis context and command crosswalk

Original crosswalk combining AMS semantic ellipsis categories, LaTeX Project kernel symbol definitions and Overleaf text-mode examples. Each row identifies the notation context, command name and source. Prefix command names with a backslash in LaTeX source; names omit that character here. This is a documentation compilation, not a universal publisher style rule.

LaTeX ellipsis context and command crosswalk
Notation contextCommand nameProvided byDocumentation
Comma-separated itemsdotscamsmathhttps://www.latex-project.org/help/documentation/amsldoc.pdf#page=18
Binary operators or relationsdotsbamsmathhttps://www.latex-project.org/help/documentation/amsldoc.pdf#page=18
Multiplication continuationdotsmamsmathhttps://www.latex-project.org/help/documentation/amsldoc.pdf#page=18
Integral continuationdotsiamsmathhttps://www.latex-project.org/help/documentation/amsldoc.pdf#page=18
Other semantic ellipsis contextsdotsoamsmathhttps://www.latex-project.org/help/documentation/amsldoc.pdf#page=18
Text ellipsis outside mathematicsldotsLaTeXhttps://www.overleaf.com/learn/latex/Mathematical_expressions
Centered horizontal continuationcdotsLaTeX kernelhttps://raw.githubusercontent.com/latex3/latex2e/develop/base/fontdef.dtx
Vertical continuationvdotsLaTeX kernelhttps://raw.githubusercontent.com/latex3/latex2e/develop/base/fontdef.dtx
Descending diagonal continuationddotsLaTeX kernelhttps://raw.githubusercontent.com/latex3/latex2e/develop/base/fontdef.dtx

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · free to try

Ask about LaTeX ellipsis: text, math and matrix dots

2 free questions a day, no account.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →