Latex第一次总结

一: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}