固定列長と中央揃えのテキストを持つ表形式

固定列長と中央揃えのテキストを持つ表形式

固定長で各列のテキストを中央揃えにした 2 列の表を作成しようとしています。LaTex ドキュメント (p. 159) に例が見つかりましたが、コンパイルしようとすると機能しません。これが私のコードです:

\documentclass[12pt, openright, twoside, a4paper]{book}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,french]{babel}
\newcommand{\bb}{\textbf}
\begin{document}

\begin{tabular}{|>{\centering}p{0.1\linewidth}|p{0.15\linewidth}|}
\hline
\textbf{SI} & \textbf{Gaussian} \tabularnewline
\hline \hline
$\bb{E}$ & $\bb{E}$ \tabularnewline
$\bb{D}$ & $\bb{D} / 4 \pi$ \tabularnewline
$\bb{H}$ & $c \bb{H} / 4 \pi$ \tabularnewline
$\bb{B}$ & $\bb{B} / c$ \tabularnewline
$\varepsilon_0$ & $1 / 4 \pi$ \tabularnewline
$\mu_0$ & $4 \pi / c^2$ \tabularnewline
$\rho_e$ & $\rho_e$ \tabularnewline
$\bb{J}$ & $\bb{J}$ \tabularnewline
\hline
\end{tabular}

\end{document}

次のような結果になります:

./test.tex:10: Use of \@array doesn't match its definition.
\new@ifnextchar ...served@d = #1\def \reserved@a {
                                              #2}\def \reserved@b {#3}\f...
l.10 ...ering}p{0.1\linewidth}|p{0.15\linewidth}|}

? 

何か分かりますか?どこが間違っているのでしょうか?

答え1

(この投稿が「公式」な回答を受け取ったとみなされるよう、以前のコメントを回答として投稿しました)

あなたが報告した(確かにほとんど理解できない)エラー メッセージは、LaTeX が次のコード スニペットを処理しようとしているときに発行されます。

>{\centering}p{0.1\linewidth}

LaTeX がこの命令を処理できるようにするには、arrayパッケージをロードする必要があります。arrayパッケージをロードすると、サンプル コードは問題なくコンパイルされます。

関連情報