ACM MM会议-latex模板使用
ACM MM會議-latex模板使用
- 模板的使用
- 公式的編輯
- 行內公式
- 行間公式
- 編號公式
- 單行
- 多行
- 圖片插入
- 上下組合圖
- 左右組合圖
- 插入表格
- 還有個圖的問題
latex模板踩坑記錄
模板的使用
投稿是ACM 下的 multi mudie 會議 , 使用sample-sigconf模板。新建一個文件夾將acmart-master中acmart.cls 、acmart.bib、ACM-Reference-Format.bst及samples文件夾下sigconf拷入,編譯即可。報錯是因為沒有考入sample下的圖片sample-franklin.png。另外。Texstudio的編譯改為Xelatex。
之后,復制粘貼就行。
公式的編輯
公式分為兩種:行內和行間。https://blog.csdn.net/beta_2187/article/details/79980281
這篇博客對公式插入做了整理。下面是對sample-sigconf模板的總結。
首先說需要注意的問題.
1 數學公式中有時候會出現文字(中文或英文),
需要將文字用命令 \text{…} 包起來. 如果將文字不加處理, 直接寫到公式里面會出現如下問題:https://blog.csdn.net/beta_2187/article/details/79980281
2 上下標
\max_{k=1,2,…,K} 上下結構
max_{k=1,2,…,K} 左右結構
3 數學希臘字符
https://jingyan.baidu.com/article/4b52d702df537efc5c774bc9.html
行內公式
第一種方法:
\begin{math}
\lim_{n\rightarrow \infty}x=0 %%此處插入公式,公式具體符號自己查,這邊只是插入公式示例。
\end{math},
第二種方法:$…$來表達. $前后一般要有空格, 除非公式后面有標點符號.
行間公式
行間公式有編號與不變號:
編號公式
單行
這是單行編號:
\begin{equation}
\lim_{n\rightarrow \infty}x=0
\end{equation}
這是單行不編號:
\begin{displaymath}
\sum_{i=0}^{\infty} x + 1
\end{displaymath}
多行
多行不編號
\begin{displaymath}
\hat{p}{ij} =\begin{cases}
p{ij}, & \text{ififif } y_{ij}=1;\
1-p_{ij}, & \text{otherwiseotherwiseotherwise}
\end{cases}
\end{displaymath}
多行編號
參考單行
參考博客:https://blog.csdn.net/beta_2187/article/details/79980281
圖片插入
這里只說明組合圖
在原模板中加入\usepackage{subfigure}
上下組合圖
\begin{figure}[h]
\centering
\subfigure[子標]{
\begin{minipage}[t]{1\linewidth}
\centering
\includegraphics[width=\linewidth]{crowdhuman ground truth}
%\caption{fig1}
\end{minipage}%
}%
%%空行注意空行
\subfigure[子標]{
\begin{minipage}[t]{1\linewidth}
\centering
\includegraphics[width=\linewidth]{MAPD detector results}
%\caption{fig2}
\end{minipage}%
}%
\centering
\caption{總標}
\end{figure}
左右組合圖
\begin{figure}[h]
\centering
\subfigure[子標]{
\begin{minipage}[t]{1\linewidth}
\centering
\includegraphics[width=\linewidth]{crowdhuman ground truth}
%\caption{fig1}
\end{minipage}%
}%
\subfigure[子標]{
\begin{minipage}[t]{1\linewidth}
\centering
\includegraphics[width=\linewidth]{MAPD detector results}
%\caption{fig2}
\end{minipage}%
}%
\centering
\caption{總標}
\end{figure}
插入表格
插入表格
\begin{table}
\caption{}
\label{tab:cmp}
\begin{tabular}{cc|cc|c}
\toprule
person/image ?\geqslant?&\multicolumn{2}{c}{CityPersons} &\multicolumn{2}{c}{CrowdHuman} \
\midrule
1 & 248&83.4%&15000&100% \
2 & 2082&70%&15000&100% \
3 & 1741&58.5%&14996&100% \
\bottomrule
\end{tabular}
\end{table}
合并列\multicolumn{2}{c}{CityPersons}注一下這里的 分列都是通過合并操作完成的
\usepackage{color}
還有個圖的問題
經常在word中畫圖的同學,得先先在電腦里面安裝好一個Adobe acrobat professional,然后將word畫布里面的圖復制出來放到一個新建的word文件里,這一步很關鍵,不然雖然能夠導出正確的pdf,但是用pdf生成eps時會出錯。將新建的word文件里的圖選擇另存為pdf格式,然后用Adobe acrobat professional打開生成好的pdf圖,選擇工具里面的高級編輯工具,將圖片周圍空白的地方裁減掉,然后另存為eps格式。
然后保存圖片的時候一直報錯,異常和內存不夠。我換了smart pdf 就解決了。https://smallpdf.com/cn/pdf-converter
參考博客在文中,還有一些忘記出處,若博主看到望提醒一下,謝謝。
總結
以上是生活随笔為你收集整理的ACM MM会议-latex模板使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 嵌入式学习笔记7 WIFI相关1——WI
- 下一篇: 海迅咨询推荐的读书单