I'm inserted figures and tables in my document in the following way:
\begin{figure}[!htbp]
\centering
\includegraphics[width=110mm]{figure.jpg}
\caption{The caption.}
\label{fig:label}
\end{figure}
\begin{table}[!htbp]
\caption{The caption.}
\centering
\resizebox{12cm}{!}{\input{table}}
\label{tab:label}
\end{table}
The figure and table is larger then the text width, thus I'm resizing it. Of course I can adjust the value so that it fits more or less the text width. But is there a possibility that it is automatically scaled to the text width?
\textwidth
instead of 110mm and 12cm (but scaling tables is horrible )[width=\textwidth]
ou\resizebox{\textwidth}
should be enough.\normalsize
,\small
,\footnotesize
etc) and then arrange linebreaking so the text fits. the same should apply (more so) to tables,