我试图摆脱在开始一个部分之后以及在小节之间(所以在小节之前?)出现的空白行。
目前我正在使用
\usepackage{titlesec}
\setlength{\droptitle}{-6em}
\titleformat{\section}
{\normalfont\bfseries}% formatting commands to apply to the whole heading
{\thesection}% the label and number
{0.0em}% space between label/number and subsection title
{.{} }% formatting commands applied just to subsection title
[]% punctuation or other commands following subsection title
\titleformat{\subsection}[runin]% runin puts it in the same paragraph
{\normalfont\bfseries}% formatting commands to apply to the whole heading
{\thesubsection}% the label and number
{0.0em}% space between label/number and subsection title
{}% formatting commands applied just to subsection title
[]% punctuation or other commands following subsection title
\titleformat{\subsubsection}[runin]% runin puts it in the same paragraph
{\normalfont\bfseries}% formatting commands to apply to the whole heading
{\thesubsection}% the label and number
{0.0em}% space between label/number and subsection title
{}% formatting commands applied just to subsection title
[]% punctuation or other commands following subsection title
\setlength{\parskip}{0cm}
但它似乎不起作用。
我会提供 MWE,但我正在使用 NiH 拨款提案模板和一堆其他结构文件。
谢谢!