章节和节后的行距

章节和节后的行距

我想将行距增加到 1.5(我在下面的代码中将其夸大到 5 个空格)。但是部分和文本之间的间距也增加了,我不希望它们改变。如何防止这种情况?

\documentclass[12pt,a4paper,oneside,onecolumn]{report}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[left=4.00cm, right=2.00cm, top=2.50cm, bottom=2.50cm]{geometry}
\usepackage{tocloft}
\usepackage{titlesec}
\usepackage{setspace}

\titleformat{\chapter}{\fontsize{12}{0pt}\selectfont\bfseries}{\thechapter.}{0.3em}{}
\titleformat{\section}{\fontsize{12}{0pt}\selectfont\bfseries}{\thesection.}{0.3em}{}
\titleformat{\subsection}{\fontsize{12}{0pt}\selectfont\bfseries}{\thesubsection.}{0.3em}{}
\titleformat{\subsubsection}{\fontsize{12}{0pt}\selectfont\bfseries}{\thesubsubsection.}{0.3em}{}

\titlespacing*{\chapter}{0pt}{50pt}{30pt}
\titlespacing*{\section}{0pt}{12pt}{6pt}
\titlespacing*{\subsection}{0pt}{6pt}{6pt}
\titlespacing*{\subsubsection}{0pt}{6pt}{6pt}

\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt}

\setstretch{5} % I exaggerated this!

\begin{document}

\chapter{CHAPTER NAME}

Lorem  ipsum  dolor  sit  amet,  consectetuer  adipiscing elit. Etiam lobortisfacilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales.

\section{SECTION NAME}

Lorem  ipsum  dolor  sit  amet,  consectetuer  adipiscing elit. Etiam lobortisfacilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales.

\subsection{SUBSECTION NAME}

Lorem  ipsum  dolor  sit  amet,  consectetuer  adipiscing elit. Etiam lobortisfacilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales.

\subsubsection{SUBSUBSECTION NMAE}

Lorem  ipsum  dolor  sit  amet,  consectetuer  adipiscing elit. Etiam lobortisfacilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales.

\end{document}

相关内容