Generaltext on left and graphics(Fig.) image on the right

LaTeX specific issues not fitting into one of the other forums of this category.
metric
Posts: 61
Joined: Mon Mar 24, 2008 8:34 am

text on left and graphics(Fig.) image on the right

Post by metric »

Juanjo wrote:Does the following code fit your needs now?

Code: Select all

\documentclass{article}
\usepackage{graphicx}
\usepackage[font=small]{caption}

\begin{document}

\begin{enumerate}

\item 
   \begin{minipage}[t]{0.45\linewidth}
      Prove that triangle $ABC$ is congruent to triangle $PQR$.
      Given these conditions blah blah blah.
   \end{minipage}%
   \hfill
   \begin{minipage}[t]{0.45\linewidth}
     \centering
     \vspace{-1.5ex}
     \rule{0.9\linewidth}{0.5\linewidth} %
     \captionof{figure}{See triangles $ABC$ and $PQR$}\label{fig:f1}
   \end{minipage}

\item 
   \begin{minipage}[t]{0.45\linewidth}
      Prove this and that. Try this and that blah blah blah.
   \end{minipage}%
   \hfill
   \begin{minipage}[t]{0.45\linewidth}
     \centering
     \vspace{-1.5ex}
     \rule{0.9\linewidth}{0.5\linewidth}
     \captionof{figure}{This picture exemplifies blah blah}\label{fig:f2}
   \end{minipage}
   
\end{enumerate}

\end{document}
Let's remark that I use the same basic idea as in my previous post. Now there are two parallel minipages in each list entry.
Thanks you so much for the help i got the output as i wanted, Thanks, Thanks a lot..

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

metric
Posts: 61
Joined: Mon Mar 24, 2008 8:34 am

text on left and graphics(Fig.) image on the right

Post by metric »

Juanjo wrote:Does the following code fit your needs now?

Code: Select all

\documentclass{article}
\usepackage{graphicx}
\usepackage[font=small]{caption}

\begin{document}

\begin{enumerate}

\item 
   \begin{minipage}[t]{0.45\linewidth}
      Prove that triangle $ABC$ is congruent to triangle $PQR$.
      Given these conditions blah blah blah.
   \end{minipage}%
   \hfill
   \begin{minipage}[t]{0.45\linewidth}
     \centering
     \vspace{-1.5ex}
     \rule{0.9\linewidth}{0.5\linewidth} %
     \captionof{figure}{See triangles $ABC$ and $PQR$}\label{fig:f1}
   \end{minipage}

\item 
   \begin{minipage}[t]{0.45\linewidth}
      Prove this and that. Try this and that blah blah blah.
   \end{minipage}%
   \hfill
   \begin{minipage}[t]{0.45\linewidth}
     \centering
     \vspace{-1.5ex}
     \rule{0.9\linewidth}{0.5\linewidth}
     \captionof{figure}{This picture exemplifies blah blah}\label{fig:f2}
   \end{minipage}
   
\end{enumerate}

\end{document}
Let's remark that I use the same basic idea as in my previous post. Now there are two parallel minipages in each list entry.

Thanks for the help i got the result as i want, thanks a lot.
Post Reply