我想将章​​节名称(即简介)更改为大写,并希望减少章节 1 和章节名称之间的间距

我想将章​​节名称(即简介)更改为大写,并希望减少章节 1 和章节名称之间的间距
\documentclass[12pt]{report}

\usepackage{times}
\usepackage[a4paper,
            left=1.25in,right=1in,vmargin=0.75in]{geometry}
\renewcommand{\baselinestretch}{1.5}
\renewcommand{\chaptername}{CHAPTER}
\begin{document}

\chapter{Introduction}
\section{Basics of CMOS Comparators}
    Comparators are most probably second most widely used electronic components
after operational amplifiers in this world. Comparators are known as 1-bit analog-todigital
converter and for that reason they are mostly used in large abundance
in A/D
converter.
In
the
analog-to-digital
conversion
process,
it
is
necessary
to first
sample
the
input.
This
sampled
signal
is
then
applied
to
a
combination
of comparators to determine
the digital equivalent of the analog signal. The conversion speed of comparator is
limited by the decision making response time of the comparator. Apart from that,
comparators are also can be found in many other applications like zero-crossing
detectors, peak detectors, switching power regulators, BLDC operating motors, data
transmission, and others. The basic functionality of a CMOS comparator is used to
find out whether a signal is greater or smaller than zero or to compare an input signal
with a reference signal and outputs a binary signal based on comparison.  The
schematic symbol and basic operation of a voltage comparator are shown in fig1.1,
this comparator can be thought of as a decision making circuit.
\subsection{<any sub section here>}

\subsection{Literature Survey}

\subsubsection{<Sub-subsection title>}
some text\cite{citation-1-name-here}, some more text

\subsubsection{<Sub-subsection title>}
even more text\footnote{<footnote here>}, and even more.

\section{Motivation}
\end{document}

答案1

警告:这将使所有章节名称保留为大写字符。

Chapter Number 1和之间的间距Chapter Title由 控制\@makechapterhead,有一个\vskip 20\p@,即20pt,是硬编码的。

这可以通过补丁来改变,插入一些其他长度,可以轻松改变。

警告 2:times是已弃用的软件包。请使用mathptmx(但Times在我看来,这也是一种糟糕的字体)

\documentclass[12pt]{report}

\usepackage{times}
\usepackage[a4paper,
            left=1.25in,right=1in,vmargin=0.75in]{geometry}
\renewcommand{\baselinestretch}{1.5}
\renewcommand{\chaptername}{CHAPTER}

\usepackage{xpatch}
\newlength\somethingdifferent
\somethingdifferent=10pt
\makeatletter
\xpatchcmd{\@makechapterhead}{\vskip 20\p@}{%
  \vskip \somethingdifferent}{}{}
\xpatchcmd{\@makechapterhead}{\Huge \bfseries #1\par\nobreak}{%
  \Huge \bfseries \MakeUppercase{#1}\par\nobreak
}{}{}

\makeatother
\begin{document}

\chapter{Introduction}
\section{Basics of CMOS Comparators}
    Comparators are most probably second most widely used electronic components
after operational amplifiers in this world. Comparators are known as 1-bit analog-todigital
converter and for that reason they are mostly used in large abundance
in A/D
converter.
In
the
analog-to-digital
conversion
process,
it
is
necessary
to first
sample
the
input.
This
sampled
signal
is
then
applied
to
a
combination
of comparators to determine
the digital equivalent of the analog signal. The conversion speed of comparator is
limited by the decision making response time of the comparator. Apart from that,
comparators are also can be found in many other applications like zero-crossing
detectors, peak detectors, switching power regulators, BLDC operating motors, data
transmission, and others. The basic functionality of a CMOS comparator is used to
find out whether a signal is greater or smaller than zero or to compare an input signal
with a reference signal and outputs a binary signal based on comparison.  The
schematic symbol and basic operation of a voltage comparator are shown in fig1.1,
this comparator can be thought of as a decision making circuit.
\subsection{<any sub section here>}

\subsection{Literature Survey}

\subsubsection{<Sub-subsection title>}
some text\cite{citation-1-name-here}, some more text

\subsubsection{<Sub-subsection title>}
even more text\footnote{<footnote here>}, and even more.

\section{Motivation}
\end{document}

在此处输入图片描述

相关内容