In every age and culture, royal courts have always attracted a multitude of scholars, artists and other folk seeking patronage and protection. In the Islamic world, one of these courts was that of the emirs of the Saljuqs of RÅ«m in Kastamonu in northern Anatolia. In the year 680/1282, Quá¹b al-DÄ«n ShÄ«rÄzÄ« (d. 709-1309), a student of Naṣīr al-DÄ«n ṬūsÄ« (d. 672/1274) who lived in Anatolia for years, dedicated his IkhtiyÄrÄt to the emir of Kastamonu, Muáºaffar al-DÄ«n Yavlaq Arslan (d. 691/1292). This same Muáºaffar also had a secretary in his service by the name of ḤusÄm al-DÄ«n Khūʾī (alive in 709/1309-10), a refugee from KhÅ«y near Tabriz in Iran. ḤusÄm al-DÄ«n is the author of a number of works, six of which are published here for the very first time: four manuals on the art of the secretary, one Arabic-Persian glossary for use at the chancellery, and finally a collection of his poetry.