converts basic notes format to latex