테이블을 더 넓게 만들려고 합니다. 이미 텍스트 너비가 있는 조정 상자를 만들었지만 아무 일도 일어나지 않았습니다. 누구든지 도와주실 수 있나요?
내 코드:
\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
전체에 걸쳐 있는 를 사용할 수 있습니다 .\columnwidth
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}