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

?

share|improve this question
    
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
3  
You can just use booktabs instead. –  Andrey Vihrov Mar 8 '11 at 6:03
    
@Andrey: Please turn your comment into an answer. –  lockstep Jun 12 '11 at 14:28
    
@lockstep: Done. –  Andrey Vihrov Jun 16 '11 at 11:07
add comment

1 Answer

up vote 1 down vote accepted

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.

share|improve this answer
add comment

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.