In the pgfplotstable documents, there is an example where you can input \hlines in every couple rows:

    every nth row={3}{before row=\hline},  % insert hline every 3 rows
    every head row/.style={before row=\hline, after row=\hline},
    every last row/.style={after row=\hline},
a b
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8

enter image description here

How can I insert an hline once only after the third row, instead of every third?


Kinda late, but I had the same problem today.

solved it by:

every row no 3/.style={before row=\hline}
  • Welcome to TeX.SX! Could you add some compilable to make it easier for us to use your solution?
    – Bobyandbob
    Jul 11 '18 at 9:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.