Jet fragmentation transverse momentum measurements from di-hadron correlations in √s=7 TeV pp and √sNN=5.02 TeV p–Pb collisions