我正在使用该droit-fr
课程,并且我需要仅有的章节标题不要在第二行(及以下行)缩进。
这是我的 MWE:
\documentclass[a4paper,12pt,french,twoside,footnotereset=true,versetitle=true]{droit-fr}
\usepackage[utf8]{inputenc}
\begin{document}
\chapitre{This chapter title is good}
\section{I want this title no to be indent on the second line and following}
\paragraphe{The title format is good and can be intended on each line}
\souspara{The title format is good and can be intended on each line}
\end{document}
非常感谢你的帮助!
答案1
适应这个答案对于你的问题,这样的事情是可行的,即使它可能不是特别优雅:
\documentclass[a4paper,12pt,french,twoside,versetitle=true]{droit-fr}
\makeatletter
\let\oldsection\section
\renewcommand{\section}[1]{
\bgroup
\def\@hangfrom##1{\setbox\@tempboxa\hbox{{##1}}%
\hangindent 0pt%\wd\@tempboxa
\noindent\box\@tempboxa}
\oldsection{#1}
\egroup
}
\makeatother
\begin{document}
\chapitre{This chapter title is good}
\section{I want this title no to be indent on the second line and following}
\paragraphe{The title format is good and can be intended on each line}
\souspara{The title format is good and can be intended on each line}
\end{document}