# How to change font shape in only one column of tabular [closed]

As in the title: I'd like to be able to determine specific font for each column in a table. I've found in Wikibooks, that \begin{tabular}{ >{\bfseries}l c >{\itshape}r } will result in a table with 1st column in bold and third one in italics, but unfortunately it doesn't work when I try to use it.

Minimal working example:

\documentclass{book}

\usepackage{setspace}
\usepackage{fontspec}
\usepackage{polyglossia}
\usepackage{indentfirst}
\usepackage{supertabular}

\setmainlanguage{polish}
\setotherlanguage[locale=mashriq]{arabic}
\setromanfont[Mapping=tex-text]{Linux Libertine O}

\begin{document}

\begin{table}[h!]
\centering
\begin{tabular}{lrlr} \\
%\begin{tabular}{ >{\itshape}lr >\{\itshape}lr} \\
\multicolumn{2}{c}{nieokreśony}&\multicolumn{2}{c}{określony} \\
kit\=abun & \textarabic{كِتابٌ} & al-kit\=abu & \textarabic{اَلْكِتابُ} \\
\v samsun & \textarabic{شَمْسٌ} & a\v s-\v samsu & \textarabic{اَلشَّمْسُ} \\
\end{tabular}
\end{table}

\end{document}


When I try to add >{\itshape} (the commented line), I get an error: ! LaTeX Error: Illegal character in array arg.

-
you'll need to load the array package... – cmhughes Dec 5 '12 at 0:54
Also remove the spurious \ in >\{\itshape}. Make it >{\itshape} – Harish Kumar Dec 5 '12 at 0:57
@cmhughes Thanks! I thought array package is only for math mode... But it works now! – maria Dec 5 '12 at 1:02
@HarishKumar Thanks :) – maria Dec 5 '12 at 1:02
ok, that's great, I'm glad the problem is fixed :) we'll probably close this question then, unless you want to delete it :) – cmhughes Dec 5 '12 at 1:03

## closed as too localized by cmhughes, Paul Gaborit, Heiko Oberdiek, Kurt, Harish KumarDec 5 '12 at 1:14

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.