Latex files and source code for linear systems