Latex三线表格制作及相关问题
\onecolumn %讓接下來的內容變為新一頁單欄。
\begin{multicols}{2} %開始雙欄顯示
...
\end{multicols}
\noindent %取消某段首行縮進
接下來是latex語言制作三線表格:
\begin{center} \vbox{\centering{\small 表1\quad 評分函數匯總 \\ Table 1 \quad Summary of scoring functions } \vskip2mm \renewcommand{\baselinestretch}{1.2} {\footnotesize\centerline{\tabcolsep=15pt\begin{tabular}{m{30pt}<{\centering}m{150pt}<{\centering}m{200pt}<{\centering}m{30pt}<{\centering}} \toprule 年份 &{文獻題目} & 概述 & 引用\\\hline 1995 & \multicolumn{1}{b{5cm}}{Decision-theoretic troubleshooting: A framework for repair and experiment} & \multicolumn{1}{b{5cm}}{Microsoft公司根據貝葉斯網絡理論,首先建立了打印機故障診斷模型,結合每個故障源發生故障的概率及維修其維修的成本,}從而設計出最優的維修方法。& [80] \\ \hline 2001 & The sacso methodology for troubleshooting complex systems & 惠普公司對打印機故障診斷模型進行改進,并提出SASCO打印機診斷模型結構,可以同時推算多故障源問題。 & [81] \\ \hline\end{tabular}}}} \end{center}其中:
\vbox %是在制作表頭時插入“空白”行,?\centering %令表頭居中,\renewcommand{\baselinestretch}{1.2} %調整表格行上下間距,\footnotesize %設置字體大小,\centerline %讓文本居中(不知道起沒起作用),\tabcolsep=15pt %調整表格列左右間距。
接下來是重點:
\begin{tabular}{m{30pt}<{\centering}m{150pt}<{\centering}m{200pt}<{\centering}m{30pt}<{\centering}}
這句話中\begin{tabular}%開始繪制表格,
m{30pt}%讓表格中內容垂直上下對齊,同時設置第一列中內容允許的最大列左右間距。
注意:要想調用“m”需要引用\usepackage{array}!!!
<{\centering}%讓表格中內容居中對齊(如果不寫這句話,內容會默認左對齊!),這里制作的是4列所以要寫4次“m{30pt}<{\centering}”。
\toprule %三線表格第一行(一條加粗線)
\hline %插入一條細線
\multicolumn{1}{b{5cm}}{...} %自定義某格內容的垂直對齊方式,以及最大左右間距
注意:要想調用“\multicolumn”需要引用\usepackage{array}!!!
總結
以上是生活随笔為你收集整理的Latex三线表格制作及相关问题的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 基于IOS的仿微博系统
- 下一篇: 神州数码交换机CS6200命令(信息安全