xsize=8
ysize=10.96+1.2
size xsize ysize

begin texpreamble
    % set fonts used for text and maths to Palatino
    \usepackage{mathpazo}
    \renewcommand{\familydefault}{ppl}
    \usepackage{upgreek}
    \usepackage[load=abbr]{siunitx}
    \usepackage{bm}
end texpreamble

pt=0.0352777778 ! 1 postscript point

set font texcmr
set hei 12*pt
set texscale scale

! crystal structure image
amove 0 1.2
bitmap "Cupyo2pyz2BF42-structure.png" 8 10.96

! crystal structure key
displacex=0.6  !to move text away from atom horizontally
displacey=0.13 !to line up atom key pic and text vertically
xstart=0.3
xdisp=1.25
ytop=0.3
amove xstart ytop
bitmap "sphere-B.png" 0.5 0.5
amove xstart+displacex ytop+displacey
text \tex{B}
amove xstart+1*xdisp ytop
bitmap "sphere-C.png" 0.5 0.5
amove xstart+1*xdisp+displacex ytop+displacey
text \tex{C}
amove xstart+2*xdisp ytop
bitmap "sphere-N.png" 0.5 0.5
amove xstart+2*xdisp+displacex ytop+displacey
text \tex{N}
amove xstart+3*xdisp ytop
bitmap "sphere-O.png" 0.5 0.5
amove xstart+3*xdisp+displacex ytop+displacey
text \tex{O}
amove xstart+4*xdisp ytop
bitmap "sphere-F.png" 0.5 0.5
amove xstart+4*xdisp+displacex ytop+displacey
text \tex{F}
amove xstart+5*xdisp-0.25 ytop-0.25
bitmap "sphere-Cu.png" 1 1
amove xstart+5*xdisp+displacex+0.25 ytop+displacey
text \tex{Cu}


amove 7 4
angle=-50/180*3.1415926535
rline 0.8*sin(angle) 0.8*cos(angle) arrow end
rmove 0.3 0
tex "$\bm{a}$"

amove 7 4
rline 1 0 arrow end
rmove -0.3 0.25
tex "$\bm{b}$"

amove 7 4
rline 0 -1 arrow end
rmove 0.1 0.1
tex "$\bm{c}$"