
突然,我的所有投影機檔案上都出現了神秘的「文字行包含無效字元」錯誤(其中 100 個)。即使這個 MWE 也不能正常工作:
\documentclass{beamer}
\begin{document}
Sample document.
\end{document}
我正在使用最新的 TeXnicCenter(2.02 穩定版)和 Miktex 2.9 - 出了什麼問題?
我的感覺是編碼搞砸了,但我不知道是什麼。
更新:Texmaker 也不起作用,給出以下錯誤:“剛剛輸入了一個我無法讀取的有趣符號。”
答案1
看了.tex
文件,程式碼沒問題。另一方面.log
揭示了罪魁禍首是ifpdf.sty
,在ifpdf.sty
透過電子郵件收到後我們可以斷定它已損壞。在我的 emacs 中,所有檔案包含的都是^@
.
我建議重新安裝 MikTeX,甚至遷移到 TL(只是因為即使在 Windows 上,我通常也更喜歡 TL 而不是 MikTeX)。