TeX - LaTeX Asked on January 3, 2022
community,
I would like to wrap text around images using cutwin in itemize with long body texts. I got three problems:
Could you please help me to fix them? Thank you.
Below is my code
documentclass[11pt]{article}
usepackage[a4paper,margin=2.25cm,headsep=8pt, headheight=2cm]{geometry}
usepackage{lipsum}
usepackage[english]{babel}
usepackage{blindtext}
% For wrapping text around text
usepackage{cutwin}
usepackage{enumitem} % Itemize
usepackage[calc]{adjustbox}
usepackage{graphicx}
usepackage{threeparttable}%
setlength{parskip}{baselineskip}
% Spacing
usepackage{setspace}
onehalfspacing
% Caption
usepackage{caption}
captionsetup[figure]{font=small,labelfont={bf},name={Fig.},labelsep=period}
% header and page
usepackage{fancyhdr}
pagestyle{fancy}
fancyhf{}
lhead{Left header}
chead{}
rhead{textit{Right heaader}}
lfoot{}
cfoot{thepage of 2}
rfoot{}
setlength{headsep}{0.5cm}
begin{document}
% Part 1
% The first figure
opencutright
renewcommandwindowpagestuff{% setup the image to be placed in the cutout
begin{flushright}
begin{measuredfigure}
includegraphics[width=0.80linewidth]{example-image-a.png}
captionof{figure}{Caption of Fig. 1 here.}
end{measuredfigure}
end{flushright}
}
% Text of Part 1
begin{adjustbox}{valign=b,vspace=0bp,minipage={1.0linewidth}}
begin{itemize}[leftmargin=*,wide = 0pt]
begin{cutout}{3}{0.6linewidth}{0pt}{9}
itemtextbf{Elastic instability and ideal strength of nano-metals:}
Blindtext[1][4]
end{cutout}
end{itemize}
end{adjustbox}
% Part 2
% The figure for Part 2
opencutleft
renewcommandwindowpagestuff{%
begin{measuredfigure}
includegraphics[width=0.80linewidth]{example-image-b.png}
captionof{figure}{Caption of Fig. 2 here.}
end{measuredfigure}
}
% Text for Part 2
begin{adjustbox}{valign=C,vspace=0bp,minipage={1.0linewidth}}
begin{itemize}[leftmargin=*,wide = 0pt]
begin{cutout}{3}{0pt}{0.6linewidth}{9}
item textbf{Nano-materials with abnormal properties:}
Blindtext[1][4]
end{cutout}
end{itemize}
end{adjustbox}
end{document}
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP