将图片以浮点形式添加到脚注中,脚注文本环绕其周围

将图片以浮点形式添加到脚注中,脚注文本环绕其周围

我正在尝试使用 wrap fig 包来实现这一点。但是当我更改文档中的文本时,图形浮动不会动态重新排列,因此布局、页码上方、超出边距等......是否有告诉 tex 根据变化的环境相应地定位浮动......希望我说清楚了,谢谢!

    \documentclass{article}
    \usepackage{blindtext}

    \usepackage{graphicx,wrapfig}
    \graphicspath{/Users/haimbook/Desktop/}
    \begin{document}

     This is a foot note \footnote{
     \blindtext

     \begin{wrapfigure}{l}{8cm} % 15cm is usually too wide to have the figure next     to text
    \centering
    \includegraphics[width=.7\linewidth]{example-image-duck}
    \caption{figure}
    \end{wrapfigure}
    \blindtext}
    \end{document}

在此处输入图片描述

答案1

这显示了如何在段落中间开始换行,以使脚注适合页面,

\documentclass{article}
\usepackage{lipsum}
\usepackage{showframe}

\usepackage{graphicx,wrapfig}
%\graphicspath{/Users/haimbook/Desktop/}
\begin{document}
\noindent\rule{\textwidth}{25\baselineskip}

 This is a foot note \footnote{%
 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisis sem.
 Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi nec ante. Donec ullam-
\begin{wrapfigure}{l}{8cm} % 15cm is usually too wide to have the figure next     to text
\centering
\includegraphics[width=.7\linewidth]{example-image-duck}
\caption{figure}
\end{wrapfigure}
corper.  felis non sodales commodo, lectus velit ultrices augue, a dignissim nibh lectus placerat
pede. Vivamus nunc nunc, molestie ut, ultricies vel, semper in, velit. Ut porttitor. Praesent
in sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis fringilla tristique
neque. Sed interdum libero ut metus. Pellentesque placerat. Nam rutrum augue a leo. Morbi
sed elit sit amet ante lobortis sollicitudin. Praesent blandit blandit mauris. Praesent lectus
tellus, aliquet aliquam, luctus a, egestas a, turpis. Mauris lacinia lorem sit amet ipsum. Nunc
quis urna dictum turpis accumsan semper.   

\lipsum[1]}% end of footnote

\lipsum[1-8]

\end{document}

相关内容