一:IEEEtran格式详解第一个.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[journal,twocolumn]{IEEEtran}%期刊,双栏,IEEEtran格式
\usepackage{lineno}%行数
\usepackage{graphicx}%图表
\usepackage{subfigure}%子图
\usepackage{amssymb}
\usepackage{epstopdf}%图片,eps转pdf
\usepackage{booktabs}%表
\usepackage{caption}%章节
\usepackage{wrapfig}
\usepackage{makecell}
\usepackage{CJK}%中文
\usepackage{amsmath}
\usepackage{txfonts}
\hyphenation{op-tical net-workssemi-conduc-tor}
\begin{document}
\title{XXXXX}%标题
%作者及简介,标注,脚注
\author{Xingfa~Shen,~\IEEEmembership{Member,~IEEE,}%加~为通讯作者
Yan~Guo
\thanks{X. Shen, Y. Guo are with theCollege of Computer Science%脚注,左下角
and Technology, Hangzhou Dianzi University,Hangzhou,
China, 310018. Email: shenxf@hdu.edu.cn,952937617@qq.com.}
\thanks{Xingfa Shen is the correspondingauthor(email:shenxf@hdu.edu.cn).
}
\thanks{Manuscript receivedXXX,XX,2017;revised XXX,XX,2017.
}
}%%%%%%%!!!!!!\thanks{}一定要在\author{}里面,否则,会增加空白第一页
%头注
\markboth{IEEE TRANSACTIONS ON INTELLIGENTTRANSPORTATION SYSTEMS,~Vol.~XXX, No.~XX, 2018}
{Shell \MakeLowercase{\textit{et al.}}:Bare Demo of IEEEtran.cls for IEEE Journals}
\maketitle
%摘要
\begin{abstract}
\input{abstract.tex}
\end{abstract}
%%关键字
\begin{IEEEkeywords}
XXXXXX
\end{IEEEkeywords}
%maketitle
\IEEEpeerreviewmaketitle
%每个5行统计行数
%\linenumbers
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%各个章节 \section{章节名} \label{标签名} \input{章节内容}
\section{Introduction}
\label{section:introduction}
\input{1-introduction}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Related Work}
\label{sec:related_work}
\input{2-related_work}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Main Design}
\label{sec:design}
\input{3-main_design}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Key Mechanisms}
\label{sec:mechanisms}
\input{4-key_mechanisms}
%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Experiments}
\label{sec:experiments}
\input{5-experiments}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Conclusion}
\label{sec:conclusion}
\input{6-conclusion.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%致谢,基金
\section*{Acknowledgment}
This work was supported by基金under编号,
No.123456.
%引用文献,IEEEtran为bib格式
\bibliographystyle{unsrt}%参考文献风格
\bibliography{sxfrefgy}%文献内容,注意@XXXX{“”,””,””,””}
\begin{IEEEbiography}[]{XXXXXX}%最后注明所有作者,照片及生平
XXXX
\end{IEEEbiography}
\begin{IEEEbiography}[{\includegraphics[width=1in,height=1in,clip,keepaspectratio]{XXXX.eps}}]{XX}
XXXX
\end{IEEEbiography}
\end{document}
二:图
1. 转为eps格式,可以用matla
I=imread(XXX.png);
Imshow(I);
在Figure1,中,打开file->渲染->设置分辨率(600)->导出设置,设置名称(XXX.eps)和位置->确定。
2. figure环境格式详解
\begin{figure}[htbp]%浮动格式,h-当前位置,t-顶部,b-底部,p-浮动页,latex自动按这个顺序选择,使得排版的效果尽量好。
\centering%居中
\includegraphics[width=1.0\linewidth]{figures/3.eps}%宽度,按照默认比例设置高,文件位置及名称
\caption{Front-endcontrol software flow chart} \label{fig:QD}%图名,标签
\end{figure}
3. 组图排版,每个保持独立
\begin{figure}%无需[htbp]
\centering
\subfigure[Reader] {\label{fig:DKQ}%子图1名称 { 标签!!!!!
\includegraphics [width=3.0cm]{figures/8.eps}}%设置大小等 } } !!!!
\subfigure[Key label]{ \label{fig:YS}%子图1
\includegraphics[width=3.0cm]{figures/9.eps}}
\subfigure[Lock label]{ \label{fig:SB}%子图1
\includegraphics [width=3.0cm]{figures/10.eps}}
\caption{The device of RFID}%总的名称及标签
\label{fig:Device}
\end{figure}
三:表格
\begin{table}[htbp]%表格位置
\caption{XXXX}%表格名称
\label{table:T57}\small %标签
\centering %居中
\begin{tabular}{c c c c}
\hline%线
\makecell{ } &\makecell{elevator${\rm{\_A}}$} &\makecell{elevator ${\rm{\_B}}$}\\ \hline
\makecell{the 1st floor hall${\rm{\_A}}$} &\makecell{0.5706(0.5786)} &\makecell{0.4773(0.4447)}\\
\makecell{the 1st floor hall ${\rm{\_A}}$}&\makecell{0.6096(0.6011)} &\makecell{0.7811(0.7951)}\\
\makecell{the 1st floor hall ${\rm{\_C}}$}&\makecell{0.3340(0.3692)} &\makecell{0.6449(0.6407)}\\
\makecell{the 1st floor hall ${\rm{\_D}}$}&\makecell{0.5678(0.5708)} &\makecell{0.6008(0.5945)}\\
\hline
\end{tabular}
\end{table}
%makecell{} &makecell{} %将一句话分为任意个部分
四:符号、公式
打开world->插入->对象->对象->mathtype 6.0->写出公式或符号->复制粘贴到tex中->删去前后4个[/\]。
公式:
\begin{equation}
\label{Sv}
{S_V} = \left| {\frac{{{V_1} - {V_2}}}{{{V_1}}}} \right|
\end{equation}
LaTeX编辑数学公式基本语法元素
LaTeX中的数学模式有两种形式:inline 和 display。前者是指在正文插入行间数学公式,后者独立排列,可以有或没有编号。
行间公式(inline):用$...$将公式括起来。
块间公式(displayed),用$$...$$将公式括起来是无编号的形式,还有\[...\]的无编号独立公式形式但Markdown好像不支持。块间元素默认是居中显示的。
各类希腊字母编辑表
常用的包括:\alpha, \beta,\omega分别为α,β,ω. 大写字母\Theta, \Gamma,\Omega为 ΘΘ ,ΓΓ,ΩΩ.
上下标、根号、省略号
上标: ^ 如 x2x2
下标: _ 如 xixi
下标如果多于一个字母或符号,需要用一对 {} 括起来。
根号: \sqrt 如5–√n5n为$\sqrt[n]{5}$
省略号: \dots \cdots分别为 …⋯…⋯
运算符
小的运算符(operator)例如 + - * /等可以直接输入,其他特殊的有\pm \times \div \cdot \cap \cup \geq \leq \neq \approx \equiv
±×÷⋅∩∪≥≤≠≈≡±×÷⋅∩∪≥≤≠≈≡
求和:\sum_1^n: ∑n1∑1n
积分:\int_1^n: ∫n1∫1n
极限:lim_{x \to \infty}: limx→∞limx→∞
分数
分数的表示:\frac{}{}如3838
矩阵与行列式
$$\begin{matrix}…\end{matrix}$$,使用&分隔同行元素,\换行。如:
$$
\begin{matrix}
1 & x & x^2 \\
1 & y & y^2 \\
1 & z & z^2 \\
\end{matrix}
$$1234567
111xyzx2y2z21xx21yy21zz2
行列式
$$
X=\left|
\begin{matrix}
x_{11} & x_{12} & \cdots & x_{1d}\\
x_{21} & x_{22} & \cdots & x_{2d}\\
\vdots & \vdots & \ddots & \vdots\\
x_{m1} & x_{m2} & \cdots & x_{md}\\
\end{matrix}
\right|
$$12345678910
X=∣∣∣∣∣∣∣x11x21⋮xm1x12x22⋮xm2⋯⋯⋱⋯x1dx2d⋮xmd∣∣∣∣∣∣∣X=|x11x12⋯x1dx21x22⋯x2d⋮⋮⋱⋮xm1xm2⋯xmd|
分隔符
各种括号用 () [] { } \langle\rangle 等命令表示,注意花括号通常用来输入命令和环境的参数,所以在数学公式中它们前面要加 \。可以在上述分隔符前面加 \big \Big \bigg \Bigg 等命令来调整大小。
箭头
方程式
\begin{equation}
E=mc^2
\end{equation}123
E=mc2E=mc2
分段函数
$$
f(n) =
\begin{cases}
n/2, & \text{if $n$ is even} \\
3n+1, & \text{if $n$ is odd}
\end{cases}
$$1234567
f(n)={n/2,3n+1,if n is evenif n is oddf(n)={n/2,if n is even3n+1,if n is odd
方程组
$$
\left\{
\begin{array}{c}
a_1x+b_1y+c_1z=d_1 \\
a_2x+b_2y+c_2z=d_2 \\
a_3x+b_3y+c_3z=d_3
\end{array}
\right.
$$123456789
⎧⎩⎨⎪⎪a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3{a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3
常用公式
线性模型
$$h(\theta) = \sum_{j = 0} ^n \theta_j x_j$$
h(θ)=∑j=0nθjxjh(θ)=∑j=0nθjxj
均方误差
$$J(\theta) = \frac{1}{2m}\sum_{i = 0} ^m(y^i - h_\theta (x^i))^2$$
J(θ)=12m∑i=0m(yi−hθ(xi))2J(θ)=12m∑i=0m(yi−hθ(xi))2
批量梯度下降
$$\frac{\partial J(\theta)}{\partial\theta_j}=-\frac1m\sum_{i=0}^m(y^i-h_\theta(x^i))x^i_j $$
∂J(θ)∂θj=−1m∑i=0m(yi−hθ(xi))xij∂J(θ)∂θj=−1m∑i=0m(yi−hθ(xi))xji
推导过程:
$$
\begin{align}
\frac{\partial J(\theta)}{\partial\theta_j}
& = -\frac1m\sum_{i=0}^m(y^i-h_\theta(x^i)) \frac{\partial}{\partial\theta_j}(y^i-h_\theta(x^i)) \\
& = -\frac1m\sum_{i=0}^m(y^i-h_\theta(x^i)) \frac{\partial}{\partial\theta_j}(\sum_{j=0}^n\theta_jx_j^i-y^i) \\
& = -\frac1m\sum_{i=0}^m(y^i-h_\theta(x^i))x^i_j
\end{align}
$$12345678
∂J(θ)∂θj=−1m∑i=0m(yi−hθ(xi))∂∂θj(yi−hθ(xi))=−1m∑i=0m(yi−hθ(xi))∂∂θj(∑j=0nθjxij−yi)=−1m∑i=0m(yi−hθ(xi))xij
————————————————
版权声明:本文为CSDN博主「Nautilus_sailing」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/baidu_38060633/article/details/79183905
原文链接:https://blog.csdn.net/xuwang777/article/details/79162037