hello everyone.
I'm working on the Ubuntu 10.04 & Lyx 1.6.5. Then I upgraded my kernel to version 2.6.32 - 26 several days ago. Then everything seems wrong, the Lyx cannot DVI or make pdf even the tutorial file in Help -> Tutorial. Here is the err information:
Package babel Error: you haven't loaded the option english yet.
I tried to reinstall Lyx in the software center, but it didnt work. I think it's much more concerned with some config files of the system. So is there any suggestions that can solve this trouble~
LyX ⇒ troubled after upgrading system
troubled after upgrading system
Last edited by swordless on Fri Dec 17, 2010 6:49 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: troubled after upgrading system
I can't see how a kernel upgrade can have any impact on LaTeX. Please, post here an example .lyx file which shows the problem.
troubled after upgrading system
thanks for your reply.
Here is the Latex source:
and the error information in Latex log:
Here is the Latex source:
Code: Select all
Code, edit and compile here:
% Preview source code%% LyX 1.6.5 created this file. For more info, see http://www.lyx.org/.%% Do not edit unless you really know what you are doing.\documentclass[12pt,a4paper]{article}\usepackage[]{fontenc}\usepackage[latin9]{inputenc}\pagestyle{headings}\makeatletter%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.% DO NOT ALTER THIS PREAMBLE!!!%%This preamble is designed to ensure that the document prints% out as advertised. If you mess with this preamble,% parts of the document may not print out as expected. If you% have problems LaTeXing this file, please contact% the documentation team% email: lyx-docs@lists.lyx.org\usepackage{ifpdf} % part of the hyperref bundle\ifpdf % if pdflatex is used% set fonts for nicer pdf view\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}\fi % end if pdflatex is used% the pages of the TOC is numbered roman% and a pdf-bookmark for the TOC is added\let\myTOC\tableofcontents\renewcommand\tableofcontents{%\frontmatter\pdfbookmark[1]{\contentsname}{}\myTOC\mainmatter }% redefine the \LyX macro for PDF bookmarks\def\LyX{\texorpdfstring{%L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}{LyX}}
Code: Select all
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=latex 2010.11.24) 15 DEC 2010 20:46entering extended moderestricted \write18 enabled.%&-line parsing enabled.**test.tex(./test.texLaTeX2e <2009/09/24>Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, nohyphenation, loaded.(/usr/share/texmf-texlive/tex/latex/base/article.clsDocument Class: article 2007/10/19 v1.4h Standard LaTeX document class(/usr/share/texmf-texlive/tex/latex/base/size12.cloFile: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option))\c@part=\count79\c@section=\count80\c@subsection=\count81\c@subsubsection=\count82\c@paragraph=\count83\c@subparagraph=\count84\c@figure=\count85\c@table=\count86\abovecaptionskip=\skip41\belowcaptionskip=\skip42\bibindent=\dimen102) (/usr/share/texmf-texlive/tex/latex/base/fontenc.styPackage: fontenc 2005/09/27 v1.99g Standard LaTeX package) (/usr/share/texmf-texlive/tex/latex/base/inputenc.styPackage: inputenc 2008/03/30 v1.1d Input encoding file\inpenc@prehook=\toks14\inpenc@posthook=\toks15(/usr/share/texmf-texlive/tex/latex/base/latin9.defFile: latin9.def 2008/03/30 v1.1d Input encoding file)) (/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.styPackage: ifpdf 2009/04/10 v2.0 Provides the ifpdf switch (HO)Package ifpdf Info: pdfTeX in pdf mode not detected.) (./test.aux! Package babel Error: You haven't loaded the option english yet.
troubled after upgrading system
I think that the problem is here:meho_r wrote:I can't see how a kernel upgrade can have any impact on LaTeX. Please, post here an example .lyx file which shows the problem.
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2009/04/10 v2.0 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in pdf mode not detected.
)
troubled after upgrading system
I don't think so. The problem is that \selectlanguage{english} command is set in the source you provided (immediately after \begin{document}), but babel package isn't loaded at all (and all errors are babel-related). So, either go to Document > Settings > Langauge and set the language or put into the preamble the following:
And, BTW, it is better to include a .lyx file instead of LaTeX source, just in case that LyX messes something up (and it does from time to time). Note that you'll need to put the file into a ZIP archive prior to attaching.
Code: Select all
\usepackage[english]{babel}
troubled after upgrading system
Thank you meho_r!meho_r wrote:I don't think so. The problem is that \selectlanguage{english} command is set in the source you provided (immediately after \begin{document}), but babel package isn't loaded at all (and all errors are babel-related). So, either go to Document > Settings > Langauge and set the language or put into the preamble the following:And, BTW, it is better to include a .lyx file instead of LaTeX source, just in case that LyX messes something up (and it does from time to time). Note that you'll need to put the file into a ZIP archive prior to attaching.Code: Select all
\usepackage[english]{babel}
I insert the preamble, and it worked.