Edited the convert_path function and added the Latex_Conversion_case function