この表の 2 列目と 3 列目をページの水平方向の中央に配置して、「構造用合金」と「クラッディング」が左側に突き出るようにします。
\documentclass{article}
\usepackage{booktabs, multirow, threeparttable}
\usepackage{siunitx}
\begin{document}
\begin{table}[htpb] \footnotesize
\centering
\begin{threeparttable}
\caption{Material properties of cladding alloys compared to structural alloys at \SI{705}{\celsius}}
\label{tab:properties}
\begin{tabular}{rlc}
\cmidrule[0.08em]{2-3}
& Material & CTE (\SI{e-3}{\per\celsius}) \\
\cmidrule[0.05em]{2-3}
\multirow{2}{*}{Structural alloys \bigg\{} & 316H & 18.8 \\
& 800H & 17.2 \\
\cmidrule[0.05em]{2-3}
\multirow{3}{*}{Claddings \Bigg\{} & Ni-201 & 15.8 \\
& Hastelloy N & 14.3 \\
& Haynes 242 & 13 \\
\cmidrule[0.08em]{2-3}
\end{tabular}
\end{threeparttable}
\end{table}
\end{document}
答え1
いずれにしても、テーブルは不均衡に見えます。
なしでも実行できます\multirow
。慣例により、空白のセルは値が繰り返されることを意味します。
\documentclass{article}
\usepackage{booktabs, multirow, threeparttable}
\usepackage{siunitx}
\begin{document}
\begin{table}[htpb]
\centering
\begin{threeparttable}
\caption{Material properties of cladding alloys compared
to structural alloys at \SI{705}{\celsius}}
\label{tab:properties}
\begin{tabular}{@{}llS[table-format=2.1]@{}}
\toprule
Type & Material & {CTE (\SI{e-3}{\per\celsius})} \\
\midrule
Structural alloy & 316H & 18.8 \\
& 800H & 17.2 \\
\midrule
Cladding & Ni-201 & 15.8 \\
& Hastelloy N & 14.3 \\
& Haynes 242 & 13 \\
\bottomrule
\end{tabular}
\end{threeparttable}
\end{table}
\end{document}
代替案はそれほど魅力的ではないようです。
\documentclass{article}
\usepackage{booktabs, multirow, threeparttable}
\usepackage{siunitx}
\begin{document}
\begin{table}[htpb]
\centering
\begin{threeparttable}
\caption{Material properties of cladding alloys compared to structural alloys at \SI{705}{\celsius}}
\label{tab:properties}
\begin{tabular}{@{}r@{}lc}
\cmidrule[0.08em]{2-3}
& Material & CTE (\SI{e-3}{\per\celsius}) \\
\cmidrule[0.05em]{2-3}
\multirow{2}{*}{\llap{Structural alloys \bigg\{\ }} & 316H & 18.8 \\
& 800H & 17.2 \\
\cmidrule[0.05em]{2-3}
\multirow{3}{*}{\llap{Claddings \Bigg\{\ }} & Ni-201 & 15.8 \\
& Hastelloy N & 14.3 \\
& Haynes 242 & 13 \\
\cmidrule[0.08em]{2-3}
\end{tabular}
\end{threeparttable}
\end{table}
\end{document}
答え2
編集:
下の OP コメントを見ると、列見出しに「material」がある列をテキスト幅の中央に配置することを望んでいるようです。これは、テーブルを左側に移動することで実現できます。これはさまざまな方法で実行できます...threeparttable
最も簡単な方法として、目に見えないルールを使用する方法が頭に浮かびました。したがって、私は最初のバージョンの回答から MWE を修正しました。
\documentclass{article}
\usepackage{booktabs, multirow, threeparttable}
\usepackage{siunitx}
\newlength\tabshift% added
%-------------------------------------------- to show page layout
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\begin{document}
\begin{table}[htpb]
%\footnotesize
\centering
\begin{threeparttable}
\caption{Material properties of cladding alloys compared to structural alloys at \SI{705}{\celsius}}
\label{tab:properties}
\begin{tabular}{rlS}
\cmidrule[0.08em]{2-3}
& Material & {CTE (\SI{e-3}{\per\celsius})} \\
\cmidrule[0.05em]{2-3}
\multirow{2}{*}{Structural alloys \bigg\{} & 316H & 18.8 \\
& 800H & 17.2 \\
\cmidrule[0.05em]{2-3}
\multirow{3}{*}{Claddings \Bigg\{} & Ni-201 & 15.8 \\
& Hastelloy N & 14.3 \\
& Haynes 242 & 13 \\
\cmidrule[0.08em]{2-3}
\end{tabular}
\end{threeparttable}%
\rule{0.5\tabshift}{0pt}% added
\end{table}
\end{document}
最後のテーブル列は、S
パッケージを使用して列タイプに変更しますsiunitx
。列の詳細な仕様をS
、たとえば次のようにS[table-format=2.1]
することができます (推奨)。あなたの特定のケースでは、結果はどちらの場合も同じです。
注(1): 今後は、私が上で行ったように、常に小さいながらも完全なドキュメント (MWE: 最小限の (非) 動作例) を提供してください。あなたを助けてくれる人を助けてください。欠落した序文を書くのは楽しいことではありません...
注(2): 今後は、質問をより正確に表現してください :)。以下のコメントに関して、間違った仮定に基づいた 2 つの回答を受け取りました。ところで、テーブルの元の位置 (左に移動する前) は、まったく問題ないようです...
テーブルの位置を微調整するには、好みに応じてテーブルをページ上で最適な位置に配置するため0.5
の要素の値を変更します。\rule{0.5\tabshift}{0pt}
補遺: ページ上の表をより視覚的に中央に配置するには、次のように表を再設計します。
\documentclass{article}
\usepackage{booktabs, makecell, multirow, threeparttable}
\usepackage{siunitx}
%---------------------------------------------------------------%
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\begin{document}
\begin{table}[htpb]
\centering
\begin{threeparttable}
\caption{Material properties of cladding alloys compared to structural alloys at \SI{705}{\celsius}}
\label{tab:properties}
\begin{tabular}{rlS}
\cmidrule[0.08em]{2-3}
& Material & {CTE (\SI{e-3}{\per\celsius})} \\
\cmidrule[0.05em]{2-3}
\multirow{2}{*}{\makecell{Structural\\ alloys} \bigg\{} & 316H & 18.8 \\
& 800H & 17.2 \\
\cmidrule[0.05em]{2-3}
\multirow{3}{*}{Claddings \Bigg\{} & Ni-201 & 15.8 \\
& Hastelloy N & 14.3 \\
& Haynes 242 & 13 \\
\cmidrule[0.08em]{2-3}
\end{tabular}
\end{threeparttable}
\end{table}
\end{document}
答え3
この表の2列目と3列目を水平に中央揃えにしたい
これは、c
必要な列に\begin{tabular}{rcc}