我正在尝试弄清楚如何跳过图中某些子浮点数的编号。我注意到,如果我不向 传递任何参数subfloat
,则不会打印任何标签/编号,但图像仍会计入编号。例如,在下面的例子中,我只需要图 A 和 B 的标题,但由于它们的相对实例化,它们显示为 (b) 和 (e)。如何克服这个问题?谢谢,Jorge。
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure*}[!t]
\fbox{\noindent\begin{minipage}[b][18cm]{0.45\linewidth}
\subfloat{\includegraphics[height=8cm,width=1.0\linewidth]{example-image}}
\vfill
\subfloat[]{\includegraphics[height=8cm,width=1.0\linewidth]{example-image-a}}
\end{minipage}}%
\hfill
\fbox{\noindent\begin{minipage}[b][18cm]{0.45\linewidth}
\subfloat{\includegraphics[width=1.0\linewidth]{example-image}}
\vfill
\subfloat{\includegraphics[width=1.0\linewidth]{example-image}}
\vfill
\subfloat[]{\includegraphics[width=1.0\linewidth]{example-image-b}}
\end{minipage}}%
\end{figure*}
\end{document}
输出:
答案1
只需省略宏,仅对不应编号的图形\subfloat
使用宏或获取标题描述。\includegraphics
\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure*}[!t]
\fbox{\noindent\begin{minipage}[b][18cm]{0.45\linewidth}
\includegraphics[height=8cm,width=1.0\linewidth]{example-image}
\vfill
%\includegraphics[height=8cm,width=1.0\linewidth]{example-image-a}
\subfloat[]{\includegraphics[height=8cm,width=1.0\linewidth]{example-image-a}}
\end{minipage}}%
\hfill
\fbox{\noindent\begin{minipage}[b][18cm]{0.45\linewidth}
\includegraphics[width=1.0\linewidth]{example-image}
\vfill
\includegraphics[width=1.0\linewidth]{example-image}
\vfill
\subfloat[]{\includegraphics[width=1.0\linewidth]{example-image-b}}
\end{minipage}}%
\end{figure*}
\end{document}