@comandos: even if the tabularx environment would allow stuff like that in its first argument (which it doesn't, it expects a length there),
\MakeUppercase
expects an argument, Since there are no braces, it would grab the
\bfseries
command, biut since there's no text...
The easiest way would be to use small caps instead of all uppercase, then you could say
Code: Select all
{\scshape\bfseries\large
\begin{tabularx}[\textwidth}{lX}
%table's contents
\end{tabularx}
}
Then again, small caps may not be available for your font at your used encoding
.
An alternate to kaiserkarl13's example might be the usage of
collcell package:
Code: Select all
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tabularx}
\usepackage{collcell}
\newcommand\tabfmt[1]{\MakeUppercase{\bfseries\large#1}}
\newcolumntype{E}{>{\collectcell\tabfmt}X<{\endcollectcell}}
\begin{document}
\begin{tabularx}{\textwidth}{>{\collectcell\tabfmt}l<{\endcollectcell} E}
Test 1 & test 2 \\
Test 1 & test 2 \\
Test 1 & test 2 \\
Test 1 & test 2 \\
\end{tabularx}
\end{document}
KR
Rainer