如何减少章节标题之间的间距?

如何减少章节标题之间的间距?

我想减少章节标题之间的间距。在以下示例中我应该做什么更改?

\documentclass[12pt]{report}
\usepackage[dvipdfm]{graphicx}
\usepackage{amsfonts}
\usepackage{amscd,amsmath,latexsym,makeidx,tocbibind}
\usepackage{amssymb,amsthm,amsfonts}
\usepackage{color}
\usepackage{setspace}
\usepackage{palatino,lettrine}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{definition}[theorem]{Definition}
\newenvironment{definition-new}{\begin{definition} \em}{\end{definition}}
\newtheorem{remark}[theorem]{Remark}
\newenvironment{remark-new}{\begin{remark} \em}{\end{remark}}
\newtheorem{example}[theorem]{Example}
\newenvironment{example-new}{\begin{example} \em}{\end{example}}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{notation}[theorem]{Notation}
\newenvironment{notation-new}{\begin{notatio} \em}{\end{notatio}}
\newtheorem{agreement}[theorem]{Agreement}
\newenvironment{agreement-new}{\begin{agreement} \em}{\end{agreement}}
\def\theequation{\arabic{chapter}.\arabic{section}.\arabic{equation}}
\makeatletter \@addtoreset{equation}{section} \makeatother
\def\thefigure{\arabic{chapter}.\arabic{section}.\arabic{figure}}
\makeatletter \@addtoreset{figure}{section} \makeatother
\pagestyle{plain}
\usepackage[english]{babel}
\usepackage{blindtext}
\makeatletter
\renewcommand{\paragraph}{\@startsection{paragraph}{4}{0ex}%
 {-3.25ex plus -1ex minus -0.2ex}%
{1.5ex plus 0.2ex}%
{\normalfont\normalsize\bfseries}}
\makeatother
\stepcounter{secnumdepth}
\stepcounter{tocdepth}
\linespread{1.8}
\addtolength{\textwidth}{2cm}
\addtolength{\hoffset}{-.5cm}
\addtolength{\voffset}{-.3cm}
\addtolength{\textheight}{3cm}
\addtolength{\marginparwidth}{.3cm}
\stepcounter{secnumdepth}
\stepcounter{tocdepth}
\begin{document}


\chapter{Mathematical Modeling for Malaria Transmission and Chemical Control with Human         Related Activities}

\chapter{Mathematical Modeling for Malaria Transmission and Biological Control with Human Related Activities}

\end{document}

答案1

您的问题含糊不清:

  1. 标题和章节之间的间距可能意味着实际章节之间的间距。
  2. 它还可以表示章节和标题的缩进方式。
  3. 它甚至可以表示正文和章节之间的空格(?)。
  4. 间距里面章节标题是我最后想到的。

我希望这是你想要的:

我想到了一个粗略的解决方案,如果您只需要在某些章节中使用这种间距,那么这个解决方案就足够了(或者,\renewcommand\chapter对所有章节都使用这个解决方案)。您可以通过例如调整章节内的行距\linespread{.8}(如果您使用带小数的因子,请确保对值进行分组!TeX否则将无法读取第一个字符之后的内容)。

将宏用于\interlinespacing{<factor>}正文。


http://i.imgur.com/rX0occE.png?1

\documentclass[12pt]{report}
\usepackage[]{graphicx}
\usepackage{amsfonts}
\usepackage{amscd,amsmath,latexsym,makeidx,tocbibind}
\usepackage{amssymb,amsthm,amsfonts}
\usepackage{color}
\usepackage{setspace}
\usepackage{lipsum}
\usepackage{palatino,lettrine}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{definition}[theorem]{Definition}
\newenvironment{definition-new}{\begin{definition} \em}{\end{definition}}
\newtheorem{remark}[theorem]{Remark}
\newenvironment{remark-new}{\begin{remark} \em}{\end{remark}}
\newtheorem{example}[theorem]{Example}
\newenvironment{example-new}{\begin{example} \em}{\end{example}}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{notation}[theorem]{Notation}
\newenvironment{notation-new}{\begin{notatio} \em}{\end{notatio}}
\newtheorem{agreement}[theorem]{Agreement}
\newenvironment{agreement-new}{\begin{agreement} \em}{\end{agreement}}
\def\theequation{\arabic{chapter}.\arabic{section}.\arabic{equation}}
\makeatletter \@addtoreset{equation}{section} \makeatother
\def\thefigure{\arabic{chapter}.\arabic{section}.\arabic{figure}}
\makeatletter \@addtoreset{figure}{section} \makeatother
\pagestyle{plain}
\usepackage[english]{babel}
\usepackage{blindtext}
\makeatletter
\renewcommand{\paragraph}{\@startsection{paragraph}{4}{0ex}%
 {-3.25ex plus -1ex minus -0.2ex}%
{1.5ex plus 0.2ex}%
{\normalfont\normalsize\bfseries}}
\makeatother
\stepcounter{secnumdepth}
\stepcounter{tocdepth}
\linespread{1.8}
\addtolength{\textwidth}{2cm}
\addtolength{\hoffset}{-.5cm}
\addtolength{\voffset}{-.3cm}
\addtolength{\textheight}{3cm}
\addtolength{\marginparwidth}{.3cm}
\stepcounter{secnumdepth}
\stepcounter{tocdepth}

