;$Id: wtab_ramp.pro,v 1.2 2021/01/23 21:11:06 brandenb Exp $
;
file='psum_ramp.txt'
fo="(a,5(' & ',a), '\\')"
;
close,1
openw,1,'runs.tex'
printf,1,'%tau    lam      f0       eta      EEM        EEGW     run'
a=rtable(file,head=1,8)
tau=reform(a[0,*])
lam=reform(a[1,*])
f0=reform(a[2,*])
eta=reform(a[3,*])
EEM=reform(a[4,*])
EEK=reform(a[5,*])
EEGW=reform(a[6,*])
hrms=reform(a[7,*])
n=n_elements(tau)
;
name='$\lambda='
for i=0,n-1 do begin
  printf,1,name+latex_float(tau[i]), $
  latex_float(lam[i],2), $
  latex_float(EEM[i],2), $
  latex_float(EEK[i],2), $
  latex(EEGW[i],1), $
  latex(hrms[i],1),fo=fo
endfor
close,1
;
spawn,'cat runs.tex'
END
