如何在 \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}