TransWikia.com

Line breaks for items while wrapping images with a list

TeX - LaTeX Asked on December 11, 2020

I am trying to create a list with figure on the right side in beamer but the sentence breaks at unusual places.

    begin{frame}{Protocol}
            begin{wrapfigure}{R}{0.2textwidth}
            centering
            includegraphics[width=0.1textwidth]{Schematic_coating}
        end{wrapfigure}
        noindent
            begin{itemize}
                item Prepare 0.6 M NaCl solution in a 10 mM Tris-HCl (pH 8.5) solution
                item Clean the glass substrate using ultrasonication with water and acetone or ethanol.
                item Leave the substrate for 8 h into the solution for coating.
                item Rinse extensively with ultrapure water and dry under a stream of nitrogen.
            end{itemize}
end{frame}

Image showing line break

One Answer

Here is a possible layout using columns:

enter image description here

documentclass[demo]{beamer} % do not use the demo option in your actual document.
begin{document}

begin{frame}{Protocol}
  begin{columns}
    begin{column}{0.8textwidth}
      begin{itemize}
        item Prepare 0.6 M NaCl solution in a 10 mM Tris-HCl (pH 8.5) solution
        item Clean the glass substrate using ultrasonication with water and acetone or ethanol.
        item Leave the substrate for 8 h into the solution for coating.
        item Rinse extensively with ultrapure water and dry under a stream of nitrogen.
      end{itemize}
    end{column}
    begin{column}{0.2textwidth}
      centering
      includegraphics[width=0.5linewidth]{Schematic_coating}
    end{column}
  end{columns}
end{frame}

end{document}

Answered by leandriis on December 11, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP