Wrap Text Around Figures in LaTeX
Jul. 24, 2024
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\documentclass[a4paper]{article}
\usepackage[margin=1in]{geometry}
\usepackage{lipsum}
\usepackage{graphicx,wrapfig}
\usepackage[x11names]{xcolor}
\pagecolor{AntiqueWhite1}
\begin{document}
\lipsum[1-2]
\begin{wrapfigure}{l}{0.5\textwidth}
\begin{flushleft}
\includegraphics[width=0.4\textwidth]{Camus.jpg}
\end{flushleft}
\caption{Camus}
\end{wrapfigure}
\lipsum[3-4]
\begin{wrapfigure}{r}{0.5\textwidth}
\begin{flushright}
\includegraphics[width=0.4\textwidth]{Camus.jpg}
\end{flushright}
\caption{Camus}
\end{wrapfigure}
\lipsum[5-6]
\thispagestyle{empty}
\end{document}
References