xiaohai2008的个人博客分享 http://blog.sciencenet.cn/u/xiaohai2008

博文

“! Latex source files more than 5 years old!.”解决方案

已有 14618 次阅读 2012-1-6 16:40 |个人分类:Latex|系统分类:科研笔记| 解决方案

CTeX的最新版本 为2.9.1.160,详见CTEX: 下载中心
但由于下载速度特别慢,一直也没更新,现在仍然使用2.4.6版本

最近想安装Latex2HTML,希望装Latex写的一些文档转换成HTML格式,然后直接贴到BLOG上
由于最初将其安装在C:Program Files目录下,而Latex2HTML要求安装目录不能有空格
于是将CTeX 2.4.6卸掉,又重新安装了一遍,但安装完成后竟然不能编辑了
比如在WinEdt中点Latex工具按钮,出现一个DOS窗口一闪而过
这事让我特纳闷,还以为原来安装的没有卸载干净

经仔细分析,发现不是卸载的问题,而是著名的“! Latex source files more than 5 years old!.”的问题
可以直接进入DOS命令窗,输入以下命令:
> latex example.tex
出现如下提示:
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4)
"etex.exe" --ini --interaction=nonstopmode --halt-on-error --alias latex *latex.ltx dump
This is e-TeX, Version 3.141592-2.2 (MiKTeX 2.4) (INITEX)
entering extended mode
(C:CTeXtexmftexlatexbaselatex.ltx
(C:CTeXtexmftexlatex0miktextexsys.cfg)
./texsys.aux found


@currdir set to: ./.


Assuming openin and input
have the same search path.


Defining UNIX/DOS style filename parser.

catcodes, registers, compatibility for TeX 2,  parameters,

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! You are attempting to make a LaTeX format from a source file
! That is more than five years old.
!
! If you enter <return> 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!}

No pages of output.
Transcript written on latex.log.
initexmf: etex.exe failed on "latex.ltx".
cannot make latex.efmt
I can't find the default format file!

找到原因之后,问题相对来说就比较好解决了
直接google "! Latex source files more than 5 years old!." 解决方案,即可找到解决方案
具体解决方案如下:
用记事本或UE打开文件“C:CTextexmftexlatexbaselatex.ltx”
找到“ifnumcount@>65”,将其修改为“ifnumcount@>100” (或者其他大于100的整数),然后保存即可保证代码顺利编译。

当然,正如解决方案所说,真正的问题并没有修正,只是保证代码可以编译罢了,最好的方案是安装新版本的CTeX。
最新版本的CTeX正在下载中。。。,但实在太慢了。



https://wap.sciencenet.cn/blog-611051-526471.html

上一篇:三种世界大学排名
下一篇:HMM-LDA模型简介
收藏 IP: 168.160.25.*| 热度|

1 田灿荣

该博文允许注册用户评论 请点击登录 评论 (6 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-22 06:55

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部