LYX 中的多页图表

LYX 中的多页图表

我在 LYX 中有一个 float:figure,其中包含 6 个 subfloat:figure。如何在 LYX 中使用 \ContinuedFloat 命令让该图显示在两页上?enter image description here

% 预览源代码

%% LyX 2.1.4 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{float}
\usepackage{graphicx}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.


\usepackage{lmodern,mathpazo}
\usepackage[T1]{fontenc}
\usepackage[babel=true]{microtype}
\usepackage{subfig,float}

\@ifundefined{showcaptionsetup}{}{%
 \PassOptionsToPackage{caption=false}{subfig}}
\usepackage{subfig}
\makeatother

\usepackage{babel}
\begin{document}
\begin{figure}[H]
\noindent \begin{centering}
\subfloat[S=0kPa]{\noindent \centering{}\includegraphics[scale=0.88]{\string"../figures/Chapter5/PDF/Al-Sharrad 2013 Anisotropic\string".pdf}}
\par\end{centering}

\noindent \begin{centering}
\subfloat[S=110kPa]{\noindent \centering{}\includegraphics[scale=0.88]{\string"../figures/Chapter5/PDF/Al-Sharrad 2013 Anisotropic\string".pdf}}
\par\end{centering}

\noindent \centering{}\caption{Bender element test results for sample prepared by anisotropic static
compaction in a triaxial cell.\label{fig:-11}}
\end{figure}


\begin{figure}[H]
\noindent \begin{centering}
\ContinuedFloat
\par\end{centering}

\noindent \begin{centering}
\subfloat[S=300kPa\label{fig:-11-1-1}]{\noindent \centering{}\includegraphics[scale=0.88]{\string"../figures/Chapter5/PDF/Al-Sharrad 2013 Anisotropic\string".pdf}}
\par\end{centering}

\noindent \begin{centering}
\subfloat[S=600kPa]{\noindent \centering{}\includegraphics[scale=0.88]{\string"../figures/Chapter5/PDF/Al-Sharrad 2013 Anisotropic\string".pdf}}
\par\end{centering}

\noindent \centering{}\caption{Bender element test results for sample prepared by anisotropic static
compaction in a triaxial cell.\label{fig:-11-4}}
\end{figure}

\end{document}

答案1

你需要再做一次浮点数:数字,并将一些子浮点数移至此。在第二个图形浮点数中,在顶部插入一个 TeX 代码框 ( Ctrl+ ) 并在其中写入。L\ContinuedFloat

为此,您还需要加载该caption包,因此如果 LyX 或您自己尚未加载该包,请转到文档 --> 设置 --> LaTeX 前言并添加\usepackage{caption}

请注意,旧版本的caption软件包中有一个错误,导致图形编号错误。如果您遇到此问题,请更新您的 TeX 发行版。

LyX 和 PDF 中的屏幕截图:

enter image description here

相关内容