I am not an expert in this but these images will be helpful and to book ticket in 14005 from CPR you just have to change your boarding station to BSB.
In Shiv Ganga (12559) and other early train to reach NDLS it is very difficult to get the ticket in this short time.