[小冬传经验]-教你怎么用Latex写论文

静不下心来搞理论不如来磨刀

Posted by Lordon on February 21, 2020

0、关于

2020年的目标当然是先入账一篇论文,可以的话终极目标是两篇+一个专利?

磨刀不误砍柴工,用word排版太难了,趁着假期多学学Latex岂不是很好.

20200423更新:

如果用MAC或者Linux或者不打算读博建议直接Overleaf网页版 后面内容都不用看了Over :P


说实话网页版用起来真的不错,win的教程可以根据下面步骤来,Mac需要安装maclatex太麻烦。

1、Windows:Texlive+TeXstudio安装

CSDN上面比较有价值的参考 Texlive+TeXstudio入门安装 这篇文章,毕竟时间过去太久了,2019Texlive安装方式以及TeXstudio内部配置上都发生了一些改变,这里需要注意点问题.

改动1 通过install-tl-advanced.bat安装注意事项

Texlive安装界面发生变化,部分选择项隐蔽性强,需要多点开选项观察;安装后并没有配置好环境变量,需要手动添加.

改动2 texstudio配置中构建选项有改动

在对IEEE所给模板进行测试的时候发现默认编辑器应该为PdfLaTeX,默认文献工具应改为BibTex,才能编译成功.

2、代码如下

document.tex文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
% 采用ieee会议类型
\documentclass[conference]{IEEEtran}
%\usepackage{ctex}%引入中文包 摘要、引用等变成中文

\usepackage{graphicx}%插入图片

\begin{document}
	
%************************************标题************************************
\title{Practice Demo for IEEE Conferences}

\author{\IEEEauthorblockN{Luodong Xu}
\IEEEauthorblockA{Northeastern University\\
Shenyang,China \\
Email: 1970762@stu.edu.neu.cn}}
\maketitle 

%************************************摘要************************************
\begin{abstract}
The abstract goes here\cite{refer1}.hello world\cite{refer2} !An example\cite{refer3} of a floating figure using the graphicx package.Note that must occur AFTER (or within).For figures,  should occur after the .Note that IEEEtran v1.7 and later has special internal code that is designed to preserve the operation of within  even when the captionsoff option is in effect. However, because of issues like this, it may be the safest practice to put al

\end{abstract}


%************************************一级************************************
\section{Introduction}
	%用$...$   $$...$$包围的内容表示数学模式
Let $f(x)$ be defined by the formula\cite{refer2}
$$f(x)=3x^2+x-1$$which is a polynomial of degree 2.Traditional learning approaches proposed for controlling quadrotors or helicopters have focused on improving performance for specific trajectories by iteratively improving upon a nominal controller, for example learning from demonstrations, iterative learning, and reinforcement learning. In these schemes, however, it is not clear how the information gathered from the training trajectorie


%************************************二级************************************
\subsection{Subsection Heading Here}
Traditional learning approaches proposed for controlling quadrotors or helicopters have focused on improving performance for specific trajectories by iteratively improving upon a nominal controller, 
for example learning, Fig\ref{fig1} shows how it works.

%************************************插图************************************
\begin{figure}[ht]
\centering
\includegraphics[width=3.5in]{fig.png}
\caption{success}
\label{fig1}
\end{figure}

\begin{figure}[ht]
	\centering
	\includegraphics[width=3.5in]{fig2.pdf}
	\caption{success}
	\label{fig2}
\end{figure}
%************************************三级************************************
\subsubsection{Subsubsection Heading Here}
Traditional learning approaches proposed for controlling quadrotors or helicopters have focused on improving performance for specific trajectories by iteratively improving upon a nominal controller, for example learning from demonstrations, iterative learning, and reinforcement learning. In these schemes, however, it is not clear how the information gathered from the training trajectorie


\section{Conclusion}
The conclusion goes here.


%************************************参考文献************************************
%mybibtexrefer:ieee或者其cite类型为BibTex的论文属性添加到mybibtexrefer.bib即可
\bibliographystyle{IEEEtran}%ieee显示格式
	
	\bibliography{mybibtexrefer}%自己的库
	
\end{document}

Reference bib文件

mybibtexrefer.bib:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@INPROCEEDINGS{refer1,
author={A. {Punjani} and P. {Abbeel}},
booktitle={2015 IEEE International Conference on Robotics and Automation (ICRA)},
title={Deep learning helicopter dynamics models},
year={2015},
volume={},
number={},
pages={3223-3230},
keywords={aircraft control;helicopters;mechanical engineering computing;neural nets;regression analysis;vehicle dynamics;deep learning helicopter dynamics models;system identification;direct high-dimensional regression;rectified linear unit network model;ReLU network model;hierarchical neural network model;aerobatic maneuvers;Helicopters;Mathematical model;Trajectory;Aerodynamics;Acceleration;Data models;Training},
doi={10.1109/ICRA.2015.7139643},
ISSN={1050-4729},
month={May},}

@inproceedings{refer2,
author = {Nascimento, Renato and Fricke, Kajetan and Viana, Felipe},
year = {2020},
month = {01},
pages = {},
title = {Quadcopter Control Optimization through Machine Learning},
doi = {10.2514/6.2020-1148}
}

@article{refer3,
	title={Learning quadrotor dynamics using neural network for flight control},
	author={Somil Bansal and Anayo K. Akametalu and Frank Jiang and Forrest Laine and Claire J. Tomlin},
	journal={2016 IEEE 55th Conference on Decision and Control (CDC)},
	year={2016},
	pages={4653-4660}
}

n 参考文献

Texlive+TeXstudio入门安装 插入图片(Visio图转换成.eps图)