张柯论文指导

张柯论文指导考试资料
当前位置:张柯论文指导 > 毕业论文答疑 >

一个能够学习LaTeX的论文模板

2026-05-23 张柯论文指导

这是一个能够帮助新手快速入门LaTeX的论文模板,模板中每一句代码的作用均已通过注释给出。


排版样式

最终排版效果如下图所示,文字内容来源于近代物理实验任课教师所提供的论文模板与百度百科;图片来源于近代物理实验任课教师所提供的论文模板与笔者拍摄。

论文模板样式第1,2页

论文模板样式第3,4页

导言部分%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%加载宏包%%%%%%%%%% \usepackage[heading=true]{ctex}%引入中文宏包 并使用默认样式(若不使用,无法设置标题样式) \usepackage{geometry}%引入宏包:设置页边距 \usepackage{booktabs}%引入宏包:制作三线表 \usepackage{graphicx}%引入宏包:插入图片 \usepackage{amsmath}%引入宏包:拓展latex符号格式 \usepackage{indentfirst}%引入宏包:设置首行缩进 \usepackage{lmodern}%引入宏包:消除字体错误 \usepackage{fontspec}%引入宏包:设置英语字体 \usepackage{fancyhdr}%引入宏包:设置页眉页脚 \usepackage{gbt7714}%引入宏包:可将参考文献格式设置为GBT7714 \usepackage{caption}%引入宏包:设置图标标注 \usepackage[runin]{abstract}%引入宏包:设置摘要格式同时将摘要标题设置到摘要正文前 \usepackage[colorlinks,urlcolor=black,linkcolor=black,citecolor=black,hyperfootnotes=false]{hyperref}%引入宏包:设置引用格式,并设置引用方式 %可使用win+R 输入“texdoc 宏包名”可打开宏包说明 %%%%%%%%%%设置%%%%%%%%%% %%%%%其他%%%%% \geometry{a4paper,left=2cm,right=2cm,top=2.5cm,bottom=2.2cm,headheight=14pt}%【使用A4纸,左页面边距,右页面边距,上页面边距,下页面边距,页眉高度】设置页面边距 \linespread{1.25}%设置行间距为1.25倍 \setlength{\parindent}{2em}%设置首行缩进两个字节 \setmainfont{Times New Roman}%设置英文字体为新罗马字体 %%%%%页眉页脚%%%%% \pagestyle{fancy}%启用fancy样式 \fancyhf{}%清空默认页眉页脚 \fancyfoot[C]{\thepage}%设置页脚中间为页码 \fancyhead[L]{\leftmark}%设置页眉左侧为章节标题 \fancyhead[R]{如何使用{\LaTeX}优雅的编辑论文}%设置页眉右侧内容为标题 \fancyhead[C]{XXX学报}%设置页眉中间内容为“XXX学报” \renewcommand{\headrulewidth}{0.2pt}%设置页眉线粗细 \renewcommand{\footrulewidth}{0pt}%设置页脚线粗细 %%%%%各级标题%%%%% \ctexset{section={format={\raggedright \zihao{-4} \mdseries},titleformat={\heiti },beforeskip=10pt,afterskip=5pt,numberformat={\setmainfont{Times New Roman}},aftername=\hspace{6pt}}}%设置一级标题格式:整体格式:左对齐 小四 不加粗声明,标题格式:黑体,前间距10磅,后间距5磅,编号格式:新罗马,编号与标题间距:6磅 \ctexset{subsection={titleformat={\heiti \zihao{5} \mdseries},beforeskip=0pt,afterskip=0pt,numberformat={\setmainfont{Times New Roman} \zihao{5}},aftername=\hspace{5pt}}}%设置二级标题格式:标题格式:黑体 五号 不加粗声明,前间距0磅,后间距0磅,编号格式:新罗马 五号,编号与标题间距:5磅 \ctexset{subsubsection={titleformat={\kaishu \zihao{5} \mdseries},beforeskip=0pt,afterskip=0pt,numberformat={\setmainfont{Times New Roman} \zihao{5}},aftername=\hspace{5pt}}}%设置三级标题格式:标题格式:楷体 五号 不加粗声明,前间距0磅,后间距0磅,编号格式:新罗马 五号,编号与标题间距:5磅 %%%%%摘要%%%%% \setlength{\absleftindent}{0pt}%设置摘要两端缩进 \setlength{\absrightindent}{0pt}%设置摘要两端缩进 \abslabeldelim{:}%摘要二字后加“:” \setlength{\abstitleskip}{-2em}%设置摘要标题与摘要内容的间距 %%%%%图表标注%%%%% \DeclareCaptionFont{songxiaoWu}{\songti \zihao{-5}}%自定义一种字体 宋体 小五 应用于图注 \DeclareCaptionFont{heixiaoWu}{\heiti \zihao{-5}}%自定义一种字体 黑体 小五 应用于表注 \captionsetup[figure]{font=songxiaoWu,labelfont=songxiaoWu,labelsep=space,skip=3pt}%设置图注字体、表现形式、上下间距 \captionsetup[table]{font=heixiaoWu,labelfont=heixiaoWu,labelsep=space,skip=3pt}%设置表注字体、表现形式、上下间距 \numberwithin{figure}{section}%设置表格按章节编号 \numberwithin{table}{section}%设置图片按章节编号 %%%%%参考文献%%%%% \bibliographystyle{gbt7714-numerical}%设置参考文献格式 \ctexset{bibname={\heiti \zihao{-4} 参考文献}}%设置“参考文献”为黑体小四 %%%%%

如果需要论文指导,可联系网站客服!

学员评价

随机文章
最新文章
长按复制 bbapay 加微信!