日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

Latex 图片及表格排列代码

發(fā)布時(shí)間:2023/12/15 编程问答 36 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Latex 图片及表格排列代码 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

Latex 圖片及表格排列代碼

    • 前言
  • 一、圖片排版
    • 1. 雙欄論文中,兩張圖片橫放
    • 2. 單欄格式論文中的兩張圖片并列橫放
    • 3. 雙欄格式論文中的兩張圖片豎放
  • 二、表格排版
    • 1. 單欄論文,表格排列
    • 2. 雙欄論文,單欄放置表格
    • 2. 雙欄論文,雙欄橫置表格
    • 3. 雙欄論文,雙欄橫置表格的另一種形式
  • 總結(jié)

歡迎學(xué)習(xí)交流!
郵箱: z…@1…6.com
網(wǎng)站: https://zephyrhours.github.io/

前言

論文編輯和排版中,格式是非常重要的,使用word寫(xiě)做的科研工作者對(duì)這個(gè)問(wèn)題肯定深有體會(huì),筆者也是在被論文中各種格式和參考文獻(xiàn)問(wèn)題折磨后,轉(zhuǎn)投了Latex陣營(yíng)。這是一個(gè)很好的排版工具,類(lèi)似于Markdown,通過(guò)簡(jiǎn)單的命令就可以寫(xiě)出格式非常漂亮的論文,可謂是科研工作中的一大利器。很多新入門(mén)的小伙伴也許對(duì)這個(gè)編輯器中關(guān)于圖片和表格的創(chuàng)建帶有一絲疑惑,下面筆者把自己關(guān)于圖片和表格創(chuàng)建的latex 代碼分享給大家,希望對(duì)您的工作有所幫助。

一、圖片排版

1. 雙欄論文中,兩張圖片橫放

Latex文章開(kāi)通需要導(dǎo)入的包如下:

\usepackage{subfigure}

具體代碼如下:

\begin{figure}[tp]\subfigure[\scriptsize{}]{\label{Fig:subfig:CatIsland}\includegraphics[width=1.63 in]{CatIsland.eps}}\subfigure[\scriptsize{}]{\label{Fig:subfig:CatIsland-gt}\includegraphics[width=1.63 in]{CatIsland-gt.eps}}\caption{Illustration of the Cat Island dataset: (a) pseudo color (RGB: 130, 70, 15); (b) the ground-truth map.}\label{CatIsland_dataset} \end{figure}

具體效果如下:

紅色方框中的圖像就是本次插入的圖像,這樣就可以實(shí)現(xiàn)雙欄排版的論文中的兩個(gè)圖像并列插入的效果。

2. 單欄格式論文中的兩張圖片并列橫放

\begin{figure}[!t]\centering\begin{minipage}[c]{0.4\textwidth}\centering\includegraphics[width=2.2in]{SanDiego_RGB.eps}\centerline{(a)}\end{minipage}\hspace{0.02\textwidth}\begin{minipage}[c]{0.4\textwidth}\centering\includegraphics[width=2.2in]{SanDiego_RGB_GT.eps}\centerline{(b)}\end{minipage}\caption{Illustration of the San Diego dataset: (a) pseudo color (RGB: 22, 13, 4); (b) the ground-truth map.}\label{SanDiego_dataset} \end{figure}

具體效果如下:

3. 雙欄格式論文中的兩張圖片豎放

有時(shí)候我們的圖片比較大,而雙欄中每一欄都相對(duì)較小,這時(shí)候,我們可以選擇兩張圖片的豎直排列,具體代碼如下:

\begin{figure}[!t]\centering\begin{minipage}[c]{0.4\textwidth}\centering\includegraphics[width=2.8 in]{Box_LosAngeles.eps}\centerline{(a)} \end{minipage}\hspace{0.02\textwidth}\begin{minipage}[c]{0.4\textwidth}\centering\includegraphics[width=2.8 in]{ROC_LosAngeles.eps}\centerline{(b)}\end{minipage}\caption{ROC curves of different methods in Los Angeles dataset: (a) Statistical separability analysis; (b) ROC curves.}\label{LosAngeles_Results} \end{figure}

下面我們來(lái)看一下效果:

二、表格排版

1. 單欄論文,表格排列

\begin{table}[!t]\footnotesize\caption{AUC values of different anomaly detectors using three experimental datasets.}\label{AUC_Values}\tabcolsep 21pt %space between two columns. ó?óúμ÷??áD???à\begin{tabular*}{\textwidth}{cccccc}\topruleMethods & GRX & LRX & RPCA & CRD & CRDBPSW \\\hlineGulfport & 0.95260 & 0.96940 & 0.95348 & 0.95992 & 0.97913\\SpecTIR & 0.99138 & 0.99846 & 0.99827 & 0.99830 & 0.99909\\San Diego & 0.88854 & 0.84557 & 0.91896 & 0.99635 & 0.99873\\\bottomrule\end{tabular*} \end{table}

具體效果:

2. 雙欄論文,單欄放置表格

\begin{table} % twocolumn \begin{table*}\footnotesize\centering\caption{AUC values of various anomaly detectors using different datasets.}\begin{tabular}{cccccc}\hlineMethods & GRX & LRX & CRD & RPCA-RX & 2S-GLRT \\\hlineLos Angeles & 0.84038 & 0.98207 & 0.96809 & 0.84737 & \bf{0.98735} \\Cat Island & 0.98072 & 0.99936 & 0.99458 & 0.98320 & \bf{0.99968} \\Texas Coast & 0.99065 & 0.99691 & 0.99404 & 0.99265 & \bf{0.99697} \\Pavia Centra & 0.95380 & 0.95973 & 0.94072 & 0.95906 & \bf{0.98676} \\Cri & 0.91342 & 0.75251 & 0.87267 & 0.91478 & \bf{0.95403} \\\hline\end{tabular}\label{Tab:AUC_Values} \end{table} % twocolumn \end{table*}

具體效果如下:

2. 雙欄論文,雙欄橫置表格

進(jìn)行雙欄顯示其實(shí)很簡(jiǎn)單,與上述代碼一樣,只有一個(gè)地方改動(dòng),具體如下:

\begin{table*} ... \end{table*}

注意:這里只是在單欄放置的表格代碼中,加入了一個(gè)* 即可。也就是說(shuō)表格單欄放置還是雙欄放置的區(qū)別只有一個(gè) 星號(hào)。下面來(lái)看一個(gè)例子:

\begin{table*} % onecolumn \begin{table}\footnotesize\centering\caption{AUC values of various anomaly detectors using different datasets.}\begin{tabular}{cccccc}\hlineMethods & GRX & LRX & CRD & RPCA-RX & 2S-GLRT \\\hlineLos Angeles & 0.84038 & 0.98207 & 0.96809 & 0.84737 & \bf{0.98735} \\Cat Island & 0.98072 & 0.99936 & 0.99458 & 0.98320 & \bf{0.99968} \\Texas Coast & 0.99065 & 0.99691 & 0.99404 & 0.99265 & \bf{0.99697} \\Pavia Centra & 0.95380 & 0.95973 & 0.94072 & 0.95906 & \bf{0.98676} \\Cri & 0.91342 & 0.75251 & 0.87267 & 0.91478 & \bf{0.95403} \\\hline\end{tabular}\label{Tab:AUC_Values} \end{table*} % onecolumn \end{table}

具體看一下單欄放置表格的效果:

3. 雙欄論文,雙欄橫置表格的另一種形式

\begin{tabular}{|c||c|c|c|c|c|c|c|}\hlineAlgorithms& GRXD & LRXD & SRX-Segmented & RPCA-RX & \textcolor[rgb]{1.00,0.00,0.00}{LRASR} & \textcolor[rgb]{1.00,0.00,0.00}{LSMAD} & Proposed \\\hlineSpecTIR & 0.18736 & 0.20457 & 347.92260 & 15.37072 & 249.75547 & 26.029437 & 78.66312 \\\hlineWTC & 0.34108 & 0.36734 & 775.74485 & 43.40107 & 408.58569 & 67.354346 & 268.33214 \\\hlineHYDICE & 0.04777 & 0.34789 & 86.36774 & 2.57969 & 18.692069 & 3.960207 & 6.85247 \\\hline \end{tabular} \label{Tab:TIMES} \end{table*}

具體效果如下:

總結(jié)

在實(shí)際使用中,作者可以根據(jù)不同的需求來(lái)選擇不同的代碼,進(jìn)行測(cè)試,在不同期刊論文的latex模板中一般都內(nèi)置了一些簡(jiǎn)單的說(shuō)明,代碼風(fēng)格也是稍微有些差異,這些根據(jù)實(shí)際需求,自己選擇和取舍。

總結(jié)

以上是生活随笔為你收集整理的Latex 图片及表格排列代码的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。