如何创建居中且带有“(a)”标签的段落标题

如何创建居中且带有“(a)”标签的段落标题

对于 2.3.4 小节中的 \documentclass[11pt, a4paper, oneside]{Thesis},我创建了段落代码:

\documentclass[11pt, a4paper, oneside]{Thesis}
\subsection{The reasons of wide values}
\setcounter{secnumdepth}{5}
\renewcommand\theparagraph{\alph{paragraph}}
\paragraph{State of the vegetation}
\paragraph{Climate} 
\paragraph{Methods}
\setcounter{secnumdepth}{5}
\renewcommand\thesubparagraph{\arabic{subparagraph}}
\subparagraph{Lysimeters}
\subparagraph{Energy balance}
\subparagraph{Water balance}

但我希望我的段落看起来像这样:

2.3.4 The reasons of wide values

Some text

                           (a) State of vegetation
Some text

                           (b) Climate
Some text

                           (c) Methods
1.Lysimeters.-Some text

2.Energy balance.-Some text

3.Water balance.-Some text

我需要在代码中做哪些更改才能获得我想要的外观?

如果我使用了错误的 LaTex 术语,请原谅我。我是 LaTex 新手。

答案1

您可以使用包sectsty,但它不提供paragraph和的居中subparagraph,而是提供缩进。

\documentclass[11pt,a4paper]{article}
\usepackage{sectsty}
\paragraphfont{\hspace*{0.2\linewidth}\centering}

\setcounter{secnumdepth}{5}
\renewcommand\theparagraph{(\alph{paragraph})}
\renewcommand\thesubparagraph{\arabic{subparagraph}}

\begin{document}
\subsection{The reasons of wide values}
\paragraph{State of the vegetation}
\paragraph{Climate} 
\paragraph{Methods}
\subparagraph{Lysimeters}
\subparagraph{Energy balance}
\subparagraph{Water balance}
\end{document} 

输出

相关内容