
Сейчас я пишу название главы следующим шрифтом, крупным и жирным:
Однако я хочу изменить его на следующий формат, который имеет обычный размер, обычный текст, обычный тип шрифта и выравнивание по центру:
Я имею в виду только текст "Введение" на рисунках выше. Вот мой общий код:
\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}
Редактировать: Теперь, когда я использовал код, рекомендованный Хафидом Букхулдой, я могу изменить шрифт, но я сталкиваюсь с другой проблемой: номер моей страницы начинается на пустой странице, а текст введения начинается на следующей странице. Если это понятно. Мой код:
\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}