现在,我正在以以下大号粗体字体显示章节标题:
但是,我想将其更改为以下格式,即常规大小、普通文本、常规字体类型且居中:
我只是指上图中的“简介”文字。这是我的通用代码:
\documentclass[12pt]{report}
\usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
...
\begin{document}
...
\pagenumbering{arabic}
\setcounter{page}{1}
\begin{center}
INTRODUCTION
\end{center}
Hi there! I want my chapter text and the section text to be the same default font
...
\end{document}
编辑:现在我已经使用了 Hafid Boukhoulda 推荐的代码,我可以更改字体,但我面临另一个问题,即我的页码从空白页开始,而简介文本从下一页开始。如果清楚的话。我的代码是:
\fancyhf{}
\fancyhead[C]{\thepage}
\pagestyle{fancy}
\titleformat{\chapter}{\normalfont\centering}{}{0pt}{}
\titlelabel{}
\titlespacing*{\chapter}{0pt}{-50pt}{10pt}
\begin{document}
\setlength{\headheight}{50pt} %to note where the header lies.
\setlength{\headsep}{15pt} %to set the distance between header and the first line after it.
....
\pagenumbering{arabic}
\setcounter{page}{1}
\begin{center}
\chapter{INTRODUCTION}
\end{center}
多谢!
答案1
\documentclass[12pt]{report}
\usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
\usepackage[rm,tiny]{titlesec}
\titleformat{\chapter}{\normalfont\centering}{}{0pt}{}
\titlelabel{}
\begin{document}
%\pagenumbering{arabic}
%\setcounter{page}{1}
\chapter{The chapter title in normal font}
\section{The section title in normal font}
The paragraph in normal font
\end{document}