I am writing a text that an be divided in two groups pre-textual elements and the textual elements. The pre-textual elements contains things like table of contents, table of figures, list of abbreviations, etc; and the textual elements are chapters of the text.
What I want to do is remove the page numbering from the pre-textual elements.
First approach i used was using thispagestyle{empty} under each pre-textual element. It worked, but when there is, for example, a table of contents or list with two or more pages, just the last page of that element will have its number removed.
Second approach, I tried using \pagenumbering{gobble} in the beginning of the document, and when I wanted the numbers to appear, I changed to \pagenumbering{arabic}. The problem with this approach, is that the numbers will start from 1 in the place I put this last command, and I don't want that. I want the pre-textual pages to be counted, just not appear. I know that I can set the page numbering to start from a certain number, but I would need to do it manually, and always count by myself the number of pages that comes before.
Third approach was using the method I found here. This worked fine, until I noticed that pages where my chapters starts was without numbering. No problem I used the \thispagestyle{headings} after each \chapter and it was ok. But when I added my references in the end, the first page was without style.
My question is: is there an easiest way to remove the page numbers from a certain group of pages and only there, without facing these problems?
Thanks in advance.