Main aim of this paper is to demonstrate how to prepare interactive mathematical textbooks in TeX that can use the advantages of Internet, communicate directly with the software on remote computers etc.