LaTeX 章节标题的具体更改

LaTeX 章节标题的具体更改

我需要将整个文档都设置为 12pt 字体,为此我使用了 sectsty。我遇到的问题与章节、部分、小节标题有关。我想将其中任何一个标题设置为大胆的仅有的和 12pt。我可以使用 titlesec,但我不知道如何删除章节名称,但这样我就无法控制字体大小和制作。如果我使用 sectsty,我可以将其全部设为 12pt,但我无法从文档部分中删除“章节”。

我想要这样的东西:

虚拟章节名称

1.1 虚拟节名

Bla bla bla 部分文本

以下是我在 LaTeX 中的内容:

\documentclass[12pt]{report} % better for longer documents
\usepackage{graphicx} % required for inserting images
\usepackage{geometry} % required for changing margins
\usepackage{setspace} % for spacing of the lines
\usepackage{lipsum} % for fake text

\usepackage[T1]{fontenc}
\usepackage{etoolbox}

\makeatletter
\patchcmd{\@maketitle}{\LARGE}{\Large}{}{}
\makeatother

\usepackage{sectsty}
\chapterfont{\fontsize{12}{12}\selectfont}
\sectionfont{\fontsize{12}{12}\selectfont}


\usepackage[version=4]{mhchem} %for chemistry formulas

\usepackage{booktabs} % for tables

\usepackage[tableposition=top]{caption} % for having table captions on top

\usepackage{enumerate} %for initial page counts
\setcounter{secnumdepth}{2} % for numbering each section

\usepackage{natbib} % for citations
\setcitestyle{plainnat,open={(},close={)}} %Citation-related commands

\usepackage{fontspec} % changing font
\setmainfont{Times New Roman} % choosing font

% for indenting the first line
\usepackage{indentfirst}

%for margins
\newgeometry{
top = 1in,
bottom = 1in,
outer = 1in,
inner = 1in
    }

\doublespacing

\begin{document}


\vspace*{\fill}
\begingroup
\begin{center}
\pagenumbering{gobble}
my awesome title \\
Submitted in partial fulfillment \\
of the requirements for the degree of \\
super smart person \\ 
in cool science stuff \\
at \\
school of cool science stuff \\
nice university \\
month 2024
} \end{center}
\endgroup
\vspace*{\fill}

\end{document}

相关内容