Hello, in the last post I talked about the includegraphics command.
But, did you notice? it just imports images but you can not change its location or add a caption, and it is so important when you are talking about images because you can add more details to your image.
In this post, I am going to talk about that, about the figure environment
The figure Environment
Do you remember the table environment? If not you can check it here, the figure environment is so similar to this environment.
\begin{figure}[position]
align
\includegraphics[modifiers]{yourImage.ext}
\caption{yourCaption}
\end{figure}
position options
-
hto put the image here, it is, at the current position of your cursor in the code -
bto put the image at the bottom of the current page -
tto put the image at the top of the current page -
!indicates ignore the rules and put the image here
align options
-
\centeringalign the image to the center -
\raggedleftalign the image to the left -
\raggedrightalign the image to the right
modifiers and image options
You can change the details in this post, in the Importing images section
caption
Here you can put the caption of the image
Thanks, this is all for today, enjoy :)
Do not forget to follow me on Twitter @latexteada
Top comments (0)