OK, what am I not doing here?
What I have written is:- twice through the tune, i.e. 1st and 2nd endings, which is OK if you only want to practice the head…
What I would like is to have it do is repeat to 1st ending as much or little as I want so I can practice solos, and then have the 2nd ending as written become just the coda - can't seem to get that to work. Is it possible? (And yes, the tune does have an odd number of measures!)

Angela - Antônio Carlos Jobim