答案1
这里有一种方法:
\documentclass[a4paper,10pt]{report}
\usepackage[utf8]{inputenc}
% Title Page
\title{}
\author{}
\def\reducespace{\vspace*{-15pt}}
\let\oldchapter\chapter
\makeatletter
\def\chapter{%
\@ifstar{\@Starred}{\@nonStarred}%
}
\def\@Starred{%
\@ifnextchar[%
{\GenericWarning{}{Warning: A starred chapter can not have parameters. I am going to ignore them!}\@StarredWith}%
{\@StarredWithout}%
}
\def\@StarredWith[#1]#2{%
\oldchapter*{#2}\reducespace%
}
\def\@StarredWithout#1{
\oldchapter*{#1}\reducespace%
}
\def\@nonStarred{%
\@ifnextchar[%
{\@nonStarredWith}%
{\@nonStarredWithout}%
}
\def\@nonStarredWith[#1]#2{%
\oldchapter[#1]{#2}\reducespace%
}
\def\@nonStarredWithout#1{%
\oldchapter{#1}\reducespace%
}
\makeatother
\begin{document}
\maketitle
\chapter{Test Chapter 1}
text
\chapter{Test chapter 2}
\section{Section 1}
\end{document}
来源:我的一个旧答案:https://tex.stackexchange.com/a/380116/120578
输出: