# putting the caption of a table on its right

I have a table environment, which has a tabular environment inside, and I would like to put the caption on its right (the table is narrow enough for that), and not below it. How would that be possible?

-

You can use the floatrow package; a little example:

\documentclass{article}

\begin{document}

\begin{table}
\floatbox[\capbeside]{table}
{\caption{A test table with its caption beside}\label{tab:test}}%
{\begin{tabular}{ll}
column 1a & column 2a \\
column 1b & column 2b \\
column 1c & column 2c
\end{tabular}}
\end{table}

\end{document}


Another option is the sidecap package:

\documentclass{article}
\usepackage{sidecap}

\begin{document}

\begin{SCtable}
\begin{tabular}{ll}
column 1a & column 2a \\
column 1b & column 2b \\
column 1c & column 2c
\end{tabular}
\caption{A test table with its caption beside}\label{tab:test}
\end{SCtable}

\end{document}


-
An additional remark: the KOMAScript-Classes have this functionality built in, look up the captionbeside environment in the manual. – Chris Nov 23 '12 at 7:30