I am using wrapfig to have text cleanly flow around an image. I have a block of text with an image to the right, then a fillwithlines followed by more text. I cannot get the second block of text to fill the page width.
I tried the suggestions in this question, which work to some extent, but don't work for the second section of text below the fillwithlines. Changing the image style to float makes no difference, but adding \vspace{-70pt} to the wrapfig block does allow the first block of text to resume taking the full width of the page, but the text after the fillwithlines has the whitespace associated with the wrapfig.
Here is a MWE: I also tried to use adjustwidth around the misbehaving text to force it to fill the page, but it doesn't respond. The adjustwidth commands can be commented out with no change to the displayed page. img_fibre.jpeg is a 300x145 pixel image.
\documentclass[11pt]{exam}
\RequirePackage{adjustbox}
\usepackage{changepage}
\usepackage{wrapfig}
\usepackage[margin=0.4in]{geometry}
\parindent 0ex
\begin{document}
\begin{wrapfigure}{R}{0.45\textwidth}
\adjustimage{scale=0.8}{img_fibre.jpeg}
\vspace{-70pt} % use -60pt to clear image
\end{wrapfigure}
\section*{Applications of Total Internal Reflection}
Fibre optic cables use a core glass with high refractive index, surrounded by cladding with low refractive index. Data can be sent though the fibre as pulses of light, the same way that data is encoded in electricity as varying voltage levels. Fibre optic cables are often more fragile than electrical cables. List the advantages that fibre optics offers.
\vspace{1cm}
\fillwithlines{3cm}
\begin{adjustwidth}{0pt}{-\dimexpr\wrapoverhang+\columnsep\relax}
In addition to common uses in data transfer and computing, applications of fibre optics include endoscopic surgery, lighting, and situations where electronic data transfer is impossible, such as underwater, or where the is strong electromagnetic interference.
\end{adjustwidth}
\end{document}



\fillwithlines. See https://tex.stackexchange.com/questions/24512/can-latex-be-used-to-make-a-sheet-of-blank-lines – John Kormylo Mar 20 '24 at 16:30