For images, we can use \centering
. Is there anything available to align the image to the right side or the left side of the page.
[Tex/LaTex] Syntax similar to \centering for right and left
graphicshorizontal alignment
graphicshorizontal alignment
For images, we can use \centering
. Is there anything available to align the image to the right side or the left side of the page.
Best Answer
For general text you can use
\raggedright
and\raggedleft
to align the material to the left and right, respectively. To align images inside afigure
easily you can use theadjustbox
package which allows you to add alignment keys to\includegraphics
.For new documents, especially if many
adjustbox
keys are used, I recommend to use the\adjustimage{<keys>}{<filename>}
macro instead of\includegraphics
. Theexport
option is then not required anymore. There is also the possibility to do the wholefigure
using one\adjustimage
use by using the keyscaption
,label
andfigure
.