Matlab/Octave script to generate properly sized TikZ figures for scientific papers