I would like to add a figure, but I would like to control both width and length of figure. I know to control length and width separately but not together. Could anyone let me know the command to do that.
I am using the following commands:
\begin{figure}[H]
\centering
\includegraphics[height=8cm]{Images/abc}
\caption{abc}
\label{fig:abc}
\end{figure}
Best Answer
Here you are:
And the result:
Be very careful! By defining both
height
andwidth
, you will distort the aspect ratio of the images. See the manual of the graphics bundle for more details and how to avoid distortions. To avoid the distortion, you can use thekeepaspectratio
-option, as presented in the last command.