以下最小範例在較舊的 miktex 系統(使用 lualatex)上產生正確的輸出,即。不適合第 1 頁最後一幀的圖形流入第 2 頁的第一個框架。我想知道是否有人對此有快速解決方案。
\documentclass[11pt,a4paper]{article}
\usepackage[margin=1cm,landscape]{geometry}
\usepackage{fontspec}
\usepackage[draft]{flowfram}
\ffvadjustfalse
\setlength{\columnsep}{1cm}
\makedfheaderfooter
\Ncolumn{3}
\usepackage{lipsum}
\setdynamiccontents*{header}{Test}
\begin{document}
\lipsum[1-8]
XXX
\begin{figure}
\fbox{\begin{minipage}{0.3\textwidth}\lipsum[1]\end{minipage}}
\end{figure}
YYY
\lipsum[1-3]
\end{document}
我真的很希望能夠使用新系統,因為在 lualatex 中使用 autofakeslant 的錯誤已經解決。
舊系統有:
This is LuaTeX, Version beta-0.76.0-2013062821 (rev 4627) (format=lualatex 2014.1.3) 11 FEB 2016 13:00
Package: fontspec 2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTeX
Package: fontspec-patches 2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaT
Package: fontspec-luatex 2014/06/21 v2.4a Font selection for XeLaTeX and LuaLaTe
Package: flowfram 2014/09/30 v1.17 (NLCT)
但新系統有:
This is LuaTeX, Version beta-0.80.0 (MiKTeX 2.9 64-bit) (rev 5238) (format=lualatex 2015.12.23) 11 FEB 2016 11:21
Package: fontspec 2015/09/24 v2.4e Font selection for XeLaTeX and LuaLaTeX
Package: fontspec-patches 2015/09/24 v2.4e Font selection for XeLaTeX and LuaLaT
Package: fontspec-luatex 2015/09/24 v2.4e Font selection for XeLaTeX and LuaLaTe
Package: flowfram 2014/09/30 v1.17 (NLCT)
新的:
老的:
答案1
我想你只需要這個:
% you probably don't need this \RequirePackage{luatex85}
\documentclass[11pt,a4paper]{article}
\usepackage[margin=1cm,landscape]{geometry}
\usepackage{fontspec}
\usepackage[draft]{flowfram}
% 1sp makes a lot of difference
\makeatletter
\g@addto@macro\@dblfloatplacement{\def\f@depth{1sp}}
\makeatother
\ffvadjustfalse
\setlength{\columnsep}{1cm}
\makedfheaderfooter
\Ncolumn{3}
\usepackage{lipsum}
\setdynamiccontents*{header}{Test}
\begin{document}
\show\colon
\lipsum[1-8]
XXX
\begin{figure}
\fbox{\begin{minipage}{0.3\textwidth}\lipsum[1]\end{minipage}}
\end{figure}
YYY
\lipsum[1-3]
\end{document}