Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Design patterns 如何避免乳胶在一个地方出现分段现象?_Design Patterns_Latex_Styles_Sections_Heading - Fatal编程技术网

Design patterns 如何避免乳胶在一个地方出现分段现象?

Design patterns 如何避免乳胶在一个地方出现分段现象?,design-patterns,latex,styles,sections,heading,Design Patterns,Latex,Styles,Sections,Heading,我正在用以下模式在latexoverleaf上编写一份文档 **\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}** 所有的章节和小节都显示在第一页的开头,后面是所

我正在用以下模式在latexoverleaf上编写一份文档

**\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}**
所有的章节和小节都显示在第一页的开头,后面是所有的图,而不是遵循这种模式


可能的错误是什么?

有时没有文本,很难浮动数字或表格。我有其他的解决办法

使用此环境图序言中的宏

\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}

请打个招呼,当我在一行中使用5个figueres和两行数字时,我遇到了这段代码的问题。@ashice我想你的问题是通过在figurehere\begin{figurehere}{\textwidth}{\protect\begin{CCCCCCC}\includegraphics{fig1.eps}&\includegraphics{fig2.eps}中使用表格环境解决的&\includegraphics{fig3.eps}&\includegraphics{fig4.eps}&\includegraphics{fig5.eps}\\\ end{tabular}\end{figurehere}