减少章节标题的行距

减少章节标题的行距

我使用 将行距改为两倍\begin{doublespace}。现在,对于那些分布在两行上的章节标题,我想减少它们的行距。我该怎么做? 平均能量损失

\documentclass[oneside,12pt,chapterprefix ]{scrbook}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{enumerate}
\usepackage{setspace,xparse}
\usepackage{caption}
\usepackage{lipsum}
\let\oldchapter\chapter
\RenewDocumentCommand{\chapter}{s o m}{%
    \IfBooleanTF{#1}
    {% \chapter*
        \oldchapter*{\singlespacing #3}%
    }{% \chapter
        \IfValueTF{#2}
        {% \chapter[..]{...}
            \oldchapter[#2]{\singlespacing #3}%
        }{% \chapter{...}
            \oldchapter[#3]{\singlespacing #3}%
        }%
    }%
}
\title{Title of Thesis}

\date{2016}
\titlehead{A Thesis submitted for the degree of Doctor of Philosophy}
\publishers{}
\usepackage[left=1.50in,   footskip=0.4in ]{geometry}
\begin{document}
    \frontmatter
    \tableofcontents
%   \listoftables
%   \listoffigures
    \include{Abs}
\begin{doublespace}
\mainmatter
\include{chap1}
\include{chap2}
\end{doublespace}
\backmatter
\bibliographystyle{IEEEtran}
\bibliography{myBib}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Chapter 1 File
\chapter{A default chapter title}
\label{chap1}
\lipsum[1]

%% Chapter 2 File
\chapter{A lengthy chapter title that spans multiple lines}
\label{chap2}
\lipsum[1]

答案1

以下示例将更新\chapter并在其前面添加内容\singlespacing,以便设置整个标题而不包含doublespacing跨页:

在此处输入图片描述

\documentclass{report}

\usepackage{setspace,xparse,lipsum}

\let\oldchapter\chapter
\RenewDocumentCommand{\chapter}{s o m}{{%
  \singlespacing
  \IfBooleanTF{#1}
  {% \chapter*
      \oldchapter*{#3}%
  }{% \chapter
    \IfValueTF{#2}
    {% \chapter[..]{...}
      \oldchapter[#2]{#3}%
    }{% \chapter{...}
      \oldchapter{#3}%
    }%
  }%
}}

\begin{document}

\doublespacing

%\tableofcontents

\chapter{A default chapter title}
\lipsum[1]

\chapter{A lengthy chapter title that spans multiple lines}
\lipsum[1]

\end{document}

相关内容