我正在写一篇包含三栏的文章,我使用的代码
\usepackage{multicol}
\begin{multicols}{3}
\end{multicols}
现在我想插入一张占据两列大小的图片。我该如何实现?
答案1
multicol
不支持浮动,但您可以手动定位图像,在跨越的列中留出空间;
\documentclass{article}
\usepackage{capt-of}
\usepackage{multicol}
\def\a{\stepcounter{enumi}\Roman{enumi}: \roman{enumi} one two three (\theenumi) four five. }
\def\b{\a\a Green yellow black white. \a\a\a}
\def\c{\b\b\par Apple pear orange. \b\par}
\begin{document}
\begin{multicols}{3}
\c\b\b
\rlap{\begin{minipage}{\dimexpr2\columnwidth+\columnsep}
\centering
\begin{picture}(100,100)
\put(50,95){\line(1,-3){25}}
\put(50,95){\line(-1,-3){25}}
\put(25,20){\line(1,0){50}}
\put(45,20){\line(0,-1){15}}
\put(55,20){\line(0,-1){15}}
\thicklines
\put(20,5){\line(1,0){60}}
\end{picture}
\captionof{figure}{A Christmas Tree}
\end{minipage}}
\c
\columnbreak
\vspace*{11\baselineskip}\c\c
\end{multicols}
\end{document}