尊敬的讀者您好:筆者很高興自己的文章能被閱讀,但原創與編輯均不易,所以轉載請必須註明本文出處並附上本文地址超鏈接以及博主博客地址:https://blog.csdn.net/vensmallzeng。若覺得本文對您有益處還請幫忙點個贊鼓勵一下,筆者在此感謝每一位讀者,如需聯繫筆者,請記下郵箱:[email protected],謝謝合作!
1.在latex中直接編譯PM_{2.5}會出錯,一般需要加$PM_{2.5}$, 但此時編譯後顯示的字體是斜體,所以需要$\rm PM_{2.5}$變成正體。
2.縮進問題:(1)取消首行縮進:\noindent;(2)設置從第1行之後開始懸掛縮進:\hangafter=1;(3)設置懸掛縮進量
居中、左對齊、右對齊:\setlength{\hangindent}{2em}
3.有些期刊的模板中如(IEEE Access),編輯參考文獻時,有時會出現期刊名的斜體無效,此時應該是''fontspec'' package的問題,使得\emph 無效了,可以在前言中加入命令 ''\let\emph\textit'' 就可以了。
4.一般數學公式的編輯,建議先在mathtype中編輯好,然後在複製粘貼到latex中。
5.latex常見表的模板:
\begin{table*}[!t]
%\vspace{0.02cm}
\caption{The calculation results of PCC and SCC between $\rm PM_{2.5}$ concentration and dominant factors.}
\centering
\begin{tabular}{c|c|c|c}
\toprule
Correlation Factor & PCC & SCC & Fitting Equation \\
\midrule
Visibility & - & -& $\rm y=ln(x)+3.61$ \\
Wind Speed & - & - & $\rm y=ln(x)+38.1$\\
$\rm PM_{10}$ & - & - & $\rm y=x-9.81$\\
$\rm NO_2$ & - & & $\rm y = 6.67x}}$\\
$\rm SO_2$ & - & - & $\rm y=2.476$\\
$CO$ & - & - & $\rm y=49.979$\\
\bottomrule
\end{tabular}\\
\footnotesize{$ -$ The value is not calculated in this paper; y stands for $\rm PM_{2.5}$ concentration; x represents dominant factor}
\end{table*}
5.latex常見圖的模板:
\begin{figure}[!t]
\centering
\vspace{0.25cm}
\includegraphics[width=3.8in]{14.png}
\caption{Updating process of rule nodes of MISA-SOFNN and SOG-SASOFNN}
\label{fig:graph}
%\vspace{-0.5cm}
\end{figure}
6.latex常見算法僞代碼模板
\begin{algorithm}
\caption{My algorithm}\label{euclid}
\begin{algorithmic}[1]
\Procedure{MyProcedure}{}
abc
\State $\textit{stringlen} \gets \text{length of }\textit{string}$
\State $i \gets \textit{patlen}$
\BState \emph{top}:
\If {$i > \textit{stringlen}$} \Return false
\EndIf
\State $j \gets \textit{patlen}$
\BState \emph{loop}:
\If {$\textit{string}(i) = \textit{path}(j)$}
\State $j \gets j-1$.
\State $i \gets i-1$.
\State \textbf{goto} \emph{loop}.
\State \textbf{close};
\EndIf
\State $i \gets i+\max(\textit{delta}_1(\textit{string}(i)),\textit{delta}_2(j))$.
\State \textbf{goto} \emph{top}.
\EndProcedure
\end{algorithmic}
\end{algorithm}
日積月累,與君共進,增增小結,未完待續。