function tulosta(kohde="tuloste")
print([kohde,".tex"], "-depslatexstandalone");
system(["sed -i \'s/\\% Set papersize$/\\% Set papersize\\n\\\\usepackage[utf8]{inputenc}/\' ", kohde, ".tex"]);
system(["latex -halt-on-error ",kohde,".tex > /dev/null"]);
system(["dvipdf ", kohde,".dvi > /dev/null"]);
system(["rm -rf ", kohde,"{.tex,.dvi,.log,.aux,-inc.eps}"]);
endfunction

