章节标题间距、节后间距

章节标题间距、节后间距

我正在尝试在整个文档中创建双倍行距 - 在“第 1 章”和“对称空间中的维度缩减”之后等。我还希望顶部边距为 1 英寸。有人能告诉我如何做到这一点吗?谢谢!

我已经包含了 tex 代码和 pdf 输出 -测试.pdf

我还添加了下面在 Word 中创建的 pdf,其格式是我想在 tex 中实现的 -第 1 章.pdf

\documentclass[12pt,fleqn, letterpaper]{report}
\usepackage{sectsty}
\usepackage{lipsum}
\chapterfont{\centering}
\sectionfont{\fontsize{12}{15}\selectfont \centering \mdseries}
\chapterfont{\fontsize{12}{15}\selectfont \centering \mdseries}
\subsectionfont{\fontsize{12}{15}\selectfont \centering \mdseries}
\usepackage{mathptmx}
\usepackage[nodisplayskipstretch]{setspace}
\usepackage[left=.88in,right=.88in,top=.88in,bottom=.88in,includefoot] {geometry}
\doublespacing
\begin{document}
\chapter{Dimension Reduction in Symmetric Spaces} \label{chpt:Dim_Red}   \vspace{-15pt}
In this chapter PGA procedures and their computations for data in three   types of manifolds, the space of positive definite matrices, the special   orthogonal group and the unit spheres, are specified and analyzed.
\section{The Space of Positive Definite Matrices, $P(n)$}   \label{sec:pos_def}
\subsection{Geometry of $P(n)$} \label{ssec:posdef_geo}
A real symmetric matrix . . . 
\end{document}

答案1

无论如何我都不会这么做。这是跳入孟加拉湾的方法。

\titleformat{\chapter}[display]
{\filcenter\fontsize{12}{15}\selectfont \mdseries}{\chaptertitlename\ \thechapter}{0pt}{}
\titleformat*{\section}{\fontsize{12}{15}\selectfont \centering \mdseries}
\titleformat*{\subsection}{\fontsize{12}{15}\selectfont \centering \mdseries}

\titlespacing*{\chapter} {0pt}{0pt}{0.7\baselineskip}
\titlespacing*{\section} {0pt}{0pt}{0pt}
\titlespacing*{\subsection} {0pt}{0pt}{0pt}

完整代码:

\documentclass[12pt,fleqn, letterpaper]{report}
\usepackage{titlesec}
\usepackage{lipsum}

\titleformat{\chapter}[display]
{\filcenter\fontsize{12}{15}\selectfont \mdseries}{\chaptertitlename\ \thechapter}{0pt}{}
\titleformat*{\section}{\fontsize{12}{15}\selectfont \centering \mdseries}
\titleformat*{\subsection}{\fontsize{12}{15}\selectfont \centering \mdseries}

\titlespacing*{\chapter} {0pt}{0pt}{0.7\baselineskip}
\titlespacing*{\section} {0pt}{0pt}{0pt}
\titlespacing*{\subsection} {0pt}{0pt}{0pt}

\usepackage{mathptmx}
\usepackage[nodisplayskipstretch]{setspace}
\usepackage[left=.88in,right=.88in,top=.88in,bottom=.88in,includefoot] {geometry}
\doublespacing
\begin{document}
\chapter{Dimension Reduction in Symmetric Spaces} \label{chpt:Dim_Red}   \vspace{-15pt}
In this chapter PGA procedures and their computations for data in three   types of manifolds, the space of positive definite matrices, the special   orthogonal group and the unit spheres, are specified and analyzed. definite matrices, the special   orthogonal group and the unit spheres, are
%
\section{The Space of Positive Definite Matrices, $P(n)$}   \label{sec:pos_def}
%definite matrices, the special   orthogonal group and the unit spheres, are
%
\subsection{Geometry of $P(n)$} \label{ssec:posdef_geo}
A real symmetric matrix . . . definite matrices, the special   orthogonal group and the unit spheres, are
\end{document}

在此处输入图片描述

相关内容