在 Fedora 20 上使用 Lyx:这个错误是什么意思?

在 Fedora 20 上使用 Lyx:这个错误是什么意思?

当我尝试使用 Lyx 2.1 编译 pdf 时出现此错误:

This is pdfTeX, Version 3.1415926-2.6-1.40.14 (TeX Live 2014/dev) (format=latex 2015.4.2)  28 JUL 2015 12:45 entering extended mode  restricted \write18 enabled.  %&-line parsing enabled.
**rationale.tex (./rationale.tex LaTeX2e <2011/06/27> Babel <3.9h> and hyphenation patterns for 2 languages loaded.

(/usr/share/texlive/texmf-local/texmf-compat/tex/latex/evergent/article.cls

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation. Type  H <return>  for immediate help.  

...                                    

                                                   l.1 <
     script>window.googleJavaScriptRedirect=1</script><script>var m={navigat...

You're in trouble here.  Try typing  <return>  to proceed. If that doesn't work, type  X <return>  to quit."

这是输出 .tex 文件的最小示例:

%% LyX 2.1.0 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}
\begin{document}
Test
\end{document}

它会生成相同的编译错误。

答案1

情况似乎很清楚:该article.cls文件是从

/usr/share/texlive/texmf-local/texmf-compat/tex/latex/evergent/

虽然它应该在

/usr/share/texlive/texmf-dist/tex/latex/base/

有人或某物texmf-compat在 下安装了某个子树texmf-local,这就是导致问题的原因。可能是因为安装了LaTeX 转 HTML,这是一个过时且不受支持的程序。

相关内容