\makeatletter
\newcommand\mychapter{\if@openright\cleardoublepage\else\clearpage\fi%
                    \linespread1%
                    \thispagestyle{plain}%
                    \global\@topnum\z@
                    \@afterindentfalse%
                    \secdef\@chapter\@schapter%
                    %
                    }%
\def\@setsize#1#2#3#4{
\let\@currsize#1
}
\def\interlinespacing#1{
\def\baselinestretch{#1}%
  \@currsize%
  \vskip \baselineskip
}
\makeatother

\begin{document}

\chapter{Mathematical Modeling for Malaria Transmission and Chemical Control with Human\kern5em         Related Activities}

\mychapter{Mathematical Modeling for Malaria Transmission and Biological Control with Human Related Activities}

\interlinespacing{1.5}

\lipsum[1-2]

\end{document}

答案2

这是使用 的解决方案titlesec。我\chapter 用 和重新定义\chapterformat\chapterspacing以便它模仿默认设置,但用于标题中的行距。顺便说一句,因为我使用 titlesec,所以我将您的修改重写了为\paragraph

chngcntr我还使用该包及其命令简化了您对方程和图形编号的修改\counterwithin

对于总体布局,您最好使用使用geometry更易于理解的参数并为您进行必要计算的包。

我要说的是,它amscd的功能相当有限,我认为应该用 或tikz-cdpsmatrix环境来代替pst-node。最后一句:amsfonts 与 不太相配palatino;你应该考虑用mathpazonewpx来代替。

以下是代码:

\documentclass[12pt]{report}
\usepackage{graphicx}
\usepackage{amscd,amsmath,latexsym,makeidx,tocbibind}
\usepackage{amssymb,amsthm,amsfonts}
\usepackage{color}
\usepackage{setspace}
\usepackage{palatino,lettrine}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{definition}[theorem]{Definition}
\newenvironment{definition-new}{\begin{definition} \em}{\end{definition}}
\newtheorem{remark}[theorem]{Remark}
\newenvironment{remark-new}{\begin{remark} \em}{\end{remark}}
\newtheorem{example}[theorem]{Example}
\newenvironment{example-new}{\begin{example} \em}{\end{example}}
\newtheorem{exercise}[theorem]{Exercise}
\newtheorem{notation}[theorem]{Notation}
\newenvironment{notation-new}{\begin{notatio} \em}{\end{notatio}}
\newtheorem{agreement}[theorem]{Agreement}
\newenvironment{agreement-new}{\begin{agreement} \em}{\end{agreement}}
\usepackage{chngcntr}
\counterwithin{equation}{section}
\counterwithin{figure}{section}
\pagestyle{plain}
\usepackage[english]{babel}
\usepackage{blindtext}
\stepcounter{secnumdepth}
\stepcounter{tocdepth}
\linespread{1.8}
\addtolength{\textwidth}{2cm}
\addtolength{\hoffset}{-.5cm}
\addtolength{\voffset}{-.3cm}
\addtolength{\textheight}{3cm}
\addtolength{\marginparwidth}{.3cm}
\stepcounter{secnumdepth}
\stepcounter{tocdepth}

\usepackage[explicit]{titlesec}%
\titleformat{\chapter}[display]{\raggedright\bfseries}{{\huge\chaptername~\thechapter}}{32pt}{\begin{spacing}{1.15}\Huge#1\end{spacing} }%[]
\titlespacing*{\chapter}{0pt}{65pt}{15pt}

\titleformat{\paragraph}[hang]{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{#1}%
\titlespacing*{\paragraph}{0pt}{3.25ex plus 1ex minus 0.2ex}{1.5ex plus 0.2ex}

\usepackage[nomarginpar, showframe]{geometry}

\begin{document}


\chapter{Mathematical Modeling for Malaria Transmission and Chemical Control with Human         Related Activities}

\section{A first section}
\blindtext
\begin{equation}\label{eq1}a = b
\end{equation}

{Text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text. }
%
\paragraph{My paragraph title }
Text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text.

\chapter{Mathematical Modeling for Malaria Transmission and Biological Control with Human Related Activities}

\section{A first section}
\begin{equation}\label{eq2}a = b
\end{equation}

\end{document} 

最终生成以下三个页面:

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

相关内容