简单的Latex模板

酆华皓
2023-12-01

小白刚刚开始使用Latex,在此保存一个简单的Latex模板以供自己查找使用。

\documentclass[a4paper]{article}

\usepackage{xeCJK}
\setCJKmainfont[BoldFont=SimHei]{KaiTi}
\setCJKfamilyfont{hei}{SimHei}
\setCJKfamilyfont{kai}{KaiTi}
\setCJKfamilyfont{fang}{FangSong}
\newcommand{\hei}{\CJKfamily{hei}}
\newcommand{\kai}{\CJKfamily{kai}}
\newcommand{\fang}{\CJKfamily{fang}}
\usepackage{fontspec}
\setmainfont{Times New Roman}
\setsansfont{Arial}
\setmonofont{Courier New}

\usepackage{enumitem}
\usepackage{booktabs}

\usepackage{listings}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{indentfirst}
\usepackage{amsthm}
\usepackage{cite}
\usepackage{color}
\usepackage{bbding}
\usepackage{array}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage[lined,boxed,commentsnumbered,ruled]{algorithm2e}
\usepackage[all,cmtip]{xy}
\usepackage{multicol}
\usepackage{algorithmic}
\usepackage{geometry}\geometry{left=2cm,right=2cm,top=2cm,bottom=2cm}
\usepackage{setspace}

\linespread{1.2}

\begin{document}\large
\author{author}
\date{}
\title{Title}
\maketitle

\begin{enumerate}[label=\arabic{*}.]
	\item question1
	\item question2
	\item question3
\end{enumerate}
\end{document}
 类似资料: