表の幅を列の幅に合わせて調整します

表の幅を列の幅に合わせて調整します

テーブルの幅を広げようとしています。テキスト幅の調整ボックスはすでに作成しましたが、何も起こりませんでした。どなたか助けていただけませんか?

私のコード:

\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}%

出力: ここに画像の説明を入力してください

答え1

の代わりに、tabularx全体にわたる を使用できます。\columnwidthtabular

ムウェ

\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} 

ここに画像の説明を入力してください

関連情報