如何在没有新页的情况下输入章节?

如何在没有新页的情况下输入章节?

我遇到了以下问题。在我的主 .tex 中,我使用以下代码:

%-----<<< MAIN MATTER >>>-----
\mainmatter                                                     %start arabic pagination from 1
\autohdr                                                                                %automatic headers for main matter
\input{02_Mainmatter/01_Intro.tex}              %input field
\input{02_Mainmatter/02.tex}
\input{02_Mainmatter/03.tex}
\input{02_Mainmatter/04.tex}
\input{02_Mainmatter/05.tex}
\input{02_Mainmatter/99_Concl.tex}
\clearpage
%-----<<< -------- >>>-----

问题是每一章都是从新的一页开始的。看:

在此处输入图片描述

我怎样才能让每一章都从最后一章下面开始?没有空格?非常感谢。

编辑:我试图改变\chapter\section它完全摧毁了我的内容: 在此处输入图片描述

EDIT2:这是整个代码:

%% --------------------------------------------------------------------
%% thesis.tex -- MAIN FILE (the one that you compile with LaTeX)
%% --------------------------------------------------------------------
%% version 1.8.09.02.16 (beta)

%-----<<<<<<<<<<<< START >>>>>>>>>>>>-----
\documentclass [a4paper,12pt]{report}                   
\usepackage[cp1250]{inputenc}
%\usepackage[latin2]{inputenc}  
\usepackage{multirow}  
\usepackage{rotating}
\usepackage{graphics}
%\usepackage[a-2u]{pdfx}
\usepackage{lmodern}
\usepackage{comment}
\usepackage[T1]{fontenc}
%\usepackage{texcomp}   
\usepackage[yyyymmdd]{datetime}     


                                            %for Czechoslovak characters

%-----<<<<<<<<<<<< STYLES >>>>>>>>>>>>-----                                                             
\usepackage{Styles/Head}
\usepackage{Styles/Mystyle} 
\usepackage{hyperref}
\usepackage{threeparttable}
\usepackage{textcomp}
\usepackage{comment}


%-----<<< --------------------------------- >>>-----



%-----<<<<<<<<<<<< DOCUMENT >>>>>>>>>>>>-----
\begin{document}
\frontmatter                                                    %lowercase roman pagination for front matter
\clubpenalty 9999                                                           %not so many orphants
\widowpenalty 9999                                                          %not so many widows

%-----<<< HEAD >>>-----
\pagestyle{empty}                                       %no visible pagination here 
           


%-----<<< TABLE OF CONTENTS >>>-----
\pagestyle{fancy}                                                           %headers style
\fancyhead[LO]{\sffamily Contents}                          %headers in sans serif and not in uppercase
\phantomsection                                                                 %bookmark anchor
\pdfbookmark[0]{Contents}{toc}                          %add bookmark
\tableofcontents
\label{toc}
%\clearpage
%-----<<< ----------------- >>>-----



%-----<<< MAIN MATTER >>>-----
\mainmatter                                                     %start arabic pagination from 1
%\autohdr   

\input{02_Mainmatter/01_Intro.tex}              %input field
\input{02_Mainmatter/02.tex}
\input{02_Mainmatter/03.tex}
\input{02_Mainmatter/04.tex}
\input{02_Mainmatter/05.tex}
\input{02_Mainmatter/99_Concl.tex}
\clearpage
%-----<<< -------- >>>-----


%-----<<< REFERENCES >>>-----
\fancyhead[LO]{\sffamily Bibliography}                  %headers in sans serif and not in uppercase
\bibliographystyle{Styles/Stylebib}                         %style of literature, you can use e.g. newapa   instead of Styles/Stylebib
\bibliography{Styles/Bibliography}                          %bibliography database
\addcontentsline{toc}{chapter}{Bibliography}        %Add bibliography to the table of contents
\clearpage
%-----<<< ---------- >>>-----

%-----<<< LIST OF TABLES >>>-----
\fancyhead[LO]{\sffamily List of Tables}                %headers in sans serif and not in uppercase
\phantomsection                                                                 %bookmark anchor
\addcontentsline{toc}{chapter}{List of Tables}  %add LofT to the Table of Contents
\listoftables
\clearpage
%-----<<< --------------- >>>-----

%-----<<< LIST OF FIGURES >>>-----  
\fancyhead[LO]{\sffamily List of Figures}
\phantomsection                                                                 %bookmark anchor
\addcontentsline{toc}{chapter}{List of Figures} %add LofF to the Table of Contents
\listoffigures
\clearpage
%-----<<< ---------------- >>>-----


%-----<<< APPENDIXES >>>-----
\backmatter                                                                         %uppercase roman pagination for back matter; appendices start
\autohdr                                                                                %automatic headers                  
\input{03_Backmatter/01_App.tex}                    %input file                     %input file

\clearpage

\end{document}
%-----<<<<<<<<< END OF DOCUMENT >>>>>>>>>-----

答案1

memoir( 的超集bookreport以及当使用article选项时,article类)。

\documentclass[article,...]{memoir}
...
\begin{document}
\chapter{One}  % typesets as a section
  \section{Alpha} % typesets as a subsection
... and so on
\end{document}

相关内容