turn texpacks into a doubly linked list