Fix spacing

spacing

This system of equations comprise of a sequence of equations and I want to use the horizontal dots to skip the intermediate equations much like in 1,2 …n. But when I do the following there is an ugly space/gap before the equal sign, plus the horizontal dots \ldots don't fill the length of the equation. How can I fix this?

enter image description here

\documentclass{article}
\usepackage{systeme}

\begin{document}

% here
\begin{equation}
    \systeme{
        L_i^TS_1 = 0,
        L_i^TS_2 = 0,
        \ldots,
        L_i^TS_{i-1} = 0
    }
\end{equation}
% to here

\end{document}

Best Answer

I suggest \cdots for better vertical spacing. You can enclose it in \mathllap to get rid of the unwanted space. Note: \mathllap requires the mathtools package.

enter image description here

\documentclass{article}
\usepackage{systeme,mathtools}

\begin{document}

% here
\begin{equation}
    \systeme{
        L_i^TS_1 = 0,
        L_i^TS_2 = 0,
        \mathllap{\cdots},
        L_i^TS_{i-1} = 0
    }
\end{equation}
% to here

\end{document}

You might consider \vdots:

enter image description here

To have horizontal dots go across the whole line, you can use \dotfill. I suggest raising it for better spacing:

\rlap{\raisebox{.5ex}{\makebox[1.8cm]{\dotfill}}}

enter image description here

Related Question