We propose a novel walk-off-compensation method for ultraviolet-light-source development. A walk-off occurring in the frequency mixing of infrared and green beams is doubly compensated for using an external walk-off compensator and a nonlinear-material set with internal walk-off-compensation arrangement. We theoretically and experimentally verified that our method can improve the power and beam shape of the output ultraviolet beam. (C) 2015 Optical Society of America