Windows中Latex應用排版、常用引用、公式、表格等
\documentclass[journal]{IEEEtran}%引用cls檔案,定義排版得內容;
\usepackage{amsmath}%巨集包引用
\usepackage{amsthm}%巨集包引用
\usepackage{amssymb}%巨集包引用
\usepackage{graphicx}%巨集包引用
\usepackage{subfig}
\usepackage{multirow}
\usepackage[ruled]{algorithm2e}
\usepackage{setspace}
\usepackage{mathrsfs}
\usepackage{color}
\renewcommand{\algorithmcfname}{ALGORITHM}
%巨集包引用
一、插入公式
(1)普通公式:
\begin{equation}
C = TR \xrightarrow[transformation]{inverse} C^{-1}=T^{-1}R ^{-1}
\end{equation}
(2)插入矩陣:
\begin{equation}
R_{x}(\beta )=\left[ \begin{array}{cccc}
cos\beta &0 & -sin\beta &0\\
0& 1 & 0 & 0\\
sin\beta & 0 & cos\beta& 0\\
0 & 0 & 0& 1
\end{array}
\right ]
\end{equation}
(3)文章中插入公式
$p_{1}$($x_{1}$,$y_{1}$, 0), $p_{2}$($x_{2}$,$y_{2}$, 0), $p_{3}$($x_{3}$ ,$y_{3}$, 0)
使用$$中間寫公式內容;
(4)論文中顯示符號例如%,採用:\%;
二、插入單張圖片
\begin{figure}[ht]
\centering
\includegraphics[width=5.7cm]{fig11.png}
\caption{ Net crack area calculation.}
\label{fig:label}
\end{figure}
三、插入多張圖片並行
\begin{figure}[htbp]
\centering
\begin{minipage}[t]{3cm}%並排放兩張圖片,每張佔頁面的0.5,下同。
\includegraphics[width=3cm]{fig10a.png}
%\caption*{a.The shooting direction is nearly parallel to the road direction}
\label{fig:label}
\end{minipage}
\begin{minipage}[t]{3cm}%並排放兩張圖片,每張佔頁面的0.5,下同。
\includegraphics[width=3cm]{fig10b.png}
%\caption*{b.The shooting direction is nearly vertical to the road direction.}
\label{fig:label}
\end{minipage}
\caption{The inclination angle and rotation angle of smartphone when taking photos.}
\end{figure}
四、一些引用
1、參考文獻在論文內引用:\cite{1},或者\cite{3, 4, 5, 6, 7}
參考文獻形式:
\bibitem{8}
Rana, R. K., Chou, C. T., Kanhere, S. S., Bulusu, N., & Hu, W. (2010, April). Ear-phone: an end-to-end participatory urban noise mapping system. In Proceedings of the 9th ACM/IEEE International Conference on Information Processing in Sensor Networks (pp. 105-116). ACM.
參考文獻形式查詢:就是利用谷歌學術,在谷歌學術搜尋論文,然後選擇合適得國標或者英文得格式
搜尋結果:
上面有三種形式可以選擇,如果有特殊要求,需要稍微做調整;
五、論文內容標識
(1)黑點標識
\begin{itemize}
\item 黑點標識得部分
\end{itemize}
(2)粗體文字
\textbf{需要粗體得文字}
(3)斜體得變數標識
\emph{需要斜體得部分}
六、如果需要重新引入cls檔案得操作步驟
1、下載.sty檔案/.cls檔案
2、找到Ctex安裝路徑中存放.sty檔案/.cls檔案的地方
一般是在CTEX\MiKTeX\tex\latex資料夾中,每一個.sty檔案/.cls檔案都存放在與其同名的資料夾中。所以我們要先新建同名資料夾,然後將第一步存放的.sty檔案/.cls檔案置於該同名資料夾下。
3、在Ctex中更新資料包
選擇miktex options,如下圖所示
然後選擇refresh,如下圖所示