fix bug for using '\' failing pdf generation

All '\' in tex file should be written as '\\', while markdown file support both types.