Dear Christian,
I don't remember why I looked at this, but there is a late vāstuśāstra describing the way in which a library should be organised (I don't think we have much prescriptive information about this elsewhere, perhaps that's why I thought I should transcribe this in a note; I hope I'm wrong!).
Viśvakarmavāstuśāstra, ch. 20 second half; a library
D. N. Shukla, \textit{Vāstu-śāstra Vol. I Hindu Science of Architecture (Engineering, Town-Planning, Civil Architecture, Palace-Architecture, Temple-Architecture and an anthology of Vāstu-laksanas)}. Bhāratīya Vāstu-śāstra Series, Vol. VIII. Lucknow: Vāstu-Vāṅmaya-Prakāśana-Śālā / Shukla Printing Press. year n.a. (ca. 1960), pp. 193–194 of texts (pdf 788); English abstract on p. 390 (pdf 397)
khaḍgasandhāraṇaṃ rājñaś śāstrasevanam ity api |
dvayaṃ (caiva viśeṣeṇa) śubhapradam itīritam || 20.23
vijñānadharmasukṛtasukhatatvādivardhakam |
śāstraṃ bhūpatinā sevyaṃ niyamena (manīṣiṇā) || 20.24
jñānena prāpyate lakṣmīr jñānena sukham aśnute |
prāṇisaṃrakṣaṇe jñānam ādyo mantrīti kathyate || 20.25
gurudevārcanaparaḥ prāṇirakṣādṛḍhavrataḥ |
yaśase kalpate bhūpaś śāstrasevanatatparaḥ || 20.26
tena tuṣyanti pitaro brāhmaṇā vedapāragāḥ |
kāle varṣati parjanyo medinī sasyaśālinī || 20.27
sukhabhājaḥ prajāḥ sarvā nyāyasthitir acañcalā |
ityādikṣemajanakaṃ śāstrasevanam īśituḥ || 20.28
tasmād bhūpatinā kāryaṃ pratyahaṃ śāstrasevanam |
prāsāde nītibhavane purāṇām api madhyame || 20.29
viduṣāṃ melanasthāne śāstraśālāṃ prakalpayet |
caturaśrā śāstraśālā prāṅmukhāvaraṇatrayā || 20.30
madhye kalpavidhānena prakalpyā vedavedikā |
mukhabhadracatuṣkeṇa saṃyutāṅgaṇaśobhinī || 20.31
bahir āndhārikā yuktā vātāyanaśatojjvalā |
ekabhaumā tribhaumā vā śikhareṇāpi bhāsurā || 20.32
prathamāvaraṇe vedo dvitīyāvaraṇe smṛtiḥ |
tṛtīyāvaraṇe cārṣaṃ vedanāthaḥ paraḥ pumān || 20.32
vāṇīṃ hayamukhaṃ śambhum umāṃ saparicārikām |
sthāpayet tatra kāryajñaḥ kalaśādisamanvitāḥ |
gurupīṭhasamāyuktaḥ prajānāṃ śemuṣīpradaḥ || 20.33
Yours,
Peter