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]
?
1 Answer
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}
`
to mark your inline code as I did in my edit.