I need to use tabular for 2 cases: one for numbered data(table float) and other for text data(I named quadro). Now Im need to use longtable for both, the way I thought to do that is load the longtable package twice, but editing the counters and some commands(Im going to create the environment longquadro).

Could someone please list the principals commands that I have to change and which I may keep?

The code is the longtable.sty

  • 1
    You don't want to load a package twice (and can't without some trickery). Loading a package defines the various commands and environments that you can use. So your first attempt would be to take what you're doing for table and quadro, and see what happens if you intermix them. If you're having trouble, try to create an example with ~40 lines of code that you think should work but doesn't, and post that here.
    – Teepeemm
    Commented Jun 13 at 2:51
  • Im going to load longtable.sty, then i'll load a edited version with the commands name's changed.
    – Leonidas
    Commented Jun 13 at 3:10
  • Does that mean that your approach for quadro was to edit the contents of longtable.sty to use "quadro" instead of "longtable"? Editing a package is tricky at best, and should only be a last resort.
    – Teepeemm
    Commented Jun 13 at 13:13

1 Answer 1


enter image description here

You don't need to duplicate all of the definitions or load the package code twice, just tell longtable to use the quadro counter for captions in these cases:






\listof{quadro}{List of Quadro}

  \caption{a table}

  \caption{a quadro}

  \caption{a long table}\\

  \caption{a long quadro}\\

  \caption{another table}

  \caption{another quadro}


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .