MCM Latex模闆分享
我的環境:win10 + sublime 3 + CTex
一年一度的美賽馬上到了,最近在學習Latex中發現了大神寫好的模闆,自己加了一點東西,實作了圖檔的插入、表格的添加等功能,在比賽中隻需要添加内容,一篇排版優秀的paper即可形成。廢話不多說了,先來看一下效果:

具體操作流程:
本着不重複造輪子的思想,我會把每一步當中優秀的文章放出來供大家參考:
1.sublime安裝及插件
村山青木的部落格
趕時間的話把 Package Control 安完後直接進入下一步吧。
2.CTex 安裝及與sublime聯合配置
劉果的知乎
接下來需要安裝一下大神的package。
3.下載下傳大神的庫并同步到ctex的庫中
大神的部落格
安裝.sty檔案
4.最後是實作圖檔插入、表格插入的一點代碼塊
%在開頭時要加上
\usepackage{amsmath} %使用數學包
\usepackage{graphicx} %使用圖檔包
\usepackage[table,xcdraw]{xcolor} %生成表格需要的包
%% 插入圖檔
\begin{figure}[ht]
\centering
\includegraphics[width = .8\textwidth]{your picture name}
\caption{this is a figure demo}
\label{fig:label}
\end{figure}
%% 插入雙欄圖檔
\begin{figure}[h]
\begin{minipage}[t]{0.4\linewidth}%并排放兩張圖檔,每張占行的0.4,下同
\centering %插入的圖檔居中表示
\includegraphics[width=1.2\textwidth]{your picture name}
\caption{this is figure2.}%圖檔的名稱
\label{fig:liuchengtu1}%标簽,用作
\end{minipage}
\hfill
\begin{minipage}[t]{0.4\linewidth}
\centering
\includegraphics[width=1.2\textwidth]{your picture name}
\caption{this is figure3.}%圖檔的名稱
\label{fig:liuchengtu2}
\end{minipage}
\end{figure}
%% 插入表格(這個是産生示例表格的代碼)
\begin{table}[]
\centering
\caption{Comparision of the three algorithms}
\begin{tabular}{|
>{\columncolor[HTML]{FFFFFF}}l |
>{\columncolor[HTML]{FFFFFF}}c |
>{\columncolor[HTML]{FFFFFF}}c |
>{\columncolor[HTML]{FFFFFF}}c |
>{\columncolor[HTML]{FFFFFF}}c |}
\hline
\multicolumn{1}{|r|}{\cellcolor[HTML]{FFFFFF}\textbf{}} & \multicolumn{1}{l|}{\cellcolor[HTML]{FFFFFF}\textbf{algorithm1}} & \multicolumn{1}{l|}{\cellcolor[HTML]{FFFFFF}\textbf{algorithm2}} & \multicolumn{1}{l|}{\cellcolor[HTML]{FFFFFF}\textbf{algorithm3}} & \multicolumn{1}{l|}{\cellcolor[HTML]{FFFFFF}\textbf{algorithm4}} \\ \hline
\textbf{property1} & \textbf{89\%} & \textbf{43\%} & \textbf{79\%} & \textbf{68\%} \\ \hline
\textbf{property2} & \textbf{36\%} & \textbf{79\%} & \textbf{36\%} & \textbf{100\%} \\ \hline
\textbf{property3} & \textbf{38\%} & \textbf{65\%} & \textbf{90\%} & \textbf{87\%} \\ \hline
\end{tabular}
\end{table}
發現了一款很厲害的表格生成器:
表格生成器
祝大家美賽成功!