节与段落起点之间的间距

节与段落起点之间的间距

所有部分都是正确的,但是最后一部分给我提供了附图中看到的额外空间。问题是,我想删除部分标题和段落开头之间的空格,我该怎么做?

在此处输入图片描述

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[b5paper,11pt, titlepage,headings=optiontohead]{book}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%




\usepackage[pdftex]{graphicx,color}%
%\usepackage[T1,plmath]{polski}
\usepackage[cp1250]{inputenc}
\usepackage{titlesec}
\usepackage{indentfirst}
\usepackage[numbers,sort&compress]{natbib} % sort and compress citations

\usepackage{fancyhdr}
\usepackage{amssymb}
\usepackage{booktabs}
\rhead{Chpter One}
\usepackage{amssymb}
%\usepackage{float}
\usepackage[hidelinks]{hyperref}

\usepackage{lineno,hyperref}
%\usepackage[none]{hyphenat} % brak podziaÂ?u wyraz??w
\usepackage{geometry}
\newgeometry{tmargin=3.6cm, bmargin=3.6cm, lmargin=3.2cm, rmargin=3.2cm}
\usepackage{multirow}
\usepackage{amsmath}
\usepackage[nottoc]{tocbibind}


%\usepackage[backend=biber,style=numeric,sorting=none]{biblatex}

\graphicspath{ {Graphics/Figures/} }

\renewcommand{\figurename}{Fig.}
\renewcommand{\tablename}{Tab.}

