-
Notifications
You must be signed in to change notification settings - Fork 939
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
建议\institute{}和\advisors{}增加换行功能 #190
Comments
这个是官方要求的吗?感觉可能不太符合国科大的标准吧,根据国科大撰写规范: 虽然有很直接的实现方法,但因为表格环境限制较多,想要改的简洁明了,却也不太容易。所以,我再观望一阵吧 |
这是近几年新的要求,确实很麻烦,差点我就换word写了。 \def\ucas@value@ch@advisorss{}
\newcommand{\advisorss}[1]{\def\ucas@value@ch@advisorss{#1}}
\def\ucas@value@ch@institutes{}
\newcommand{\institutes}[1]{\def\ucas@value@ch@institutes{#1}} 在 ucasthesis/Style/ucasthesis.cls Lines 289 to 296 in ba43095
\begin{tabular}{lc}
\ucas@label@ch@author & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@author}}\\
\ucas@label@ch@advisor & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@advisor}}\\
& \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@advisors}}\\
& \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@advisorss}}\\ %这行是新添加的
\ucas@label@ch@degree & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@degreetype\ucas@value@ch@degree}}\\
\ucas@label@ch@major & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@major}}\\
\ucas@label@ch@institute & \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@institute}}\\
& \ulenhance[1.2pt]{\ulextend{\ucas@value@ch@institutes}}\\ %这行是新添加的
\end{tabular} 最后在 Lines 7 to 17 in ba43095
\advisorss{\hspace{+0.0em}分子细胞科学卓越创新中心}
\institutes{\hspace{+0.0em}分子细胞科学卓越创新中心} 就可以让导师信息和培养单位分别多出一行,缺点是必须多出这两行,与原来的模板不兼容了。 |
是的,需要自适应才行,我等有时间时改改看 |
我在提交 https://github.com/muzimuzhi/ucasthesis/commit/253b649f330588942e03938f8e8237a33989e30b 里做了一个实现,主要改动是
测试例子: \advisors{老师1\\老师2}
\institute{中国科学院力学研究所 \\ abc} PS:
|
用xelatex测试了一下,可以。 |
@muzimuzhi 我在 Windows Miktex (This is XeTeX, Version 3.14159265-2.6-0.999991 (MiKTeX 2.9.7050 64-bit) 和 Ubuntu texlive (This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017/Debian) (preloaded format=xelatex) LaTeX2e <2017-04-15>) 上测试,出现错误:
可以解决吗? |
这不是错误,是输出的调试信息。 |
@muzimuzhi 测试效果非常理想,已 merge,非常感谢~ |
@Pantrick @muzimuzhi 模板已更新完毕,合并了 \advisor 和 \advisors。 同时细微调整了下 @muzimuzhi 的命令参数: ucasthesis/Style/ucasthesis.cls Line 71 in 265914d
@muzimuzhi 再次感谢你的帮助~ |
看起来是个单独的新问题,发新 issue? |
现在的一些人是怎么了,请人帮忙回答/解决问题像是大爷在提要求?在开源社区,大家都是凭着热情自愿帮忙,每个人的时间都很珍贵。若不尊重他人的时间和付出,用大爷的口吻提不得其要的问题,请移步他处。 |
由于中科院某些所的改名,现在有些所系的名字特别长,一行已经写不下了。
我现在的解决方案是自行在
ucasthesis.cls
中添加了\advisorss
和\institutes
命令,并改变了首页的部分结构,如果需要更多行数,可以继续添加诸如\advisorsss
,但是破坏了模板的某些自洽性。希望作者可以想办法将
\institute{}
和\advisors{}
增加换行功能,以兼容更长的所系名字。(这是某些所作妖,与我们学生何关 ( : P))
The text was updated successfully, but these errors were encountered: