在文章類別中將頂級標題居中並左對齊底層標題

在文章類別中將頂級標題居中並左對齊底層標題

我有一個類型為 的文檔article。我正在嘗試創建 APA 樣式,並且需要將所有頂級標題置於中心(頂級標題是指所有\section標題),並將所有其他底層標題左對齊。這是我目前的設定:

\documentclass[12pt, letterpaper]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage[document]{ragged2e}
\usepackage{indentfirst}
\graphicspath{ {images/} }
\usepackage{setspace,caption}
\captionsetup{font=doublespacing}% Double-spaced float captions
\doublespacing% Double-spaced document text

\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[R]{\thepage}
\lhead{RUNNING HEAD}

\title{my title}
\author{my name}

我想知道我怎麼能做到這一點。我知道使用\section*{\hfil Introduction\hfil},但是,顯然它不適用於article文件。

相關內容