I am trying to adjust the size of the table, so that the table is more aligned with the text. because it reaches the end of the page.
Thanks.
\usepackage{siunitx}
\usepackage{booktabs}
\begin{tabular}{
l
*{6}{S[table-format=1.4]}
S[table-format=5]
S[table-format=3.2]
}
\toprule
\multicolumn{1}{c}{Componente} &
\multicolumn{2}{c}{} &
\multicolumn{2}{c}{Pico} &
\multicolumn{2}{c}{Reposo} \
\cmidrule(lr){4-5} \cmidrule(lr){6-7}
& {Cantidad} & {Voltaje} & {Corriente(mA)} & {Potencia(W)} & {Corriente(mA)} & {Potencia(W)} \
\midrule
Subisistema & 1 & 3.3 & 19.506 & 0.076 & 4.454 & 0.0175 \
ADCS & & & & & & \
\bottomrule
\end{tabular}


\tabcolsepand probably a smaller font size for the column headers you should be able to fit the table into the textwidth. For more specific advice, please make your code compilable by adding the documentclass. (See also: minimal working example (MWE)) – leandriis May 29 '21 at 21:56table-formatoptions of theStype columns do not match the contents of these columns. I would expect something like\begin{tabular}{ l S[table-format=1] S[table-format=1.1] S[table-format=2.3] S[table-format=1.3] S[table-format=1.3] S[table-format=1.4] }instead. – leandriis May 29 '21 at 21:58