아래 코드에서는 오류가 발생합니다.
이러한 잘못된 추가 줄을 어떻게 제거합니까? 하단의 이미지를 참조하세요.
\begin{document}
\begin{table}
\begin{tabularx}{\linewidth}{|r|r|r|r|r|}
\hline
\multicolumn{1}{|>{\columncolor[gray]{.9}}c|}{$x$} &
\multicolumn{1}{ >{\columncolor[gray]{.9}}c|}{\textbf{Actual}} &
\multicolumn{1}{ >{\columncolor[gray]{.9}}c|}{\textbf{Approx.}} &
\multicolumn{1}{ >{\columncolor[gray]{.9}}c|}{\textbf{\% diff}} &
\multicolumn{1}{ >{\columncolor[gray]{.9}}c|}{\textbf{\% grow}}
\\
\hline
2 & 1.0000 & 0.5576 & -44.2\% & 0.0\% \\ \hline
3 & 2.0000 & 1.4943 & -25.3\% & 168.0\% \\ \hline
\end{tabularx}
\end{table}
\end{document}
답변1
X 유형 열이 필요한 tabularx로 인한 오류
테이블 형식을 테이블 형식으로 변환
선폭 삭제 명령
misscellaneous --columncolor 대신 rowcolor 사용