尝试编译 Latex 文档时出现奇怪的错误

尝试编译 Latex 文档时出现奇怪的错误

您好,我正在 Textmate 2 上使用 Latex 撰写论文,从昨天开始出现了一个奇怪的错误。

使用 Textmate 进行编译时,出现错误代码 1,并且在终端中出现此错误:

Traceback (most recent call last): File "/Users/Boris/Library/Application 
Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/texmate.py", line 1015, in
 status = command_parser.parse_stream() File "/Users/Boris/Library/Application 
Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/parsing.py", line 763, in
 parse_stream return super(LaTexMkParser, self).parse_stream() 
File "/Users/Boris/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/parsing.py", line 180, in parse_stream function(matching, line) 
File "/Users/Boris/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/parsing.py", line 782,
 in start_latex fatal_error, number_errors, number_warnings = parser.parse_stream()
 File "/Users/Boris/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/parsing.py", line 603, in parse_stream return super(LaTexParser, self).parse_stream() File "/Users/Boris/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/parsing.py", line 187,
 in parse_stream line =
 self.get_rewrapped_line() 
File "/Users/Boris/Library/Application
Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/parsing.py",
line 135, in get_rewrapped_line statement += line.rstrip('\n')
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe4 in position 50:
 invalid continuation byte

我发现如果我评论\include{chapter}我的 2 个章节,这个问题就会消失,而且会起作用,但我无法将其缩小到两个章节中的任何一个。

它还可以从终端在 pdflatex 中进行正确编译......

非常感谢任何帮助/线索!

相关内容