%%
%% The LaTeX Companion, 3ed
%%
%% Example 6-2-17 on page I-446 in "Defining new column specifiers".
%%
%% Copyright (C) 2022 Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%% See https://www.latex-project.org/lppl.txt for details.
%%

\documentclass{tlc3exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{159.0pt}
%StartShownPreambleCommands
\usepackage{array}
\newcolumntype{P}[1]
  {>{#1\hspace{0pt}\arraybackslash}p{14mm}|}
%StopShownPreambleCommands

\begin{document}
\begin{tabular}
      {|P{\raggedleft}P{\centering}P{\raggedright}}
\hline Superconsciousness is a long word   &
       Possibi\-li\-t\'es et esp\'erances  &
       Moge\-lijk\-heden en hoop          \\\hline
       Ragged left text in column one      &
       Centered text    in column two      &
       Ragged right text in  column three \\\hline
\end{tabular}
\end{document}
