라텍스 개체 크기 조정

라텍스 개체 크기 조정

페이지에 맞지 않는 넓은 테이블이 있다고 상상해보십시오.

\begin{tabular}
Some very wide table
\end{tabular}

글꼴 크기를 다시 조정하지 않고도 이 개체의 크기를 조정할 수 있나요?

답변1

\documentclass[]{article}    

\begin{document}

\resizebox{\textwidth}{!}{%
\begin{tabular}{|c|c|}
\hline 
a & b \\ 
\hline 
c & d \\ 
\hline 
\end{tabular} 
}

\resizebox{2cm}{!}{%
\begin{tabular}{|c|c|}
\hline 
a & b \\ 
\hline 
c & d \\ 
\hline 
\end{tabular} 
}

\end{document}

여기에 이미지 설명을 입력하세요

관련 정보