我想可用表达式,很忙的表情...实时变量单元格。以下代码仅将引用的单元格与单元格本身的底部对齐:有没有办法让这些单元格垂直居中?提前致谢。
\usepackage{bbm}
\usepackage[italian]{babel}
\usepackage[italian]{varioref}
\usepackage{rotating}
\usepackage{pgf,tikz}
\usepackage{etex}
\usepackage{tikz-cd}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[utf8]{inputenx}
\usepackage{braket}
\usepackage[a4paper]{geometry}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathabx}
\usepackage{examples}
\usepackage{multirow}
\newcommand{\spheading}[2][10em]{% \spheading[<width>]{<stuff>}\rotatebox{90}{\parbox{#1}{\raggedright #2}}}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
......
\begin{tabular}{c|M{20mm} M{30mm}}
& forward ($flow$) & backward ($flow^R$)\\
\midrule
\spheading[4em]{must ($\cap$)} & Available Expression & Very Busy Expression\\
\spheading[4em]{may ($\cap$)} & Reaching Definition & Live Variables\\
\bottomrule
\end{tabular}
答案1
\raisebox{-1.5em}{...}
您可以通过将 放在周围来获得合理的近似值\rotatebox
。
代码
\documentclass{article}
\usepackage{array}
\usepackage{booktabs}
\usepackage{graphicx}
\newcommand{\spheading}[2][10em]{% \spheading[<width>]{<stuff>}
\raisebox{-1.5em}{\rotatebox{90}{\parbox{#1}{\raggedright #2}}}}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\begin{document}
\begin{tabular}{c|M{20mm} M{30mm}}
& forward ($\mathit{flow}$) & backward ($\mathit{flow}^R$)\\
\midrule
\spheading[4em]{must ($\cap$)} & Available Expression & Very Busy Expression\\
\spheading[4em]{may ($\cap$)} & Reaching Definition & Live Variables\\
\bottomrule
\end{tabular}
\end{document}