私は LaTeX で 3 列の環境を使用していますtabular
。縦線を使用して列 1 と列 2、3 を分離したいと考えています。
現時点では、各行に個別に垂直線を作成することしかできず、その結果、行ごとに線が一致しません。
\begin{table}{ht}
\caption{Model Input Information: Materials}
\centering
\begin{tabular}{c c c}
\hline\hline
Available Materials \vline & Material Input Parameters & Description \\
\hline
Fused Silica (delta eV = 9) & alpha & Avalanche Coefficient [$cm{^2}$/J] \\
Fused Silica (delta eV = 7.5) & delta eV & Material Band Gap [eV] \\
GaAs & me & Effective Electron Mass [kg] \\
ZnSe & n0 & Linear Refractive Index \\
Ge & n2 & Non-Linear Refractive Index \\
$HfO_2$ & T & Effective Decay Constant [fs] \\
$TiO_2$ & & \\
$Ta_2O_5$ & & \\
$Al_2O_3$ & & \\
$SiO_2$ & & \\
\hline
\end{tabular}
\label{table:MaterialInputs}
\end{table}
最初の行にあるのは、\vline
私が当初どのようにそれを実行しようとしていたかを示すためです。
答え1
|
表の書式指定のA は垂直線を意味します。
\documentclass{article}
\begin{document}
\begin{table}[ht]
\caption{Model Input Information: Materials}
\centering
\begin{tabular}{c | c | c}
\hline\hline
Available Materials & Material Input Parameters & Description \\
\hline
Fused Silica (delta eV = 9) & alpha & Avalanche Coefficient [$cm{^2}$/J] \\
Fused Silica (delta eV = 7.5) & delta eV & Material Band Gap [eV] \\
GaAs & me & Effective Electron Mass [kg] \\
ZnSe & n0 & Linear Refractive Index \\
Ge & n2 & Non-Linear Refractive Index \\
$HfO_2$ & T & Effective Decay Constant [fs] \\
$TiO_2$ & & \\
$Ta_2O_5$ & & \\
$Al_2O_3$ & & \\
$SiO_2$ & & \\
\hline
\end{tabular}
\label{table:MaterialInputs}
\end{table}
\end{document}
いくつかのコメント:
縦罫線は使わず、
booktabs
パッケージ。化合物を適切にタイプセットするには、さまざまなパッケージを使用できます。以下の例では
\ce
、mhchem
。単位を適切にタイプセットするには、
siunitx
パッケージ。また、配置指定子は角括弧で囲む必要があることに注意してください。
\begin{table}[ht]
これらの提案の一部を示すコード例:
\documentclass{article}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage{mhchem}
\sisetup{per-mode = symbol}
\begin{document}
\begin{table}[ht]
\caption{Model Input Information: Materials}
\centering
\begin{tabular}{c c c}
\toprule
Available Materials & Material Input Parameters & Description \\
\midrule
Fused Silica (delta eV = 9) & alpha & Avalanche Coefficient [\si{\cm\squared\per\joule}] \\
Fused Silica (delta eV = 7.5) & delta eV & Material Band Gap [\si{\electronvolt}] \\
\ce{GaAs} & me & Effective Electron Mass [\si{\kilogram}] \\
\ce{ZnSe} & n0 & Linear Refractive Index \\
\ce{Ge} & n2 & Non-Linear Refractive Index \\
\ce{HfO_2} & T & Effective Decay Constant [fs] \\
\ce{TiO_2} & & \\
\ce{Ta_2O_5} & & \\
\ce{Al_2O_3} & & \\
\ce{SiO_2} & & \\
\bottomrule
\end{tabular}
\label{table:MaterialInputs}
\end{table}
\end{document}