
테이블 너비를 0.7\textwidth로 제한하면 글꼴 크기도 줄어듭니다. 표를 페이지 중앙에 표시하고 텍스트를 읽을 수 있을 만큼 충분히 크게 만들고 싶습니다.
\documentclass{exam}
\usepackage{adjustbox}
\begin{document}
\begin{center}
\begin{adjustbox}{width=0.7\textwidth}
\medskip\noindent
\begin{tabular}{|l|l|} \hline
Some text. & lsibyg gihebg fiehbg etin vtn osuing iostnugetnug etouhg otunhoeuthg thgu ituhg iotuhg ieuth guoierthg touhg uoth ut guotg uwht owuht \\\hline
\end{tabular}
\end{ajustbox}
\end{center}
\begin{tabular}{|l|l|} \hline
Some text. & lsibyg gihebg fiehbg etin vtn osuing iostnugetnug etouhg otunhoeuthg thgu ituhg iotuhg ieuth guoierthg touhg uoth ut guotg uwht owuht \\\hline
\end{tabular} \\
\end{document}
답변1
조정 상자가 필요하지 않습니다. 테이블 너비를 규정하고 두 번째 열에는 "단락" 열 유형(예: 패키지 에 정의된 열 유형)을 p{<width>}
사용 합니다 .X
tabularx
\documentclass{exam}
\usepackage{tabularx}
%---------------- Show page layout. Don't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\begin{document}
\begin{center}
\begin{tabularx}{0.7\linewidth}{|l|X|} % <---
\hline
Some text. & lsibyg gihebg fiehbg etin vtn osuing iostnugetnug etouhg otunhoeuthg thgu ituhg iotuhg ieuth guoierthg touhg uoth ut guotg uwht owuht \\
\hline
\end{tabularx}
\bigskip
\begin{tabularx}{\linewidth}{|l|X|} % <---
\hline
Some text. & lsibyg gihebg fiehbg etin vtn osuing iostnugetnug etouhg otunhoeuthg thgu ituhg iotuhg ieuth guoierthg touhg uoth ut guotg uwht owuht \\
\hline
\end{tabularx}
\end{center}
\end{document}
(빨간색 선은 페이지 레이아웃을 나타냅니다)