Text this: From dust to planets – II. Effects of wide binary companions and external photoevaporation on planetesimal and embryo formation.