在使用MikTex2.9编译网上下载的Latex模板时,产生了一些问题,现摘要如下:
1. 打开文件乱码问题
所有的文件的注释都是乱码,是因为文件使用了GBK等其它非Unicode的编码方式。可以使用Notepad++或者其它记事本软件另存为Unicode格式的文件,Texworks就能正常显示了。
2. 编译时出现“Package keyval Error: twosideshift undefined”的错误
这是因为最新版Geometry包删除了compat2 和 twosideshift 选项。参看geometry的说明文档:compat2 and twosideshift. The version 5 has nolonger compatibility with the previous ones. compat2 and twosideshift are gone forsimplicity.所以这两个选项不能使用了。
解决方法:找到导言区(./setup/package.tex) 中的(关于twosideshift 的第32行,不同大学的模板行数不定)注释掉,即修改