# How can I use renewcommand for toprule of the booktabs package?

I have a LaTeX document and want to change the thickness of \toprule and \bottomrule to 1.5pt. Is there a way to do this with the \renewcommand or do I have to change every \toprule to \toprule[1.5pt]?

-
Welcome to TeX.sx! A tip: You can use backticks  to mark your inline code as I did in my edit. –  Torbjørn T. Feb 22 '13 at 14:10
1.5pt would show very thick rules. –  egreg Feb 22 '13 at 14:15

The default width of those rules is defined by the length \heavyrulewidth, so you can change this with \setlength\heavyrulewidth{<length>}. For example

\documentclass{article}
\usepackage{booktabs}
\setlength\heavyrulewidth{1.5pt}
\begin{document}

\begin{tabular}{c}
\toprule
Some text \\
\bottomrule
\end{tabular}
\end{document}
`
-