Posted by: smallonely | April 3, 2008

Table & Tabular in LaTeX

哎呀… 我只是想畫一個簡單的圖表而已…

一小段程式碼, 用類似 tab 鍵的方式定位就好,

類似這樣… 外面再用一個box框住

研究了很久, 還在想我要怎麼畫外框…
也嘗試了 \hspace 和 \hfill,
結果try了一個小時才搞定~~

一個表格搞那麼複雜幹嘛😄

\begin{table}[h]
\centering
\begin{tabular} {|lll|}
\hline
\textbf{modulepar}\{ & & \\
\hspace{20pt}\textbf{charstring} & REMOTE\_IP\_ADDRESS & := “10.10.10.1″;\\
\hspace{20pt}\textbf{charstring} & LOCAL\_IP\_ADDRESS & :=“10.10.10.2″; \\
……
\hline
\end{tabular}
\end{table}

reference: Tables in Latex


Responses

  1. 哈哈,latex畫表格的指令的確很麻煩,這讓我想起以前實驗室有個學弟他就乾脆直接用visio畫表格,然後存成eps格式的圖檔,在latex這邊再把圖檔叫進來就ok了。

  2. 哈哈哈, 真是偷懶的作法, 不過也值得參考:D😀😀

  3. 你用latable就可以了,还支持latex代码输入。

  4. thank you seasoul


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: