首页 > 解决方案 > 如何避免在乳胶的一个地方出现分段?

问题描述

我正在使用以下模式编写关于乳胶(背页)的文档。

**\Section{1}
\subsection{1.1}
\begin{fig}
\end{fig}
\section{2}
\subsection{2.1}
\begin{fig}
\end{fig}
\subsection{2.2}
\begin{fig}
\end{fig}
\section{3}
\subsection{3.1}
\begin{fig}
\end{fig}**

不是遵循这种模式,而是在第一页的开头显示所有部分和小节,然后是所有数字。

可能的错误是什么?

标签: design-patternslatexstylessectionsheading

解决方案


有时没有文字很难浮动数字或表格。我有替代解决方案。

figurehere在序言中使用此环境宏。

\newenvironment{figurehere}[1]
{\noindent\begin{minipage}{#1}\parindent\z@\def\@captype{figure}}
{\end{minipage}}

然后像这样对图形进行编码

\begin{figurehere}{\textwidth}
{\protect\centerline{\includegraphics{fig1.eps}}}
\caption{This is caption.}
\end{figurehere}

推荐阅读