thuthesis icon indicating copy to clipboard operation
thuthesis copied to clipboard

texlive 2015 不能通过编译

Open dongfengweixiao opened this issue 11 years ago • 25 comments

texlive 2015 不能通过编译

dongfengweixiao avatar May 18 '15 03:05 dongfengweixiao

嘛错误信息?

texlive 2015 还没正式发布呢。

alick avatar May 18 '15 03:05 alick

最近在测试texlive2015

\ifCTEX@nofonts

这个和ctex升级到2.0有关。

dongfengweixiao avatar May 18 '15 04:05 dongfengweixiao

与 ctex 2.0 兼容性已经修复了 #92 。请用最新版本(master HEAD)测试下。

alick avatar May 18 '15 05:05 alick

同样表示不能编译

! Illegal unit of measure (pt inserted). \global l.61 \chapter{hh}

正文第一个\chapter就会这样

hotpxl avatar Jun 12 '15 13:06 hotpxl

已经确定是thuthesis.dtx:1580的问题。。奈何不会写latex不知道怎么fix。。。 注掉就没事了。

hotpxl avatar Jun 12 '15 14:06 hotpxl

忘了说环境。。。mactex 2015。。

hotpxl avatar Jun 12 '15 15:06 hotpxl

话说我倒是想要帮忙修补来着,但是只能说thuthesis的模板写的实在是太鬼斧神工。

dongfengweixiao avatar Jun 13 '15 10:06 dongfengweixiao

+1

hotpxl avatar Jun 13 '15 13:06 hotpxl

其实理论上说thuthesis倒是不应该因为texlive的升级导致太大的问题:thuthesis本身使用了大量的tex的代码,所以对于很多的宏包的依赖都很少。可是,它就是那么真实的发生了。。。。

dongfengweixiao avatar Jun 13 '15 13:06 dongfengweixiao

貌似是从perpage里拿的代码 而perpage也挂了。

hotpxl avatar Jun 13 '15 14:06 hotpxl

干掉这部分代码,直接\RequirePackage{perpage} 保留\MakePerPage{footnote},看看能过么

On Sat, Jun 13, 2015 at 10:48 PM, Yutian Li [email protected] wrote:

貌似是从perpage里拿的代码 而perpage也挂了。

— Reply to this email directly or view it on GitHub https://github.com/xueruini/thuthesis/issues/126#issuecomment-111716470.

xueruini avatar Jun 13 '15 15:06 xueruini

赞 解决了。但是之前用\usepackage{perpage}并没有什么卵用..不过行首缩进以及缩进长度好像也挂了,现在是手动搞的

hotpxl avatar Jun 14 '15 02:06 hotpxl

texlive 2015

! Illegal unit of measure (pt inserted).
<to be read again> 
                   \global 
l.6 \chapter{引言}

注释 c721bb880d9bdaf9397e41d516a12f9241f34b7d (6月7日) thuthesis.dtx的1577~1591行可以编译通过,但会出现 @hotpxl 的结果,行首缩进长度出问题。

回退到 texlive 2014,可以正常编译。

MaskRay avatar Jun 14 '15 08:06 MaskRay

试试把 perpage 相关行换成 \RequirePackage[perpage]{footmisc}?

perpage 影响行首缩进感觉也挺诡异的。建议在不使用 thuthuesis 模板类的情况下(例如在使用article与ctexart文档类时)也测试下。

texlive 2015 正式发布了,我最近升级下。

alick avatar Jun 16 '15 08:06 alick

我也升级一下

2015-06-16 16:13 GMT+08:00 Alick Zhao [email protected]:

试试把 perpage 相关行换成 \RequirePackage[perpage]{footmisc}?

perpage 影响行首缩进感觉也挺诡异的。建议在不使用 thuthuesis 模板类的情况下(例如在使用article与ctexart文档类时)也测试下。

texlive 2015 正式发布了,我最近升级下。

— Reply to this email directly or view it on GitHub https://github.com/xueruini/thuthesis/issues/126#issuecomment-112327583.

xueruini avatar Jun 16 '15 08:06 xueruini

hotfix: alick/thuthesis@556a24ff657dc6a4bec7e5639cc2a1121b4c4ee

  1. footmisc is actually used by default, so I just use it.
  2. 行首缩进的问题来自于 ctex 2.0 兼容性,与无法编译的问题应该无关。

alick avatar Jun 16 '15 15:06 alick

  1. 行首缩进距离的问题是因为 nocap 选项含义变掉了,相当于设置了 scheme=plain 变成了英文版式,加上 scheme=chinese 就好了
  2. 首段缩进的问题不知道为啥 ctex 宏包没搞定,按理说是可以的,而且在 thuthesis.cls 里面写上和 ctex 宏包一样的代码就能用,不知道为啥宏包里面的代码没起作用
  3. 而且,章标题后面的首段是正常的,节标题后面的不对

mengfl05 avatar Jun 17 '15 12:06 mengfl05

@mengfl05 首行缩进问题是 ctex 2.0 的一个(有意的)不兼容情况 https://github.com/CTeX-org/ctex-kit/issues/194

alick avatar Jun 19 '15 09:06 alick

@alick 谢谢~你这个提醒我了,确定就是 ctex 没有载入 indentfirst,现在的行为都是 @startsection 这个决定的,参考一下我在水木上发的帖子~

但是这个也还是怪怪的,按照这里 2994585 以及 ctex 随 texlive 2015 发布版本的手册的说法,indentfirst 在 scheme=chinese 及标准文档类公用的时候,是会载入的...

mengfl05 avatar Jun 19 '15 11:06 mengfl05

@alick 呃,折腾一番之后的结果,应该就是 ctexbook 并没有载入 indentfirst 宏包,这时候是否首段缩进是 @startsection 命令中的 beforeskip 参数的正负控制的,在后面的 \section 等命令的定义那里改改也就好了

ctex 宏包只有在使用 ctex.sty 并且带 scheme=chinese,heading=false 的情况下才使用 indentfirst 处理手段缩进,其他情况都是使用 beforeskip,更多的参见水木的帖子... http://www.newsmth.net/nForum/article/TeX/324095?s=324095

thuthesis 这里是不是也可以参考这种做法,修改一下 \section 几个命令的定义就好了,不一定要引入 indentfirst 宏包

mengfl05 avatar Jun 20 '15 02:06 mengfl05