看板 LaTeX 關於我們 聯絡資訊
※ 引述《banco (Acoustic)》之銘言: : 手邊碰到一個表格 : 最左邊的 "Hello World" 是 row 的說明文字 : 右邊三個英文字 A, B, C 則是三個欄位的內容 : 因為說明文字要佔多行, : 所以我想把 A, B, C 的內容"垂直置中" : 我目前試了 \multirow : 但一直排不出我要的效果 : 在這種情形下 : 我該如何使用 \multirow 來把 A,B,C 垂直置中呢? : 還是有更佳的方式可以達成? : ------------------ : Hello A B C : World : ------------------ 譬如說像以下這樣嗎? :) \documentclass[12pt,a4paper]{article} \usepackage{multirow} \begin{document} \begin{table}[htbp] \begin{center} \caption{Test Table}\label{table1} \begin{tabular}{c|c|c|c} \hline Hello & \multirow{2}{*}{A} & \multirow{2}{*}{B} & \multirow{2}{*}{C} \\ World & & & \\ \hline \end{tabular} \end{center} \end{table} \end{document} 不過如果 A, B, C 的內容是比較長的文字, 因為我打過的表格內容都不太多,所以我是手動折行來完成的喔, 如果希望自動折行,也許可以搭配 tabularx。 :) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.62.185.120
banco:感謝, 這個方法可行 07/26 02:48