0
\documentclass[aps,prd,reprint,groupeaddress,showpacs,preprintnumbers,nofootinbib,nobibnotes,amsmath,amssymb,floatfix,superscriptaddress]{revtex4-1} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \begin{table}[ht] \centering \caption{Coupling constants at saturation density n_0} \begin{tabular}[t]{cccccc} \toprule Model &$g_\sigma N$ &$g_\omega N$ &$g_\rho N$ &$g_2 (fm^{-1})$ &$g_3$\\ \midrule GMT &9.9400 &12.2981 &9.2756 &10.5745 &-24.1907\\ NL3 &10.2170 &12.8780 &8.9480 &10.4310 &-28.8850\\ \bottomrule \end{tabular} \end{table} \end{document} 

This code leads to a table as shown below. Why is there no toprule, midrule or bottomrule appearing? I have used \usepackage{booktabs} .

enter image description here

15
  • they are not defined by default did you get an error message saying they were undefined. (Never ignore error messages) Commented Feb 8, 2022 at 15:46
  • 1
    please always show a complete small document that shows the problem, we can not test your fragment without guessing where the error is in code you have not shown Commented Feb 8, 2022 at 15:47
  • I cannot replicate the issue you say you are experiencing if I make your code snippet minimally compilable by prefixing it with \documentclass{article} \usepackage{booktabs} \begin{document} and affixing \end{document} to it. (For good measure, I also changed n_0 to $n_0$.) Hence, do please post code that (a) people can compile without having to apply a lot of guesswork and (b) generates the problem behavior you wish to fix. Commented Feb 8, 2022 at 15:58
  • 1
    @Mico I have edited the question to include a entire code including documentclass. I hope that makes it better to identify the error. Commented Feb 8, 2022 at 16:02
  • 1
    if you fix tehcaption you get no rules with the obsolete revtex4-1 class but if you change that to revtex4-2 then they appear Commented Feb 8, 2022 at 16:18

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.