我怎样才能将 pspicture 垂直置于单元格内?使用 m-type-cell 不起作用。
\documentclass[a4paper,DIV=15,oneside,12pt]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{array}
\usepackage{setspace}
\usepackage{pst-all}
\usepackage{auto-pst-pdf}
\begin{document}
\onehalfspacing
\begin{tabular}{m{0.47\textwidth}m{0.47\textwidth}}
\toprule
\raisebox{0pt}[\dimexpr\height]{\begin{pspicture}
\psframe(0,0,)(6,5)
\end{pspicture}} &
\\\bottomrule
\end{tabular}
\end{document}
答案1
改变的参数\raisebox
似乎2\pslinewidth
可以得到你想要的:
\documentclass[a4paper,DIV=15,oneside,12pt]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{booktabs}
\usepackage{graphicx}
\usepackage{array, cellspace}
\usepackage{setspace}
\usepackage{pst-all}
\usepackage{auto-pst-pdf}
\begin{document}
\onehalfspacing
\begin{tabular}{m{0.47\textwidth}m{0.47\textwidth}}
\toprule
\raisebox{-2\pslinewidth}[\height]
{\begin{pspicture}(0,0,)(6,5)
\psset{dimen =inner}
\psframe(0,0,)(6,5)
\end{pspicture}
}
& Lalala
\\\bottomrule
\end{tabular}
\end{document}