无法删除空白页

无法删除空白页

我正在用 overleaf 写论文,但致谢和词汇表之间有一张空白页。我试过使用 oneside 和 openany,但问题仍然存在。下面是 main.tex 文件中包含相关代码的部分


% book - Default class for a normal book
\documentclass[a4paper,12pt,oneside,table]{book}

\usepackage{packages}
% Almost all the settings are defined in packages.sty
% Put a grey textual watermark on document pages (PDF mode)
%\usepackage{draftwatermark}
% If you want to change the default DRAFT text
%\SetWatermarkText{DRAFT}
% If you want to change the default grey color of the text
%\SetWatermarkColor{red}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%   DOCUMENT: an ordered list of files    %
%             that you can include or not %
%             in your document            %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

% Title Page %
\include{frontmatter/titlepage}

%% FRONTMATTER %%
\frontmatter

% ABSTRACT %
\include{frontmatter/abstract}

% ACKNOWLEDGEMENTS %
\include{frontmatter/acknowledgments}

% GLOSSARY %
\include{frontmatter/glossary}

% CONTENTS
\include{frontmatter/contents}

%% MAINMATTER %%
% The pages inside of mainmatter are in Arabic numerals and the chapters will have numeration
\mainmatter

%\part{If you want parts}
\include{1_Introduction/intro}
\include{2_Background/background}
\include{3_LiteratureReview/litreview}
%\include{chapter4/ch4}
% \include{chapter5/ch5}
% \include{chapter6/ch6}

%% APPENDICES %%
\appendix
\include{appendix/appendix1}
%\include{appendix2/appendix2}

%% BACKMATTER %%
% The pages inside of backmatter are in Arabic numerals and the chapters will not have numeration
\backmatter

% BIBLIOGRAPHY WITH BIBTEX %
\include{backmatter/bibliography}
")

% INDEX %
\include{backmatter/index }
\end{document

编辑:以下是我的致谢和词汇表部分:

% ========================= Acknowledgments ==============================
\providecommand\phantomsection{} \phantomsection
\thispagestyle{empty}
\renewcommand{\baselinestretch}{1}\small\normalsize
\begin{center}
\textbf{ACKNOWLEDGMENTS}\\[3\baselineskip]
\end{center}
\renewcommand{\baselinestretch}{1.66} \small\normalsize%
I acknowledge the people who helped me.
\newglossarystyle{modsuper}{%
\setglossarystyle{super}%
\renewenvironment{theglossary}%
    {\tablehead{}\tabletail{}%
     \begin{supertabular}{@{}lp{\glsdescwidth}}}%<----no margin
    {\end{supertabular}}%
\renewcommand{\glsgroupskip}{}%
\renewcommand*{\glossaryentryfield}[5]{%
\glsentryitem{##1}\glstarget{##1}{##2} & ##3\glspostdescription\space ##5\\[2pt]}%
}

\glsaddall
\printglossary[type=main,style=modsuper,nonumberlist]
\thispagestyle{empty}

答案1

我在这里找到了答案:删除词汇表前的分页符这给了我下面这行代码:

\clearpage\begingroup\let\newpage\relax\printglossary[title=Glossary]\endgroup

当我把它放在我的词汇表文件顶部时,问题就解决了

相关内容