
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
、これが問題の原因です。原因はおそらくインストールしたことにあります。LaTeX2HTMLこれは廃止され、サポートされていないプログラムです。