TeX - LaTeX Asked by rob41 on September 27, 2021
I’m trying to put two images side by side, using a simple code:
documentclass[11pt]{article}
usepackage{graphicx}
begin{document}
begin{figure}
centering
includegraphics{example-image}
includegraphics{example-image}
end{figure}
end{document}
However, I may need to rotate one them, when I try rotating one of them, e.g.
documentclass[11pt]{article}
usepackage{graphicx}
begin{document}
begin{figure}
centering
includegraphics[]{five.png}
includegraphics[angle=180]{five.png}
caption{Caption textlabel{fig:scaled_diss}}
end{figure}
end{document}
what I get is the second image positioned below the first one, which clearly I don’t want.
How can I solve this?
Thanks in advance.
You can use rotatebox
with the origin=c
option to keep the rotation about the image center, rather than base.
documentclass[11pt]{article}
usepackage{graphicx}
begin{document}
begin{figure}
centering
includegraphics[scale=.3]{example-image}
rotatebox[origin=c]{180}{includegraphics[scale=.3]{example-image-a}}
caption{Caption textlabel{fig:scaled_diss}}
end{figure}
end{document}
Answered by Steven B. Segletes on September 27, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP