first of all trash should be incenerated, if high karat quarter with silver make shot , eliminate base metals if possible with niric acid, before using aqua regia to disolve the gold,
with aqua regia and a solution containig disolved gold the nitric acid needs to be eliminated for most precipitants to work properly (this eliminates the oxidizer that helped to dissolve the gold, and will keep the gold disolved in the chloride solution), this can be done by evaporating the solution(fume hood or outdoors do not breath fumes), evaporate down to a syrup consistancy, (but not to where it starts to crystalize), add a little HCL to keep wet, do this a total of three times.
also be aware as the nitric concentrate's it gets to a point that it wants to come out allmost all at once at this point the vessle can foam over, making a mess and loosing your gold, to overcome this I dont heat it too hot the first boil, watching it carefully, I have learned to see the warning sighns that it wants to start that foaming process,(it starts with many small bubbles at surface)
after nitric is removed let cool, I usually add water at least to make it three times the volume (taking care not to thermally shock and break the glass) then filter the solution, the silver, lead mercury if any in you mix will now be left in filter and any trash if it was not properly removed before. the solution contains your gold and any PGM that may have been there, now your gold can be precipitated with a number of precipitants, (SO2,ferrous sulfate,sodium metabisulfite,Etcetera)
urea is an option to eliminate nitric without boiling,I have more luck boiling.
sulfurous(not sulfuric acid) SO2 gas is supposed to precipitate gold without totaly ridding the nitric acid (I would eliminate the nitric). ther are several different precipitants you can choose from,
ferrous sulfate is one of my favorite ones easy to make with Iron and sulfuric acid, I hope this answer is helpful,