本文所编写的这些语句都是https://cn.overleaf.com/learn/latex/Learn_LaTeX_in_30_minutes中提供的,话不多说,直接上代码
\documentclass[12pt, a4paper]{report}
\usepackage[utf8]{inputenc}
\title{First document}
\author{Hanlei Liu \thanks{funded by the overleaf team}}
\date{\today}
\usepackage{graphicx}
\graphicspath{ {images/} }
\begin{document}
\maketitle
\tableofcontents
\begin{abstract}
We have now added a title,author and date to our first \LaTeX{} document! First document. This is a simple example, with no extra parameters or packages included.
\end{abstract}
\chapter{First Chapter}
\section{Bold, italics and underlining}
Some of the \textbf{greatest}
discoveries in \underline{science}
were made by \textbf{\textit{accident}}.
% \emph{...} 其作用要看与textit的相互作用
Some of the greatest \emph{discoveries}
in science were made by accident.
\textit{Some of the greatest \emph{discoveries}
in