# 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?

-
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 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 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 at 9:08
What's in the standard indexing facility that doesn't suit you? –  egreg Jan 29 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 at 18:17