Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

You can use the floatrow package; a little example:

\documentclass{article}
\usepackage[capbesideposition=outside,capbesidesep=quad]{floatrow}

\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}

enter image description here

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}

enter image description here

share|improve this answer
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.