Thursday 11 February 2016

Latex Error "! Text line contains an invalid character. l.2 "

Latex is very powerful text Editor which all High Education Degree Student use to write their these. If you have encountered the error of ! Text line contains an invalid character. l.2, then that's why you are reading this topic. I have encountered this error and after googling it, I have finally get the clue. To solve this problem, simple delete the .aux file and run the tex file and everything will be fine. 


1 comment:

  1. If only it were that simple.

    The message reads: ! Text line contains an invalid character. DeclareMathAlphabet{\mathpzc}{OT1}{pzc}{bm}{it}

    BaKoMa TeXWord ignores the message and gives the expected results. TeXStudio puts an ^^@ at the end of the error message and croaks. BaKoma TeXWord generates no .aux file so nothing to delete. TeXStudio generates a .aux file and I've deleted it. Makes no difference.

    ReplyDelete