
제목의 표 셀 내용을 중앙에 배치하고 싶습니다. 폴란드어 텍스트 문서에 대한 지침에서 표 제목의 내용은 가로 및 세로 모두 중앙에 위치해야 합니다. 나는 발견했다그런 대답, 그런데 코드에 대한 설명이 없어서 구현을 못하겠습니다. m
또한 -type 열 을 적용하고 명령 \multirow[c]{1}{\mycolumnwidth}{My cell content}
과 몇 가지 조합을 시도해 보았습니다 \multicolumn
. 텍스트 고도 조정은 \multirow{1}{\mycolumnwidth}[\myyshift]{My cell content}
해결책이 아닙니다. 수직 중심 맞춤은 자동으로 수행되어야 합니다. 있다대답 좀tabular
일반 TeX용이지만 비슷한 환경을 사용하고 싶습니다 .
MWE:
\documentclass[table]{standalone}
\usepackage{dcolumn}
\usepackage{multirow}
\newcolumntype{d}{D{.}{.}{2.1}}
\renewcommand{\arraystretch}{1.3}
\begin{document}
\begin{tabular}{|l|d|d|}
\hline
\multicolumn{1}{|c|}{\multirow[c]{1}{23mm}{\centering\textbf{Title of side-heading}}} &
\multicolumn{1}{>{\centering}p{23mm}|}{\textbf{Arbitrary values}} &
\multicolumn{1}{>{\centering}p{23mm}|}{\textbf{Some other random values}}\\
\hline
Description 1 & 63.5 & 48.7\\
\hline
Description 2 & 88.4 & 51.3\\
\hline
\end{tabular}
\end{document}
답변1
와 :siunitx
makecell
\documentclass[table]{standalone}
\usepackage{siunitx}
\usepackage{makecell}
\renewcommand{\theadfont}{\normalsize\bfseries}
\renewcommand{\arraystretch}{1.3}
\begin{document}
\begin{tabular}{|l|S[table-format=2.1]|S[table-format=2.1]|}
\hline
{\thead{Title of\\ side-heading}} &
{\thead{Arbitrary\\ values}} &
{\thead{Some other\\ random\\ values}}\\
\hline
Description 1 & 63.5 & 48.7\\
\hline
Description 2 & 88.4 & 51.3\\
\hline
\end{tabular}
\end{document}