{Preparing \LaTeX\ classes/templates for journal articles and university theses} {Tom Hejda} {There is a substantial difference between the requirements on a \LaTeX\ class\slash template for a scientific journal and for university theses. The main difference is that a journal class is by definition \emph{restrictive}\Dash the journal has to be very keen on precise look and structure of the articles, whereas the thesis class is by definition \emph{modular}\Dash different theses ask for a slightly different layout and structure, some have appendices and some do not, etc. This contribution discusses the differences and their implications on the class design. Two classes developed by the author (one in collaboration with P.~Ol\v{s}\'{a}k) will be used as examples. }