所以我知道我应该能够用这个命令来改变间距:
\titlespacing*{\subsubsection}{0pt}{\parskip}{-\parksip}
但无论我如何更改值,间距都不会改变。 这可能与我使用显式设置有关:
\usepackage[explicit]{titlesec}
或者我的文档类是报告?
\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[explicit]{titlesec}
\usepackage{lmodern}
\usepackage{lipsum}
\newlength\chapnumb
\setlength\chapnumb{2cm}
\titleformat{\chapter}[block]
{\normalfont\sffamily}{}{0pt}
{\parbox[b]{\chapnumb}{%
\fontsize{70}{110}\selectfont\thechapter}%
\parbox[b]{\dimexpr\textwidth-\chapnumb\relax}{%
\raggedleft%
\hfill{\Huge#1}\\
\rule{\dimexpr\textwidth-\chapnumb\relax}{0.4pt}}}
\titleformat{name=\chapter,numberless}[block]
{\normalfont\sffamily}{}{0pt}
{\parbox[b]{\chapnumb}{%
\mbox{}}%
\parbox[b]{\dimexpr\textwidth-\chapnumb\relax}{%
\raggedleft%
\hfill{\LARGE#1}\\
\rule{\dimexpr\textwidth-\chapnumb\relax}{0.4pt}}}
\titlespacing*{\chapter}{0pt}{0cm}{20pt}
\titlespacing*{\section}{0pt}{0pt}{0pt}
\titlespacing*{\subsection}{0pt}{0pt}{0pt}
\titlespacing*{\subsubsection}{0pt}{\vspace{\parskip}}{\vspace{-\parskip}}
然后在文本中我这样使用它:
This shows that there aren't many mutations.
\subsubsection*{YME1L1}
This gene had the following mutation:\\