In the book’s scheme, «ذاك» is intermediate and «ذلك» distant.

Demonstratives — forms, syntax and usage