LaTeX 中使兩張表格並排

 

在使用 LaTeX寫論文或者畫海報的時候,但願兩張較小的表格能夠並排,(通常狀況的LaTeX插入兩張圖片是上下佈局的)佈局

查找了一下,相關的例子以下:url

\begin{minipage}{\textwidth} \begin{minipage}[t]{0.45\textwidth} \centering \makeatletter\def\@captype{table}\makeatother\caption{表格標題1} \begin{tabular}{cccc} 表格內容 \end{tabular} \end{minipage} \begin{minipage}[t]{0.45\textwidth} \centering \makeatletter\def\@captype{table}\makeatother\caption{表格標題2} \begin{tabular}{cccc} 表格內容 \end{tabular} \end{minipage} \end{minipage}

 

\begin{minipage}{\textwidth} \begin{minipage}[t]{0.45\textwidth} \centering \makeatletter\def\@captype{table}\makeatother\caption{title1} \begin{tabular}{ccc} \hline n & L  & $L+n$ \\ \hline 0  & 1  & 1 \\ 1  & 3  & 4 \\ 2  & 5  & 7 \\ 3  & 7  & 10\\ 4  & 9  & 13 \\ 5  & 11 & 16 \\ 6  & 13 & 19\\ 7  & 15 & 22 \\ 8  & 17 & 25 \\ 9  & 19 & 28\\ 10 & 21 & 31 \\ 11 & 23 & 34\\ 12 & 25 & 37 \\ 13 & 27 & 40 \\ 14 & 29 & 43 \\ 15 & 31 & 46 \\ 16 & 33 & 49 \\ 17 & 35 & 52\\ \hline \end{tabular} \end{minipage} \begin{minipage}[t]{0.45\textwidth} \centering \makeatletter\def\@captype{table}\makeatother\caption{title2} \begin{tabular}{ccc} \hline n & L  & $L+n$ \\ \hline 0  & 1  & 1 \\ 1  & 3  & 4 \\ 2  & 5  & 7 \\ 3  & 7  & 10\\ 4  & 9  & 13 \\ 5  & 11 & 16 \\ 6  & 13 & 19\\ 7  & 15 & 22 \\ 8  & 17 & 25 \\ 9  & 19 & 28\\ 10 & 21 & 31 \\ 11 & 23 & 34\\ 12 & 25 & 37 \\ 13 & 27 & 40 \\ 14 & 29 & 43 \\ 15 & 31 & 46 \\ 16 & 33 & 49 \\ 17 & 35 & 52\\ \hline \end{tabular} \end{minipage} \end{minipage}

 

 

【Reference】spa

一、關於Latex並排兩張表格的解決方案.net

相關文章
相關標籤/搜索