如何在 \paragraph 后添加间距

如何在 \paragraph 后添加间距

如何在 \paragraph{Parrafo} 后添加间距?

\documentclass{report}
\usepackage{float}
\renewcommand\paragraph[1]{$\bullet$ \textbf{#1}}
\begin{document}
\chapter{ } %if you want a name write it as \chapter{name}
init
\section{seccion}
\paragraph{Parrafo} this is a paragraph 

this is not paragraph (
and should not have a bullet)
\section{ seccion}
 \end{document}

在此处输入图片描述

当我把子弹间距已减小,现在我想增加间距。

答案1

您无需\paragraph从头开始重新定义,而是可以从中复制定义report.cls并添加\bullet

在此处输入图片描述

\documentclass{report}

\makeatletter
\renewcommand\paragraph{%
  \@startsection{paragraph}{4}%
    {4mm}% <-- Space _before_ the paragraph title
    {3.25ex \@plus1ex \@minus.2ex}%
    {-1em}% <-- Space _after_ the paragraph title (with a minus sign)
    %                               V--------V added this to the original
    {\normalfont\normalsize\bfseries$\bullet$~}% Content before the paragraph title
  }
\makeatother

\begin{document}
\section{seccion}
\paragraph{Parrafo} this is a paragraph 

this is not paragraph (%
and should not have a bullet)
\section{seccion}
\end{document}

相关内容