Figure Placement – How to Change the Place of a Figure in LaTeX

figure-placement

\documentclass{article}

\usepackage{amsfonts,amsmath,amssymb,graphicx,amsthm,mathtools,systeme}
\usepackage{geometry}
\geometry{left=1.5cm,right=1.5cm,top=1.5cm,bottom=2.3cm}
\begin{document}




\noindent Let $D$ be the region bounded by the graphs of $y = x$, $y = 0$ and $x = 1$ as shown in the figure. Evaluate the following quantity:
\begin{equation*}
\int \int_{D}(x^2+3y^2+2xy)dxdy
\end{equation*}
\vspace{-0.8cm}
\begin{figure}[h]
\begin{center}
\includegraphics[scale=0.7]{int.jpg}
%\caption {\scriptsize The region $D$.}
\end{center}
\end{figure}
\vspace{-0.8cm}
\end{document} 

enter image description here

Best Answer

Using adjustbox combined with minipages provides more flexibility

Have a look here also -- Understanding minipages - aligning at top

With the first adjustbox

![enter image description here

Without the first adjustbox

enter image description here

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{amsmath}
\usepackage{adjustbox}

\begin{document}

    \section{Having a picture problem?}
    \adjustbox{valign=t}{\begin{minipage}[t]{0.6\linewidth}
            Let $D$ be the region bounded by the graphs of $y = x$, $y = 0$ and $x = 1$ as shown in the figure. Evaluate the following quantity:
            \begin{equation*}
                \int \int_{D}(x^2+3y^2+2xy)dxdy
            \end{equation*}
    \end{minipage}}%
    \hfill
    \adjustbox{valign=t}{\begin{minipage}[t]{0.3\linewidth}
            \includegraphics[width=\linewidth]{foo}
    \end{minipage}}
    

\end{document}
Related Question