Modified approach in tex file