Google "hyperfocal distance" for maximum depth of field. I use a light-weight music stand and a tape measure, put the stand at the hyperfocal distance, focus, remove stand, and shoot.