Espacio horizontal inicial espurio con \multicolumn en tabular

Espacio horizontal inicial espurio con \multicolumn en tabular

Cuando uso a \multicolumndentro de tabular(o tabularx) parece que se agrega un espacio horizontal adicional al comienzo de la columna, aunque lse especificó la alineación izquierda para \multicolumn. La última línea de esta tabla muestra este problema:

ingrese la descripción de la imagen aquí

¿Por qué hay espacio ahí y cómo lo elimino?

Código:

\documentclass{article}
\usepackage{tabularx}
\usepackage[showframe,textwidth=7.0cm]{geometry}

\begin{document}
\noindent
\begin{tabularx}{\linewidth}{@{}X l l@{}}
Sub Item 1 & 3,000 \\
Sub Item 2 & 4,000 \\
Total      &       & 7,000 \\
\multicolumn{3}{l}{$\leftarrow$ Why is there space to the left of this?} \\
\end{tabularx}
\bigskip
\par\noindent
\begin{tabular}{@{}l l l@{}}
Sub Item 1 & 3,000 \\
Sub Item 2 & 4,000 \\
Total      &       & 7,000 \\
\multicolumn{3}{l}{$\leftarrow$ Why is there space to the left of this?} \\
\end{tabular}
\end{document}

Respuesta1

Está determinado por el \arraycolsepparámetro. Si tu pregunta significa "cómo evitar este salto", la solución es simple:

\documentclass{article}
\usepackage{tabularx}
\usepackage[showframe,textwidth=7.0cm]{geometry}

\begin{document}
\noindent
\begin{tabularx}{\linewidth}{@{}X l l@{}}
Sub Item 1 & 3,000 \\
Sub Item 2 & 4,000 \\
Total      &       & 7,000 \\
%\multicolumn{3}{l}{$\leftarrow$ Why is there space to the left of this?} \\
\multicolumn{3}{@{}l}{$\leftarrow$ Why is there space to the left of this?} \\
\end{tabularx}
\end{document}

información relacionada