一般来说投稿的期刊或者会议官网都会给出参考的latex模板,根据模板来进行更改省去了很多麻烦,下面是我总结的比较容易出现问题的地方。以下为本人通过实际使用的使用的示例
首先是我最常用的在线Latex编译器Overleaf, Online LaTeX Editor
代码中%为注释意
目录
插入图片
\begin{figure}[H]
\begin{adjustwidth}{-\extralength}{0cm}
\centering
\includegraphics[width=0.5\textwidth]{7.png}
\end{adjustwidth}
\caption{Experimental environment and layout.\label{fig1}}
\end{figure}
插入左右图片
\begin{figure}[H]
\centering
\begin{minipage}[t]{0.48\textwidth}%指定子图片所占区域的大小
\centering
\includegraphics[width=0.9\textwidth]{11(a).png}
\begin{center}
(a)%第一张图片单独的名称
\end{center}
\end{minipage}
\begin{minipage}[t]{0.48\textwidth}
\centering
\includegraphics[width=0.9\textwidth]{11(b).png}
\begin{center}
(b)%第二张图片单独的名称
\end{center}
\end{minipage}
\caption{上面插入的两个图片的总体介绍.\label{fig1}}
\end{figure}
插入公式
\begin{linenomath}
\begin{equation}
x=\frac{\sum_{i=1}^{10} x_i}{10}%frac表示后面大括号内的两个数作分式
\end{equation}
\end{linenomath}
插入表格
\begin{table}[H]
\newcolumntype{C}{>{\arraybackslash}X}
\begin{tabularx}{\textwidth}{C}
\toprule
\textbf{Algorithm 5 Coordinate filling}\\
\midrule
1.for i in range(12):\\%\\\表示换行
2. xlist_a.append(float(xlist_s[i]) / num)\\
3. ylist_a.append(float(ylist_s[i]) / num)\\
4.result=list(zip(xlist_a,ylist_a))\\
5.for i in range(len(result)):\\
6. result[i]=str(result[i])\\
\bottomrule
\end{tabularx}
\end{table}
引用参考文献
在网上我看了很多引用参考文献的方法,最后算是自己总结出了下面的引用参考文献的方法
\begin{adjustwidth}{-\extralength}{0cm}
\begin{thebibliography}{999}
\reftitle{References}%这个是标题
\nocite{*}
\bibliography{refer}%已经保存下来的bib文件的名字
\bibliographystyle{unsrt.bst}
\end{adjustwidth}
\end{document}