我喜欢创建一个多列页面,并在文本/页面末尾放置一张跨越两列的图片。
这就是我想要实现的目标:
有人知道如何实现这一点吗?
梅威瑟:
\documentclass[a4paper, 11pt, landscape]{article}
\usepackage{xcolor}
\usepackage{blindtext}
\usepackage[demo]{graphicx}
\usepackage[margin=5mm]{geometry}
\usepackage{multicol}
\begin{document}
\fontsize{9}{11}\selectfont
\begin{multicols}{4}{
\blindtext[12]
%this is what I don't know how to achieve: \includegraphics[width=2\columnwidth]{nicepicture}
}
\end{multicols}
\end{document}
答案1
唉,看来 flowfram 在断线方面不如 multicol 那么好。
\documentclass[a4paper, 11pt, landscape]{article}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage[margin=5mm]{geometry}
\usepackage{flowfram}
\usepackage{mwe}
\newlength{\colwidth}
\newlength{\colsep}
\newlength{\twocol}
\setlength{\colsep}{5mm}
\setlength{\colwidth}{\dimexpr 0.25\textwidth -0.75\colsep}
\setlength{\twocol}{\dimexpr 2\colwidth+\colsep}
%Note: x,y offsets relative to lower left corner of text area.
\newflowframe[1,2]{\colwidth}{\textheight}{0pt}{0pt}
\newflowframe[1,2]{\colwidth}{\textheight}{\dimexpr \colwidth+\colsep}{0pt}
\newflowframe[1]{\colwidth}{\dimexpr \textheight -45mm}{\dimexpr 2\colwidth +2\colsep}{45mm}
\newflowframe[1]{\colwidth}{\dimexpr \textheight -45mm}{\dimexpr 3\colwidth +3\colsep}{45mm}
\newstaticframe[1]{\twocol}{40mm}{\dimexpr 2\colwidth +2\colsep}{0pt}[fig1]
\begin{document}
\begin{staticcontents*}{fig1}
\includegraphics[width=\twocol,height=40mm]{example-image}
\end{staticcontents*}
\fontsize{9}{11}\selectfont
\lipsum[1-16]
\end{document}