到了写论文的年纪,最近在学习用LaTex,在此记录一下。若有错误,还请见谅。
关于下载与安装步骤,详见我的上一篇笔记
首先要有一个框架,其他内容要在这里面写。
\documentclass{ctexart}
\begin{document}
开始论文了。。。
\end{document}
下面按照论文的格式依次介绍
1. 封面
我们可以写上学校、姓名、学号、指导教师、日期等等
\documentclass{ctexart}
\begin{document}
% 设置封面
\title{\heiti\ 学习使用说明}
\date{}
\maketitle
~\\
\begin{flushleft}
\thispagestyle{empty} % 当前页不显示页码
{\songti\fontsize{15pt}{1}\textbf{学校:\underline{\qquad xx大学 \qquad}}}
{\songti\fontsize{15pt}{1}\textbf{姓名:\underline{\qquad let me try \qquad}}}
{\songti\fontsize{15pt}{1}\textbf{学号:\underline{\qquad XXXXXXXX \qquad}}}
{\songti\fontsize{15pt}{1}\textbf{指导老师:\underline{\qquad XXX\qquad}}}
{\songti \fontsize{15pt}{1} \textbf{日期:\underline{\qquad 2024.×.×\qquad}}}
\end{flushleft}
\end{document}
2. 目录
\tableofcontents
运行两次,自动更新文章目录
3. 摘要部分
- 中文摘要
\documentclass{ctexart}
\begin{document}
\begin{abstract}
本文介绍了。。。。
\noindent{\textbf{关键词:}关键词\quad 关键词\quad 键词\quad }
\end{abstract}
\end{document}
- 英文摘要
\documentclass{ctexart}
\newcommand{\enabstractname}{Abstract}
\newenvironment{enabstract}{%
\par\small
\noindent\mbox{}\hfill{\bfseries \enabstractname}\hfill\mbox{}\par
\vskip 2.5ex}{\par\vskip 2.5ex}
\begin{document}
\begin{enabstract}
abstract,hi hi
\indent{\textbf{keywords:}one ;\quad two;\quad three;}
\end{enabstract}
\end{document}
一些技巧
1、关键字与摘要之间要想有空行,直接回车;若想换行可以加~\\
2、空格输入 : \hspace{1em}
3、无页眉页脚: \thispagestyle{empty}
无页眉:\thispagestyle{plain}
4、换页 : \clearpage
5、左对齐:
\begin{flushleft}
.....
\end{flushleft}
右对齐 :flushright,居中:center