Using includegraphics
seems to set default margins that gives a nice spacing between text and image. But I'd like to layout the text as close as possible to the image. How do I control the margins of an image?
Change from:
| #TEXT######################### |
| ################################## |
| ################################## |
| ################################## |
| ################################## |
| ####################### |
| | % <-- margin from image is a bit tall
| ************* |
| ************* |
| ************* |
| **IMAGE.JPG** |
| ************* |
| ************* |
| ************* |
| ************* |
| | % <-- margin from image is a bit tall
| #TEXT######################### |
| ################################## |
| ################################## |
| ################################## |
| ################################## |
| ################# |
To:
| #TEXT######################### |
| ################################## |
| ################################## |
| ################################## |
| ################################## |
| ####################### | % <-- as close as possible
| ************* |
| ************* |
| ************* |
| **IMAGE.JPG** |
| ************* |
| ************* |
| ************* |
| ************* |
| #TEXT######################### | % <-- as close as possible
| ################################## |
| ################################## |
| ################################## |
| ################################## |
| ################# |
Best Answer
No,
\includegraphics
does not add any margins by itself. You seem to use it either inside afigure
orcenter
environment which both add margins.The distance between floats like
figure
andtable
is defined by the lengths\textfloatsep
and forfigure*
intwocolumn
documents by\dbltextfloatsep
. You can set these to zero to remove all separation.Should you use the
center
environment instead, replace it with\centerline{\includegraphics[..]{..}}
.You can also add and remove some vertical space before and after the
\includegraphics
using\vspace{<length>}
where the length can be positive or negative.