1

Well, I'm having a problem with figure.

I'm using figures like this:

\begin{figure}[!ht]
\centering
\includegraphics[scale=1]{\importacaodedados importacaodearquivos.png} 
\caption{Importação de Arquivos.}
\label{fig:importacaodearquivos}
\end{figure}

And I'd like to know if there is a way to IF the scale=1 exceeds the text width, use [max width = \textwidth]

It would be really better if there is a way to put it in the style file. so I won't have to change every figure in the manual. (There are more than 140. Not all of them exceed the text width.)