# How to use REVTeX's ruledtabular in a normal document?

I would like to use the ruledtabular environment in a book I am currently writing.

\begin{table}
\caption{\label{tab:table1}  ...}
\begin{ruledtabular}
\begin{tabular}{ccccc}
...
\end{tabular}
\end{ruledtabular}
\end{table}


The problem is I don't want to begin with

\documentclass[preprint,...]{revtex4-1}


but with the normal

\documentclass{book}


Is there a way to do something like

\usepackage{revtex4-1}


?

-
This will be difficult. Revtex is not designed to be broken up this way, but you could attempt to go through the sources and pull out only the definition of the ruledtabular environment, and the commands necessary to implement it. –  Lev Bishop Mar 7 '11 at 20:06
You can just use booktabs instead. –  Andrey Vihrov Mar 8 '11 at 6:03
@lockstep: Done. –  Andrey Vihrov Jun 16 '11 at 11:07

As per REVTeX 4.1 guide, the two main features of ruledtabular are double rules and page wide tables. This can be achieved using two \hline-s in a row and the tabularx package:

\documentclass{article}

\usepackage{tabularx}

\begin{document}

\begin{table}
\caption{Something}
\begin{tabularx}{\textwidth}{XX}
\hline\hline
Some & content \\
\hline\hline
\end{tabularx}
\end{table}

\end{document}


Personally to me the two features look doubtful at best from the typographic point of view. I recommend reading the booktabs package documentation for good table typesetting practices.

-