how to store page numbers in array and retrive them later? [closed]

I am working on one application where i need to store page numbers in an array and retrive them later to print index. I don't want to use the existing index function as i need to have control on it. How can i implement it?

-

closed as unclear what you're asking by Joseph Wright♦Sep 8 '13 at 18:17

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

I'm not sure if this helps but have a look here ctan.org/pkg/etoc and here to get an idea of what can be makes tex.stackexchange.com/questions/94766/… –  karathan Jan 29 '13 at 8:37
you can directly use \write to work with external file of your own format, or define new commands that will use \label and \pageref. –  Eddy_Em Jan 29 '13 at 8:40
@Eddy_Em very helpful to me your comment ... :) I was looking for something like this tex.stackexchange.com/questions/20957/… I think it will be useful and to user15662 –  karathan Jan 29 '13 at 9:08
What's in the standard indexing facility that doesn't suit you? –  egreg Jan 29 '13 at 9:21
Without a response to for example egreg's question, we can't really help so much here. Almost certainly the best approach will depend on your real requirements. –  Joseph Wright Sep 8 '13 at 18:17