I'm trying to right align a fixed width column, but I get an "undefined control sequence" error.
If I change the letter "z" to a "p" (so in other words just specify a fixed width column, then this MWE compiles.
Code: Select all
\documentclass[12pt]{article}
\usepackage{tabularx}
% Another column I used with different syntax, which works
% correctly in another part of the document when I use R{2in}
% in the column parameter.
%\newcolumntype{R}{>{\raggedleft\arraybackslash}X}
\newcolumntype{z}[1]{>{\ragggedleft\arraybackslash}p{#1}}
\begin{document}
\begin{tabularx}{\textwidth}{r l | z{2in} l}
\textbf{\small{Text}} & \small{Text} & \textbf{\small{Text}} & \small{Text} \\
\end{tabularx}
\end{document}