\paragraph{} 与下一个字符之间的间距

\paragraph{} 与下一个字符之间的间距

是否可以在 \paragraph{} 文本和下一个字符之间添加新行?我试过了,但没有任何变化。

\paragraph{Raffinement du cas d'utilisation \og Rechercher \fg}
\newline
Comme décrit dans le tablea

提前致谢 !

在此处输入图片描述

答案1

您可以重新定义\paragraph,更改第五个参数的负长度\@startsection并使用适当的正长度:

\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage[demo]{graphicx}
\usepackage{longtable}

\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\renewcommand\theparagraph{\alph{paragraph}}

\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
                                    {3.25ex \@plus1ex \@minus.2ex}%
                                    {0.5ex \@plus .2ex}%
                                    {\normalfont\normalsize\bfseries}}
\makeatother

\begin{document}

\paragraph{Raffinement du cas d'utilisation}
Some text for the paragraph text for the paragraph text for the paragraph text for the paragraph text for the paragraph text for the paragraph

\end{document}

在此处输入图片描述

答案2

在该包的帮助下也可以获得相同的效果titlesec

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}

\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\renewcommand\theparagraph{\alph{paragraph}}

\usepackage{titlesec}
\titleformat{\paragraph}[hang]{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}{0pt}{3.25ex plus 1ex minus .2ex}{0.5ex}

\begin{document}

\paragraph{Raffinement du cas d'utilisation}
Some text for the paragraph text for the paragraph text for the paragraph text for the paragraph text for the paragraph text for the paragraph

\end{document} 

输出:

在此处输入图片描述

相关内容