Paracol 和浮标放置

Paracol 和浮标放置

如果我在具有 paracol 环境的同一页中使用浮点数,则浮点数会放置在其所在的位置,而与参数无关。请参阅我的 MWE。第 1 页上的浮点数应该位于底部,就像第 2 页中的浮点数一样,但它却位于顶部。为什么?(如果我注释掉 paracol,一切正常)

\documentclass{article}
\usepackage[]{lipsum}
\usepackage{paracol}


\begin{document}

\begin{figure}[b]
   Some text that should go at the bottom.
\end{figure}


\columnratio{0.65}
  \begin{paracol}{2}
  \sloppy
  \noindent
  Some text in two columns.
  \switchcolumn
 
  \noindent
  {\scriptsize Some more text in the second column.} \end{paracol}

\lipsum{1}
\begin{figure}[b]
    Some text that should go at the bottom.
 \end{figure}
 \lipsum{1}

\end{document}

答案1

我采纳了你的脚注想法,并绕过\footnote直接写入\footins。棘手的部分是关闭\footnoterule

\documentclass{article}
\usepackage{paracol}
\usepackage{lipsum}
\usepackage{afterpage}

\newsavebox{\Bfloat}
\let\OldFootnoterule=\footnoterule
\newlength{\OldFootnotesep}
\setlength{\OldFootnotesep}{\footnotesep}

\makeatletter
\newenvironment{Bfigure}{\begin{lrbox}{\Bfloat}%
  \minipage{\textwidth}%
  \def\@captype{figure}}%
{\endminipage%
  \end{lrbox}%
  \insert\footins{\noindent\usebox\Bfloat}%
  \global\let\footnoterule\relax% will need global reset
  \global\footnotesep=\textfloatsep}
\makeatother
  
\footnotelayout{m}

\begin{document}

\columnratio{0.55}
\begin{paracol}{2}

    \sloppy
\begin{Bfigure}
  \caption{A bottom float. \lipsum[1]}
\end{Bfigure}  
  \lipsum[1]
\switchcolumn\sloppy
  {\footnotesize \lipsum[1]}
\end{paracol}
\afterpage{\global\let\footnoterule\OldFootnoterule
  \global\footnotesep=\OldFootnotesep}%

\lipsum[1]

Test\footnote{a normal footnote}

\lipsum[2]

\end{document}

答案2

我尝试使用不带标记的脚注而不是图形浮动来获得我想要的布局。请参阅这篇文章,它告诉我如何摆脱标记:无标记的脚注。也许这不是一个很优雅的解决方案,但有人看到其他替代方案吗?

\documentclass{article}
\usepackage{paracol}
\usepackage{lipsum}

\newcommand\blfootnote[1]{%
  \begingroup
  \renewcommand\thefootnote{}\footnote{#1}%
  \addtocounter{footnote}{-1}%
  \endgroup
}
\renewcommand*\footnoterule{}
%\usepackage[hang,flushmargin]{footmisc}
\footnotelayout{m}
\begin{document}


\columnratio{0.55}
\begin{paracol}{2}
    \sloppy
 \blfootnote{ {\scriptsize \hspace{-16pt} A bottom float. \lipsum{1}}}\lipsum[1]
\switchcolumn\sloppy
  {\footnotesize \lipsum[1]}
\end{paracol}
\blfootnote{ {\scriptsize \hspace{-16pt} This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. This is a second bottom float. }}

\end{document}

相关内容