Code: Select all
\begin{center}
\begin{minipage}[h]{0.4\textwidth}
.....
....%some content
\end{minipage}
\hfill
\begin{minipage}{0.5\textwidth}
\vspace{0pt}
\includegraphics[width=\textwidth]{.....%some figure....}
\end{minipage}
\end{center}
Code: Select all
\begin{center}
\begin{minipage}[h]{0.4\textwidth}
.....
....%some content
\end{minipage}
\hfill
\begin{minipage}{0.5\textwidth}
\vspace{0pt}
\includegraphics[width=\textwidth]{.....%some figure....}
\end{minipage}
\end{center}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Code: Select all
\documentclass{article}
\usepackage{mwe}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\blindtext
\begin{center}
\includegraphics[width=.45\linewidth]{example-image-a}\quad%
\includegraphics[width=.45\linewidth]{example-image-b}%
\end{center}
\blindtext
\begin{figure}
\centering
\subcaptionbox{wobblng whale}{
\includegraphics[width=.6\linewidth]{example-image-16x9}
}
\subcaptionbox{samba Snake}{
\includegraphics[width=.3\linewidth]{example-image-1x1}
}
\caption{As you can see, the whale is larger
than a snake}
\end{figure}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p