0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Latex For Mac 表の基本

Last updated at Posted at 2021-07-15

目次へ戻る

表はtabularで定義します。横線は\hlineで指定し、{l c|r}の列指定の|で指定しています。列指定では、l(左寄せ)、c(中央:センタリング)、r(右寄せ)を項目の数だけ記述します。
\centeringで表を中央寄せ(センタリング)にしています。
縦線、横線は最小限に

  \begin{table}[htbp]
    \centering
    \begin{tabular}{l c|r} \hline
      商品名 & 商品コード & 単価 \\ \hline \hline
      液晶テレビ & TV50 & 100,000 \\
      電子レンジ & ER101 & 10,000 \\ \hline
    \end{tabular}
    \caption{タイトル}
    \label{ラベル}
  \end{table}

シンプルな表

目次へ戻る

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?