latex 初探

Latex 總結

原創:https://blog.csdn.net/xuwang777/article/details/79162037/
一: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: [email protected],[email protected].}

\thanks{Xingfa Shen is the correspondingauthor(email:[email protected]).

}

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章