 His professor of physics in the gymnasium was Karel Robida, who wrote the first Slovene physics textbook.Stefan then earned his habilitation in mathematical physics at the University of Vienna in 1858.During his student years, he also wrote and published a number of poems in Slovene.