ZJU-Awesome / write_with_LaTeX

134 stars 90 forks source link

英文标题排版显示缺少下划线 #13

Closed hairuo closed 4 years ago

hairuo commented 4 years ago

如题,中文显示标题下面是有下划线的。 英文标题缺少下划线。

校方规定: 中文论文题目:下划线+小二号仿宋体加黑; 英文论文题目:下划线+ 16pt Time New Roman, Bold.

hairuo commented 4 years ago

发现问题是这样的,英文论文标题的文字部分,如果字数太多超过三行达到四行,下划线就自动消失了。反之如果减少字数为三行,则下划线自动回来了。

所以现在想问的是,如何让下划线支持四行英文标题,谢谢。

hairuo commented 4 years ago

将zjuthesis.cls中的对应内容改成如下已解决:

                \ZJU@englishtitle\\*
                \ifdim\etitlelength<\titleulwidth@cover
                    \raisebox{31pt}[0pt][0pt]{\parbox[t][][t]{\titleulwidth@cover}{
                    \rule{\titleulwidth@cover}{\ULthickness}}}
                \else\ifdim\etitlelength<2\titleulwidth@cover
                        \raisebox{67pt}[0pt][0pt]{\parbox[t][][t]{\titleulwidth@cover}{
                        \rule{\titleulwidth@cover}{\ULthickness}\\*
                        \rule{\titleulwidth@cover}{\ULthickness}}}
                \else\ifdim\etitlelength<3\titleulwidth@cover
                        \raisebox{103pt}[0pt][0pt]{\parbox[t][][t]{\titleulwidth@cover}{
                        \rule{\titleulwidth@cover}{\ULthickness}\\*
                        \rule{\titleulwidth@cover}{\ULthickness}\\*
                        \rule{\titleulwidth@cover}{\ULthickness}}}
                \else\ifdim\etitlelength<4\titleulwidth@cover
                        \raisebox{139pt}[0pt][0pt]{\parbox[t][][t]{\titleulwidth@cover}{
                        \rule{\titleulwidth@cover}{\ULthickness}\\*
                        \rule{\titleulwidth@cover}{\ULthickness}\\*
                        \rule{\titleulwidth@cover}{\ULthickness}\\*
                        \rule{\titleulwidth@cover}{\ULthickness}}}
                \fi\fi\fi\fi