%%%%%% % fix long section titles in toc 
\usepackage{etoolbox}
\makeatletter
% the following three lines only if the class is report or book
\patchcmd{\@chapter}{#1}{#2}{}{} % #1 is the optional argument
\patchcmd{\@chapter}{#1}{#2}{}{} % #2 is the mandatory argument
\patchcmd{\@chapter}{#1}{#2}{}{}
%%%
\patchcmd{\@sect}{\fi#7}{\fi#8}{}{} % #7 is the optional argument
\patchcmd{\@sect}{\fi#7}{\fi#8}{}{} % #8 is the mandatory argument
\makeatother 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}




    \title{\textbf{Chapter One: Asors}}
    \author{TOHFARD}

    
    
    
    \maketitle
%   \newpage
    \tableofcontents
    
%   \newpage
    \listoffigures
%   \newpage
    
    %[M for M: Rew]

    %\textbf{Abdjeh}
    %\tableofcontents
    \chapter[AM forew]{ture Review}

    \newpage
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    \section[AM tions]{Additive acturing}
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    zdfg

\newpage
    \section[Conclusion]{Summary}
    Addressed in this chapter is the definition and motivations of employing a process for fabrication different materials, dfgdt methods of 3D printing are provided with the focus on the FDM method. Also, composite material is dfhsfgsnually results in removing the erroneous output values.
    
    
    
    \pagebreak
    
    \section[Acknowledgements]{Acknowledgements}
    sfand for their continuous support of this study. The reseasdfs under, M-ERA.NET 2 Csgdfgs2019".

    
    
    
    
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

在此处输入图片描述

答案1

\newpage在摘要部分后添加另一个问题后,该问题似乎已解决。

在此处输入图片描述

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[b5paper,11pt, titlepage,headings=optiontohead]{book}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[pdftex]{graphicx,color}%
%\usepackage[T1,plmath]{polski}
\usepackage[cp1250]{inputenc}
\usepackage{titlesec}
\usepackage{indentfirst}
\usepackage[numbers,sort&compress]{natbib} % sort and compress citations

\usepackage{fancyhdr}
\usepackage{amssymb}
\usepackage{booktabs}
\rhead{Chpter One}
\usepackage{amssymb}
%\usepackage{float}
\usepackage{lineno}
%\usepackage[none]{hyphenat} % brak podziaÂ?u wyraz??w
\usepackage{geometry}
\newgeometry{tmargin=3.6cm, bmargin=3.6cm, lmargin=3.2cm, rmargin=3.2cm}
\usepackage{multirow}
\usepackage{amsmath}
\usepackage[nottoc]{tocbibind}
\usepackage[hidelinks]{hyperref}

%\usepackage[backend=biber,style=numeric,sorting=none]{biblatex}

\graphicspath{ {Graphics/Figures/} }

\renewcommand{\figurename}{Fig.}
\renewcommand{\tablename}{Tab.}

%%%%%% % fix long section titles in toc 
\usepackage{etoolbox}
\makeatletter
% the following three lines only if the class is report or book
\patchcmd{\@chapter}{#1}{#2}{}{} % #1 is the optional argument
\patchcmd{\@chapter}{#1}{#2}{}{} % #2 is the mandatory argument
\patchcmd{\@chapter}{#1}{#2}{}{}
%%%
\patchcmd{\@sect}{\fi#7}{\fi#8}{}{} % #7 is the optional argument
\patchcmd{\@sect}{\fi#7}{\fi#8}{}{} % #8 is the mandatory argument
\makeatother 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

    \title{\textbf{Chapter One: Asors}}
    \author{TOHFARD}

    \maketitle
%   \newpage
    \tableofcontents
    
%   \newpage
    \listoffigures
%   \newpage
    
    %[M for M: Rew]

    %\textbf{Abdjeh}
    %\tableofcontents
    \chapter[AM forew]{ture Review}

    \newpage
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    \section[AM tions]{Additive acturing}
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    zdfg

\newpage
    \section[Conclusion]{Summary}
    Addressed in this chapter is the definition and motivations of employing a process for fabrication different materials, dfgdt methods of 3D printing are provided with the focus on the FDM method. Also, composite material is dfhsfgsnually results in removing the erroneous output values.
    \newpage %<--------------- ADDED
    
    \pagebreak
    
    \section[Acknowledgements]{Acknowledgements}
    sfand for their continuous support of this study. The reseasdfs under, M-ERA.NET 2 Csgdfgs2019".
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

另外,您加载了hyperref两次,一次是单独加载hidelinks,另一次是加载lineno包,加载它(和任何包)一次。希望这能有所帮助。

答案2

我使用基本的 LaTeX 编码减少了\sectionMWE 中最后一个空格后面的空间。查找\renewcommand{\section}{\@startsection

% secspaceprob.tex  SE 641420
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[b5paper,11pt, titlepage,headings=optiontohead]{book}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\usepackage[pdftex]{graphicx,color}%
%\usepackage[T1,plmath]{polski}
\usepackage[cp1250]{inputenc}
\usepackage{titlesec}
\usepackage{indentfirst}
\usepackage[numbers,sort&compress]{natbib} % sort and compress citations

\usepackage{fancyhdr}
\usepackage{amssymb}
\usepackage{booktabs}
\rhead{Chpter One}
\usepackage{amssymb}
%\usepackage{float}
\usepackage[hidelinks]{hyperref}

\usepackage{lineno,hyperref}
%\usepackage[none]{hyphenat} % brak podziaÂ?u wyraz??w
\usepackage{geometry}
\newgeometry{tmargin=3.6cm, bmargin=3.6cm, lmargin=3.2cm, rmargin=3.2cm}
\usepackage{multirow}
\usepackage{amsmath}
\usepackage%[nottoc]
    {tocbibind}

%\usepackage[backend=biber,style=numeric,sorting=none]{biblatex}

\graphicspath{ {Graphics/Figures/} }

\renewcommand{\figurename}{Fig.}
\renewcommand{\tablename}{Tab.}

%%%%%% % fix long section titles in toc 
\usepackage{etoolbox}
\makeatletter
% the following three lines only if the class is report or book
\patchcmd{\@chapter}{#1}{#2}{}{} % #1 is the optional argument
\patchcmd{\@chapter}{#1}{#2}{}{} % #2 is the mandatory argument
\patchcmd{\@chapter}{#1}{#2}{}{}
%%%
\patchcmd{\@sect}{\fi#7}{\fi#8}{}{} % #7 is the optional argument
\patchcmd{\@sect}{\fi#7}{\fi#8}{}{} % #8 is the mandatory argument
\makeatother 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

    \title{\textbf{Chapter One: Asors}}
    \author{TOHFARD}
    
    \maketitle
%   \newpage
    \tableofcontents
    
%   \newpage
    \listoffigures
%   \newpage
    
    %[M for M: Rew]

    %\textbf{Abdjeh}
    %\tableofcontents
    \chapter[AM forew]{ture Review}

    \newpage
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
    \section[AM tions]{Additive acturing}
    
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    zdfg

\newpage
    \section[Conclusion]{Summary}
    Addressed in this chapter is the definition and motivations of employing a process for fabrication different materials, dfgdt methods of 3D printing are provided with the focus on the FDM method. Also, composite material is dfhsfgsnually results in removing the erroneous output values.
    
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% change section formatting
    \makeatletter
    \renewcommand{\section}{\@startsection
      {section}{1}{0pt}% % name, level, indent (as normal)
      {3.5ex plus 1ex minus .2ex}% skip before title (as normal)
      {0.3ex plus .2ex}% skip after title (usually 2.3 ex plus .2ex)  
      {\normalfont\Large\bfseries}} % the font as normal
    \makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%      
    
    \pagebreak
    
    \section[Acknowledgements]{Acknowledgements}
    sfand for their continuous support of this study. The reseasdfs under, M-ERA.NET 2 Csgdfgs2019".

       
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

如果你使用了memoir类(的超集book),那将会很简单

\setaftersecskip{0.5ex 加 0.2ex}

相关内容