我想让每个图形都有自己的subcaption
,所以我必须把这些图形放在一个figure
环境中。但是,纸张不够长(高)来输入所有这些图形,并且 或\pagebreak
在\newpage
图形环境中不可用。我该如何解决这个问题。
\centering
还有一个问题:为什么我在图形环境中使用这些图片时没有居中。
以下是代码:
\documentclass{article}
\usepackage{caption,subcaption}
\usepackage{bicaption}
\usepackage{graphicx}
\DeclareCaptionOption{english}[]{
\renewcommand\figurename{Fig}
\renewcommand\tablename{Tab}}
\captionsetup[bi-second]{english}
\begin{document}
\twocolumn
\begin{figure}
\centering
\begin{subfigure}{\linewidth}
\includegraphics[width=66mm]{example-image-a}
\caption{example-image-a}
\label{fig:fig8a}
\end{subfigure}
\begin{subfigure}{\linewidth}
\includegraphics[width=66mm]{example-image-a}
\caption{Example 1}\label{fig:example-image-b}
\end{subfigure}
\begin{subfigure}{\linewidth}
\includegraphics[width=66mm]{example-image-a}
\caption{Example 2}\label{fig:example-image-c}
\end{subfigure}
\begin{subfigure}{\linewidth}
\includegraphics[width=66mm]{example-image-a}
\caption{Example 3}\label{fig:example-image-d}
\end{subfigure}
\begin{subfigure}{\linewidth}
\includegraphics[width=66mm]{example-image-a}
\caption{Example 4}\label{fig:example-image-e}
\end{subfigure}
\begin{subfigure}{\linewidth}
\includegraphics[width=66mm]{example-image-a}
\caption{Example 5}\label{fig:example-image-a}
\end{subfigure}
\bicaption{谢谢}{Thank you very much!}
\end{figure}
\end{document}
输出为:
非常感谢!
答案1
您可以\ContinuedFloat
从caption
包中使用。我做了一些小改动,例如使用和\columnwidth
添加等。0.9\linewidth
\includegraphics
\centering
\documentclass{article}
\usepackage{caption,subcaption}
\usepackage{bicaption}
\usepackage{graphicx}
\DeclareCaptionOption{english}[]{
\renewcommand\figurename{Fig}
\renewcommand\tablename{Tab}}
\captionsetup[bi-second]{english}
\DeclareCaptionLabelFormat{continued}{#1~#2 (Cont.)}
\captionsetup[ContinuedFloat]{labelformat=continued}
\begin{document}
\twocolumn
\begin{figure}[htb]
\centering
\begin{subfigure}{\columnwidth}
\centering
\includegraphics[width=0.9\linewidth]{example-image-a}
\caption{example-image-a}
\label{fig:fig8a}
\end{subfigure}
\begin{subfigure}{\columnwidth}
\centering
\includegraphics[width=0.9\linewidth]{example-image-a}
\caption{Example 1}\label{fig:example-image-b}
\end{subfigure}
\begin{subfigure}{\columnwidth}
\centering
\includegraphics[width=0.9\linewidth]{example-image-a}
\caption{Example 2}\label{fig:example-image-c}
\end{subfigure}
\begin{subfigure}{\columnwidth}
\centering
\includegraphics[width=0.9\linewidth]{example-image-a}
\caption{Example 3}\label{fig:example-image-d}
\end{subfigure}
\bicaption{谢谢}{Thank you very much!}
\end{figure}
\begin{figure}[htb]
\ContinuedFloat
\begin{subfigure}{\columnwidth}
\centering
\includegraphics[width=0.9\linewidth]{example-image-a}
\caption{Example 4}\label{fig:example-image-e}
\end{subfigure}
\begin{subfigure}{\columnwidth}
\centering
\includegraphics[width=0.9\linewidth]{example-image-a}
\caption{Example 5}\label{fig:example-image-a}
\end{subfigure}
\bicaption{谢谢}{Thank you very much!}
\end{figure}
\end{document}