xsize=11
ysize=8
size xsize ysize

pt=0.0352777778 ! 1 postscript point

fs=12*pt  !font size

set lwidth lw
set hei fs
set just tl

! funky LaTeX commands
begin texpreamble
    % set fonts used for text and maths to Palatino
    \usepackage{mathpazo}
    \renewcommand{\familydefault}{ppl}
    \usepackage{upgreek}
end texpreamble

! set the normal font to AvantGarde-Demi, which is really obviously
! different to Palatino, so you can spot it if you forget to wrap
! text in \tex{}
set font psagd

! crystal structure image
amove 0 0
bitmap "nacl.png" 8.4 8

! crystal structure key
displacex=1.3  !to move text away from atom horizontally
displacey=0.8 !to line up atom key pic and text vertically
xstart=9
ydisp=2
ytop=5

amove xstart ytop
bitmap "sphere-Na.png" 1 1
amove xstart+displacex ytop+displacey
text \tex{Na}
amove xstart ytop-1*ydisp
bitmap "sphere-Cl.png" 1 1
amove xstart+displacex ytop-1*ydisp+displacey
text \tex{Cl}