I'm trying to prepare a calculus course and would like to have solutions (which usually don't take more than half of the width of the page, with a potential drawing on the right side.
My solutions are part of an "enumerate" environment", in which I use "align*" to have calculus steps made more clear.
I'm not finding any way to have a picture on the right side of each solution. Only thing I can think about is to have a "tabular", but the idea of combining "tabular", an "enumerate" in its left column that would be split over different lines, ... seems very complex to me.
Can you please help me get a simple solution with a clear layout for such a thing?
\documentclass[12pt,a4paper]{article}
\usepackage[a4paper,top=1.8cm,bottom=2cm,left=1.8cm,right=1.8cm]{geometry}
\usepackage[french]{babel}
\usepackage[dvipsnames,table]{xcolor}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} % pour les caractères avec des accents
\usepackage[fleqn]{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\graphicspath{ {./images/} }
\begin{document}
\begin{enumerate}
\item $cos (2x) = - cos (\pi - x)$
\begin{align}
cos (2x) & = - cos (\pi - x)\
cos (2x) + cos (\pi - x) & = 0\
cos (2x) - cos(x) & = 0\
...\
\end{align}
\begin{figure}[h] % I'd like this picture to be on the right side of the first item
\begin{center}
\includegraphics[width=150pt]{example-image}
\end{center}
\end{figure}
\item $sin(x)=-sin(\pi - 2x)$
\end{enumerate}
\end{document}
Link to example-image.pdf (I seem unable to attach a file that is not an image): https://drive.proton.me/urls/JQNA4TGEN8#2bueL70zHW1N

example-image.pdf? – Stephen Jan 01 '24 at 13:08