
Recebo este erro ao tentar compilar um pdf com Lyx 2.1:
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."
Aqui está o exemplo mínimo do arquivo .tex de saída:
%% 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}
Gera o mesmo erro de compilação.
Responder1
A situação parece bastante clara: o article.cls
arquivo é obtido de
/usr/share/texlive/texmf-local/texmf-compat/tex/latex/evergent/
enquanto deveria estar em
/usr/share/texlive/texmf-dist/tex/latex/base/
Alguém ou algo instalou alguma texmf-compat
subárvore texmf-local
e esta é a causa do seu problema. Possivelmente a causa está tendo instaladoLaTeX2HTML, que é um programa obsoleto e sem suporte.