论文撰写-LaTex 教程+模板

499 阅读2分钟

教程 www.jianshu.com/p/3e842d67a…

模板链接 ijcai模板

www.ijcai.org/authors_kit

github.com/MartinThoma…

www.latextemplates.com/

uk.tug.org/training/th… 国外高校论文模板。

www.overleaf.com/期刊的模板代码,支持在…

插入表格 liam.page/2013/08/04/…

VS Code + LaTeX zhuanlan.zhihu.com/p/108095566…

b站视频教程

\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}