教程 www.jianshu.com/p/3e842d67a…
模板链接 ijcai模板
uk.tug.org/training/th… 国外高校论文模板。
VS Code + LaTeX zhuanlan.zhihu.com/p/108095566…
\documentclass[UTF8]{ctexart}
\usepackage{graphicx}
% 在begin之前的被称作前言 preamble
% 就像html的head 可以指定文档的格式 页面尺寸 导入的宏包
\title{文章的标题}
\author{罗斯}
\date{\today}
\title{标题}
\begin{document}
\maketitle
%为了显示标题和作者
%这里的是文档的正文
你好
\textbf{加粗的文字}
\underline{下划线}
textit{斜体字}
两个回车生成了一个新的段落,一个换行符变成了一个空格
\section{第一个章节}
\subsection{第一个子章节}
\section{第二个章节}
\begin{figure}
\centering %图片居中显示
\includegraphics[width=0.5\textwidth]{imagefile}
%插入图片并且设置宽为页面宽度的一半
\caption{图片的标题} 内容...
\end{figure}
\end{document}
表格
\documentclass[UTF8]{ctexart}
\begin{document}
\begin{tabular} {c c c} % 表示居中对齐 l左对齐 r右对齐
单元1 & 单元2 & 单元3 \\
单元4 & 单元5 & 单元6 \\
单元7 & 单元8 & 单元9
\end{tabular}
\begin{tabular} {|c| c| c|} % 加边框
单元1 & 单元2 & 单元3 \\
\hline %水平方向的边框
单元4 & 单元5 & 单元6 \\
\hline %水平方向的边框
\hline %水平方向的边框 双横线
单元7 & 单元8 & 单元9
\end{tabular}
\begin{tabular} {|p{2cm}| c| c|} % 指定列宽
单元1 & 单元2 & 单元3 \\
\hline %水平方向的边框
单元4 & 单元5 & 单元6 \\
\hline %水平方向的边框
\hline %水平方向的边框 双横线
单元7 & 单元8 & 单元9
\end{tabular}
\begin{table}
\center %表格居中显示
\begin{tabular} {|c| c| c|} % 指定列宽
单元1 & 单元2 & 单元3 \\
\hline %水平方向的边框
单元4 & 单元5 & 单元6 \\
\hline %水平方向的边框
\hline %水平方向的边框 双横线
单元7 & 单元8 & 单元9
\end{tabular}
\caption{表格的标题}
\end{table}
\end{document}