Ajuste a largura da tabela para ser a largura da coluna

Ajuste a largura da tabela para ser a largura da coluna

Estou tentando deixar a tabela mais larga, já fiz uma caixa de ajuste com largura do texto mas nada aconteceu.. alguém pode me ajudar por favor?

Meu código:

\begin{table}[htbp]
      \centering
      \caption{Three different Noise Levels}
        \begin{adjustbox}{max width=\textwidth}
        \begin{tabular}{ccc}
        \hline
        \textbf{V output}\textbf{} & &  \textbf{SNR Level} \\
        \hline
        From  & To    &  \\
        \hline
        -inf    & 0     & Low \\
        0     & 20    & Medium \\
        20    & inf    & High \\
        \hline
        \end{tabular}%
        \end{adjustbox}
      \label{tab:addlabel}%
    \end{table}%

A saída: insira a descrição da imagem aqui

Responder1

Você pode usar a tabularxabrangendo o todo \columnwidthem vez de a tabular.

MWE

\documentclass[twocolumn]{article}

\usepackage{tabularx}
\newcolumntype{Y}{>{\centering\arraybackslash}X}

\begin{document}

\noindent x\hrulefill x

\begin{table}[htbp]
      \centering
      \caption{Three different Noise Levels}
        \begin{tabularx}{\columnwidth}{YcY}
        \hline
        \textbf{V output}\textbf{} & &  \textbf{SNR Level} \\
        \hline
        From  & To    &  \\
        \hline
        -inf    & 0     & Low \\
        0     & 20    & Medium \\
        20    & inf    & High \\
        \hline
        \end{tabularx}%
      \label{tab:addlabel}%
    \end{table}%

\end{document} 

insira a descrição da imagem aqui

informação relacionada