在一篇双栏文章中,我想创建一个横跨两栏并延伸到多页的图形。第一个功能由 figure* 环境涵盖。第二个功能由 longfigure 包涵盖。但我需要同时执行这两项操作。你会怎么做?
答案1
viewport
您可以使用graphicx
将大图像分割成所需数量的子图像的包:
\includegraphics*[viewport=<x1> <y1> <x2> <y2>]{bigImage.png}
和:
一位 MWE 表示:
\documentclass[a4paper,twocolumn]{article}
\usepackage{graphicx}
\usepackage{lipsum}
\begin{document}
\begin{figure*}[h]
\centering
\fbox{
\includegraphics[height=0.99\textheight]{example-image-a3.pdf}
}
\caption{The whole image in one page}
\label{The whole image in one page}
\end{figure*}
%----------------------------------------------------------
\begin{figure*}[h]
\centering
\fbox{
\includegraphics*[viewport=0 575 400 1150]{example-image-a3.pdf}
}
\end{figure*}
%
\begin{figure*}[h]
\centering
\fbox{
\includegraphics*[viewport=400 575 800 1150]{example-image-a3.pdf}
}
\end{figure*}
%
\begin{figure*}[h]
\centering
\fbox{
\includegraphics*[viewport=0 0 400 575]{example-image-a3.pdf}
}
\end{figure*}
%
\begin{figure*}[h]
\centering
\fbox{
\includegraphics*[viewport=400 0 800 575]{example-image-a3.pdf}
}
\caption{The whole image in 4 pages}
\label{The whole image in 4 pages}
\end{figure*}
输出结果如下: