答案1
titlesec
以下是使用和包的方法etoolbox
:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{lipsum}% just to generate text for the example
\usepackage[pagestyles]{titlesec}
\titleformat{\section}{\normalsize\bfseries\MakeUppercase}%
{\llap{\arabic{section}\hskip1cm}}{0pt}{}
\usepackage{mathtools, etoolbox}
\BeforeBeginEnvironment{equation}{\rightskip=1.25cm}
\begin{document}
\section{Sets}
\begin{equation}
x +y = a + b
\end{equation}
\section{Mappings}
\lipsum[1]