带包裹图像的全宽多列浮动

带包裹图像的全宽多列浮动

在一本宽边距的书中,我想制作两栏传记注释,并带有环绕图像,固定在页面底部(就像我可以固定浮动的位置一样)。我该怎么做?

我已尝试使用以下代码片段:

\documentclass[12pt]{book}

\usepackage[left=.7in, bottom=1in, right=2.8in, marginparwidth=2.1in, marginparsep=.3in]{geometry}
\usepackage{fullwidth}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{lipsum}

\begin{document}

\lipsum[10]

% \begin{fullwidth}[outermargin=-5cm,width=\linewidth+5cm]
\begin{multicols}{2}\begin{wrapfigure}{l}{100pt}\includegraphics[width=100pt]{newton.jpg}\end{wrapfigure} \footnotesize \noindent \textbf{Issac Newton} (1643\textendash1727) was a British physicist and mathematician. He is remembered as one of the greatest scientists of all time.

In his book \emph{Philosophi\ae Naturalis Principia Mathematica} (known as \emph{Principia} in short), published in 1687, he formulated mechanics and the law of gravitation, which brought a revolution in Physics and Astronomy. Before him Kepler had observed the motions of the planets of the solar system. But their explanation was unknown until then.

\lipsum[2]

\lipsum[2]\end{multicols}
% \end{fullwidth}

\lipsum[10]

\end{document}

到目前为止,该代码片段产生了以下两个输出,但它们都不是所需的。

正确图像环绕。非全宽。未固定在底部 全宽。图片位置不正确。底部未固定
在此处输入图片描述 在此处输入图片描述

答案1

我取得了一些进展(实际上几乎实现了我想要的)。使用tcolorbox(支持浮动和环绕图)进行了勾选。

\documentclass[12pt]{book}

\usepackage[left=.7in, bottom=1in, right=2.8in, marginparwidth=2.1in, marginparsep=.3in]{geometry}
\usepackage{fullwidth}
\usepackage{multicol}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{lipsum}
\usepackage{tcolorbox}

\begin{document}

\lipsum[10]

\begin{tcolorbox}[float*=!btp, width=\linewidth+5cm, boxrule=0pt, bottomrule=1pt, arc=0pt]
    \begin{multicols*}{2}
        \begin{wrapfigure}{l}{100pt}\includegraphics[width=100pt]{newton.jpg}\end{wrapfigure} \footnotesize \textbf{Issac Newton} (1643\textendash1727) was a British physicist and mathematician. He is remembered as one of the greatest scientists of all time.
        
        In his book \emph{Philosophi\ae Naturalis Principia Mathematica} (known as \emph{Principia} in short), published in 1687, he formulated mechanics and the law of gravitation, which brought a revolution in Physics and Astronomy. Before him Kepler had observed the motions of the planets of the solar system. But their explanation was unknown until then.
        
        \lipsum[2]
        
        \lipsum[2]
        
        \lipsum[2]
    \end{multicols*}
\end{tcolorbox}

\lipsum[10]

\end{document}

!btp下面是它产生的结果。输出正是我想要的,只是虽然我在浮动属性 ( )中将底部设置为优先级,但框始终位于页面顶部。

在此处输入图片描述

相关内容