In «ذٰلِكَ الْكِتَابُ», «ذلك» is lexically equivalent to “great” in every context.

Defining the Subject by Demonstration: Rhetorical Purposes of Demonstratives