答案1
很简单titlesec
:
\documentclass[12pt, twoside]{article}
\usepackage[utf8]{inputenc}
\usepackage{lipsum}%
\usepackage{titlesec}%
\renewcommand{\thesection}{\Roman{section}}
\titleformat{\section}[block]{\normalsize\bfseries\filcenter}{\thesection.}{1em}{}
\titlespacing*{\section}{0pt}{11pt plus 2pt minus 2pt}{11pt plus 2pt minus 2pt}
\renewcommand{\thesubsection}{\Alph{subsection}}
\titleformat{\subsection}{\normalsize\itshape\filcenter}{\thesubsection.}{1em}{}
\titlespacing*{\subsection}{0pt}{11pt plus 2pt minus 2pt}{11pt plus 2pt minus 2pt}
\begin{document}
\section{A Delightful Section}
\lipsum[1]
\subsection{A Lovely Subsection}
\lipsum[2-3]
\end{document}