Linux|系统管理|WEB开发

关注Linux,系统管理,WEB开发以及开源世界

LyX如何创建导入beamer类型文档

| Comments

Beamer是latex的一个宏包,用于输出高质量的PDF文档,用户简报或者幻灯片。latex-beamer已经和LyX有了集成,但是在LyX导入带有beamer文档类型的TeX文件或者从LyX自带的beamer模板创建新文件也会报错,错误提示为:

The layout file requested by this document,beamer.layout,is not usable.

看来和beamer.layout有关。查阅beamer的用户手册,其中提到了beamer.layout,说明如下:

For usage of the beamer class with LYX, you have to do all of the above. You also have to make LYX aware of the file beamer.layout. This file is not part of the beamer package since it is updated and managed by the LYX development team. This means that in reasonbaly up-to-date LYX versions this file will already be installed and nothing needs to be done.

它仅仅只是说明该文件目前由LyX组织维护,而且它认为最新版本的LyX无须做的工作就能创建beamer类型文档。实际情况在我这里是不行的。

询问Google,效果不太好,相关信息非常少。不过它搜索出来了beamer的一个用户手册文档是3.01版,2004年写的。而我手头的是3.07版,2007年编写的。

下载旧的版本,查阅有关beamer.layout信息,结果如下:

lyx For usage of the beamer class with LYX, you have to do all of the above. Then you also have to make LYX aware of the file beamer/lyx/layouts/beamer.layout. To do so, link (or, not so good in case of later updates, copy) this file to the directory .lyx/layouts/ in your home directory. Then use LYX’s Reconfigure command to make LYX aware of this file.

这个说明就比较详细的告诉你应该怎么做了。安装这个,我解决不能创建或者导入beamer文档类型的问题。 看来有时候新版的文档手册就一定比旧版好。

Comments