社区,
我想使用 \itemize 中的 \cutwin 将文本环绕在长正文图像周围。我遇到了三个问题:
- 行距(初始设置 \onehalfspacing)大幅缩小(见附图)。
- 当第一个adjustbox的文字较长时,第二个adjustbox会跳转到下一页(见附图)。
- Adjustbox 与标题重叠。
你能帮我修复它们吗?谢谢。
下面是我的代码
\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
\renewcommand\windowpagestuff{% setup the image to be placed in the cutout
\begin{flushright}
\begin{measuredfigure}
\includegraphics[width=0.80\linewidth]{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.0\linewidth}}
\begin{itemize}[leftmargin=*,wide = 0pt]
\begin{cutout}{3}{0.6\linewidth}{0pt}{9}
\item\textbf{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
\renewcommand\windowpagestuff{%
\begin{measuredfigure}
\includegraphics[width=0.80\linewidth]{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.0\linewidth}}
\begin{itemize}[leftmargin=*,wide = 0pt]
\begin{cutout}{3}{0pt}{0.6\linewidth}{9}
\item \textbf{Nano-materials with abnormal properties:}
\Blindtext[1][4]
\end{cutout}
\end{itemize}
\end{adjustbox}
\end{document}