有没有办法在例如\newcommand
这样的范围内创建一个动态的新列类型\newcolumntype{#1}{m{50pt}}
?
我尝试做这样的事情:
\documentclass{scrartcl}
\usepackage{tabularx}
\makeatletter
\newcount\dyncount
\dyncount =5
\newcommand{\nct}[1]{%
\expandafter\newcolumntype{#1}{m{50pt}}%
}%
\makeatother
\begin{document}
\makeatletter
\nct{\@Alph\dyncount}
\makeatother
\begin{tabularx}{\textwidth}{|E|E|}
\hline
Cell E & Cell E \\
\hline
\end{tabularx}
\end{document}