章节标题过长的问题

章节标题过长的问题

我查了一下,但找不到有效的解决方案,所以我才问。我的问题是,我有一个很长的章节标题,延伸到我的文本宽度,如下所示。我该如何解决这个问题?我已经使用几何包设置了边距,除了长章节标题外,它似乎没问题。 在此处输入图片描述

答案1

这个 MWE 显示了问题:

\documentclass{article}
\begin{document}
\section{Smoothed Peridynamics for the Extremely Large Deformation and Cracking
Problems: Unification of peridynamics and SPH}

SPH is a meshless method, meaning that there is no grid used to approximate a
function value or function derivative at a specific point. In SPH method, domain is
defined with group of particles and desired value of a field is approximated with
the help of interaction between particles. This interaction is achieved by a
smoothing function that determines the weight of neighboring particles of the main
particle. With weighted sum of neighboring particles, the value of a field at main
particle can be approximated. which forms the basis of SPH method.
\end{document}

(尽管突出的部分与默认边距略有不同)

在此处输入图片描述

这是一个titlesec使用包的简单解决方案:

\documentclass{article}
\usepackage[raggedright]{titlesec}
\begin{document}
\section{Smoothed Peridynamics for the Extremely Large Deformation and Cracking
Problems: Unification of peridynamics and SPH}

SPH is a meshless method, meaning that there is no grid used to approximate a
function value or function derivative at a specific point. In SPH method, domain is
defined with group of particles and desired value of a field is approximated with
the help of interaction between particles. This interaction is achieved by a
smoothing function that determines the weight of neighboring particles of the main
particle. With weighted sum of neighboring particles, the value of a field at main
particle can be approximated. which forms the basis of SPH method.
\end{document}

所有章节标题都不会完全对齐,而且也不太可能突出到右侧。

在此处输入图片描述

相关内容