1 章节标题问题
层级递减:
0 chapter (章) \chapter report,book 或 ctexrep,ctexbook 文档类的最高层
1 section (节) \section article 或 ctexart 类的最高层
2 subsection (小节) \subsection
3 subsubsection (小小节) \subsubsection report,book 或 ctexrep,ctexbook 文档类默认不编号不编目录
4 paragraph (段) \paragraph 默认不编号,不编目录
5 subparagraph (小段) \subparagraph 默认不编号,不编目录
\chapter{章节}
\section{一级标题}
\subsection{二级标题}
\subsubsection{三级节标题}
\paragraph{四级节标题}
\subparagraph{五级节标题}
2 插图制表
2.1 并排显示图片
假设有两张图片pic1.png和pic2.png需要将它们并排,则可以在正文中使用如下语句:
\begin{figure}[H]
\centering
% 第一张图片
\begin{minipage}{0.48\textwidth}
\centering
\includegraphics{pic1.png}
\caption{Title of pic1}
\end{minipage}
% 第二张图片
\begin{minipage}{0.48\textwidth}
\centering
\includegraphics{pin2.png}
\caption{Title of pic2}
\end{minipage}
\end{figure}
2.2 缩放显示图片
如果我们要插入的图片的名字是pic.png, 那么在我们正文中要插入图片的位置加上如下代码:
\begin{figure}[H]
\centering
\includegraphics{pic.png}
\caption{Title of picture}
\end{figure}
这里注意一点,如果要将图片插入到文档中,建议将图片拷贝到.tex文件的同一级文件夹中,否则需要在\includegraphics{}的参数中填写绝对路径。
而\caption{}指令的作用,是在其对应的位置(位于\includegraphics{}前就是图片上方,后就是图片下方)产生“图x:Title of picture”的语句。其中x是图片的编号。关于图片的编号,后面的文章会统一说。
可以给\includegraphics{}加上option列表以调整图片的大小。比如说,我想插入的图片是原图片等比例缩小为原来的0.8,则可以写成
\includegraphics[scale=0.8]{pic.png}
\includegraphics[width=0.7\textwidth] %texwidth 理解为固定长度
如果想专门调整长宽,则可以把scale=0.8换成height=xxx, width=xxx这样来实现。
2.3 制表
用\toprule、\midrule以及\bottomrule来实现。\toprule、\midrule以及\bottomrule命令实现的功能是画三线表中的上中下三道线,我们只需要在三条线之间填充内容。同行不同列的内容用&符号隔开,不同行之间用换行符\实现。
\documentclass{article}
\usepackage{float}%提供float浮动环境
\usepackage{booktabs}%提供命令\toprule、\midrule、\bottomrule
\begin{document}
%经典三线表
\begin{table}[H]
\caption{\textbf{Example 1}}%标题
\centering%把表居中
\begin{tabular}{cccc}%四个c代表该表一共四列,内容全部居中
\toprule%第一道横线
Item 1&Item 2&Item 3&Item 4 \\
\midrule%第二道横线
Data1&Data2&Data3&Data4 \\
Data5&Data6&Data7&Data8 \\
\bottomrule%第三道横线
\end{tabular}
\end{table}
\end{document}
效果如下:
3 引用文献问题
3.1 使用.bib文件
在.tex主文件中使用\bibliography{bibfile},实现对bibfile.bib文件的调用。在.bib文件填写引用的参考文献,具体内容在可以在各个文献的官网上导出,例如可能有“Export Citation”这个按钮。格式(根据模板要求)大概为:
建立参考文献数据库,引用的时候调用所需要的参考文献,具体实际做法是 边写边引用。
% 有article, book 等等
@article{ref1,
title = {reference1},
author = {author1, author1, author2},
journal = {},
volume = {5},
issue = {6},
pages = {100},
numpages = {6},
year = {2020},
month = {Apr},
publisher = {},
doi = {},
url = {}
}
在编译.bib文件得需要专门的和添加配置 这地方会有一点难度。
直接使用模板当中已经新建写好的数据库,并且同时写好数据库中的应用文献格式及内容,边引用边写好完成。
\verb|文字| :原样输出的作用
4 参考资料
经典三线表制法:https://blog.csdn.net/qq_37707218/article/details/107393636
图片显示:https://zhuanlan.zhihu.com/p/56435541
引用参考文献:https://www.cnblogs.com/yifdu25/p/8330652.html