Top: The deuteron-to-proton yield ratio in jets (left) and in the underlying event (right) in \pp collisions at \thirtheen and \pPb collisions at \fivenn (right). Statistical and systematic uncertainties are represented, respectively, by vertical bars and boxes. Bottom: The double ratio $(\mathrm{d/p})_{\pPb}/(\mathrm{d/p})_{\mathrm{pp}}$ in jets (left) and in the underlying event (right). The band represents the statistical and systematic uncertainties summed in quadrature.