在 sidewaysfigure 环境中使用 contcapt

在 sidewaysfigure 环境中使用 contcapt

在跨两页的两个侧边图环境中,第二页中的标题编号会增加。奇怪的是,第二页上的子图字母是正确的,例如(它将以 b) 而不是 a) 开头)。由于第二页仍然是第一幅图的一部分,因此我不想增加标题计数器。

其他人是否也遇到过这样的错误?
有人知道为什么会出现这样的错误吗?
有人知道如何修复此错误吗?
该解决方案可以在 Lyx 中起作用吗?

%% LyX 1.6.7 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{graphicx}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{float}
%figures
\usepackage{captcont}
\usepackage{subfigure}
%\usepackage{subfig}
\usepackage{rotating}

\makeatother

\usepackage{babel}

\begin{document}
\begin{sidewaysfigure}

\caption{Gene Ontology analysis of marked overexpressed genes in
cancer and matched-control cell lines}

\subfigure[Gene Ontology analysis of control cancer marked overexpressed
genes]{

\label{fig:go_cntrlUniqMrkdCncrOvrExp}

\includegraphics[width=1\textheight]{\lyxdot \lyxdot /\lyxdot \lyxdot /fig/go_gprof/go_cntrlUniqMrkdCncrOvrExp}

}

\end{sidewaysfigure}

\begin{sidewaysfigure}

\captcont*{Gene Ontology analysis of marked overexpressed genes
in cancer and matched-control cell lines}

\subfigure[Gene Ontology analysis of cancer marked control overexpressed
genes]{

\label{fig:cncrUniqMrkdCntrlOvrExp}

\includegraphics[width=1\textheight]{\lyxdot \lyxdot /\lyxdot \lyxdot /fig/go_gprof/go_cncrUniqMrkdCntrlOvrExp}

}

\subfigure[Gene Ontology analysis of cancer marked cancer overexpressed
genes]{

\label{fig:go_cncrUniqMrkdCncrOvrExp}

\includegraphics[width=1\textheight]{\lyxdot \lyxdot /\lyxdot \lyxdot /fig/go_gprof/go_cncrUniqMrkdCncrOvrExp}

}

\subfigure[Gene Ontology analysis of control marked control overexpressed
genes]{

\label{fig:go_cntrlUniqMrkdCntrlOvrExp}

\includegraphics[width=1\textheight]{\lyxdot \lyxdot /\lyxdot \lyxdot /fig/go_gprof/go_cntrlUniqMrkdCntrlOvrExp}

}

\end{sidewaysfigure}
\end{document}

答案1

subfig(ure) 包需要知道主标题放在哪里。否则它将假定主图标题将放在以下图形。示例代码中并非如此,因此您必须使用子图包选项“figtopcap”,即\usepackage[figtopcap]{subfigure},才能获得正确的编号。

但是 subfigure-captcont 包串联已经过时了,最好使用 subfigure 包的后继者,即 subfig 包:


\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{graphicx}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{float}
%figures
\usepackage[position=b]{subfig}
\usepackage{rotating}

\makeatother

\usepackage{babel}

\begin{document}
\begin{sidewaysfigure}

\caption{Gene Ontology analysis of marked overexpressed genes in
cancer and matched-control cell lines}

\subfloat[Gene Ontology analysis of control cancer marked overexpressed
genes]{

\label{fig:go_cntrlUniqMrkdCncrOvrExp}

\includegraphics[width=1\textheight]{\lyxdot \lyxdot /\lyxdot \lyxdot /fig/go_gprof/go_cntrlUniqMrkdCncrOvrExp}

}

\end{sidewaysfigure}

\begin{sidewaysfigure}
\ContinuedFloat

\caption{Gene Ontology analysis of marked overexpressed genes
in cancer and matched-control cell lines}

\subfloat[Gene Ontology analysis of cancer marked control overexpressed
genes]{

\label{fig:cncrUniqMrkdCntrlOvrExp}

\includegraphics[width=1\textheight]{\lyxdot \lyxdot /\lyxdot \lyxdot /fig/go_gprof/go_cncrUniqMrkdCntrlOvrExp}

}

\subfloat[Gene Ontology analysis of cancer marked cancer overexpressed
genes]{

\label{fig:go_cncrUniqMrkdCncrOvrExp}

\includegraphics[width=1\textheight]{\lyxdot \lyxdot /\lyxdot \lyxdot /fig/go_gprof/go_cncrUniqMrkdCncrOvrExp}

}

\subfloat[Gene Ontology analysis of control marked control overexpressed
genes]{

\label{fig:go_cntrlUniqMrkdCntrlOvrExp}

\includegraphics[width=1\textheight]{\lyxdot \lyxdot /\lyxdot \lyxdot /fig/go_gprof/go_cntrlUniqMrkdCntrlOvrExp}

}

\end{sidewaysfigure}
\end{document}

相关内容