2

When compiling a LaTeX document with XeTeX, I get the following error: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! You are attempting to make a LaTeX format from a source file ! That is more than five years old. ! ! If you enter to scroll past this message then the format ! will be built, but please consider obtaining newer source files ! before continuing to build LaTeX. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

! LaTeX source files more than 5 years old!.
l.545 ...aTeX source files more than 5 years old!}

? ! Emergency stop. l.545 ...aTeX source files more than 5 years old!}

No pages of output.

I invoked the command with xelatex document.tex, what am I doing wrong? LaTeX and XeTeX was installed from repos of Fedora 15, how come those sources are too old?

Edit:

I was asked to provide an example where this error occurs:

\documentclass[pdftex, paper=a4, 11pt]{scrartcl}
\title{title}
\begin{document}
%\maketitle
\section*{test}
blah blah
\end{document}

I could further simplify, if that helps...

Ingmar
  • 6,690
  • 5
  • 26
  • 47
polemon
  • 3,555
  • 4
  • 32
  • 42
  • 1
    Please submit your minimal not-working example. :-) – Display Name Aug 03 '11 at 02:47
  • After changing the global documentclass options (pdftext -> pdftex; a4paper -> paper=a4), this minimal example compiles fine. Check for yourself on ScribTeX. – Werner Aug 03 '11 at 03:12
  • I can compile it without errors. There are only 2 warnings "pdftext global options are not used". – Display Name Aug 03 '11 at 03:13
  • I tried what Werner suggested, didn't help. I changed the minimal example accordingly. – polemon Aug 03 '11 at 03:19
  • @Werner What you suggest actually not solves his problem. Any undefined options in \documentclass are only unused global options as @xport already showed. The reason you can compile it fine is that you are using a right TeX distribution while @polemon is not – Yan Zhou Aug 03 '11 at 03:20
  • As this question comes up frequently, see here for a broader discussion: http://tex.stackexchange.com/q/62829/4736 – Keks Dose Aug 16 '14 at 14:19

4 Answers4

7

Nothing is wrong, except the old software. You should upgrade your TeX Live distribution.

Leo Liu
  • 77,365
2

I think this question has been asked by a user using Ubuntu.

The problem is that the TeXlive distributed by most Linux distributions (if not all) is still TeXLive 2007. If everything is from TL2007 it should be fine. But perhaps the maintainer updated some individual binaries, e.g., xetex, without updating everything.

I strongly suggest against using the texlive distribution by Fedora/Ubuntu or whatever. Instead, I suggest you install an up to date TeXlive distribution from the official site http://tug.org/texlive/. You can find everything you need to know about the installation from the same site.

Yan Zhou
  • 9,032
  • 1
    I think most distros have TL 2009 now. – frabjous Aug 03 '11 at 03:27
  • @frabjous It seems it is still 2007. Check the following status page. However I use RHEL so cannot be sure which actually shown up in the package manager in Fedeora 16. Anyway last time I use Ubuntu 10.10 and Fedora 14 it is still 2007 https://admin.fedoraproject.org/updates/texlive?_csrf_token=8e1c658f2b88215cd2b6b79760c5646fb093eeb5 – Yan Zhou Aug 03 '11 at 03:31
  • Ubuntu 10.04 (lucid) and higher have TL 2009: http://packages.ubuntu.com/search?keywords=texlive (8.04 LTS (hardy) obviously only has TL 2007). – Caramdir Aug 03 '11 at 03:41
  • 2
    It is better to use TeX Live 2011 provided by TUG, not the Linux dist source. – Leo Liu Aug 03 '11 at 04:47
  • http://www.tug.org/texlive/acquire-netinstall.html – Leo Liu Aug 03 '11 at 04:48
  • Here's Gentoo status for reference. Green means stable, yellow — testing. – Andrey Vihrov Aug 03 '11 at 06:32
1

Probably the easiest solution to this problem is to temporarily change the system date (of course, this applies only when actually generating formats, after which you can set the date back).

This , of course, only if for some reason you don't want to upgrade your TeX distro.

mbork
  • 13,385
-1

I have been using Miktex 2.6 version on Windows PC. This isn't my original answer, however it works. This message is meant to force people to use later versions. When I got the above error message That is more than five years old the solution is search for the file latex.ltx in your latex distribution. Make its duplicate on the desktop or elsewhere. Open it using Notepad. Within the file Search for the lines containing 65 as shown below.

\ifnum\count@>65
  \typeout{^^J%
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J%
!  You are attempting to make a LaTeX format from a source file^^J%
!  That is more than five years old.^^J%
!^^J%
!  If you enter <return> to scroll past this message then the format^^J%
!  will be built, but please consider obtaining newer source files^^J%
!  before continuing to build LaTeX.^^J%
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!^^J%
}
   \errhelp{To avoid this error message, obtain new LaTeX sources.}
   \errmessage{LaTeX source files more than 5 years old!}
\fi

In the latex.ltx file, change 65 to 300 and save it. Then replace the original latex.ltx file in the distribution with the duplicate from the desktop. That should solve the problem.

cabohah
  • 11,455
  • 2
    Changing latex.ltx (which is kind of frowned upon) won't help unless you rebuild the format. – campa Aug 15 '23 at 07:39