Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,我正在用那个国科大毕业论文的模板,发现好像有一些地方不一样 #134

Closed
liuy334 opened this Issue Mar 30, 2019 · 38 comments

Comments

Projects
None yet
6 participants
@liuy334
Copy link

liuy334 commented Mar 30, 2019

    首先非常感谢你的辛勤付出。
    因为是昨天才开始使用,所以我在这之前也已经用word写了一部分,对照来看,两个版本差不多,但是我发现word每一行比LaTeX版本的每一行要多几个字,而且整篇文档LaTeX(32行)比word版本(29行)大概多3行,因而我很担心这样会导致格式不合格进而最后还是要粘到word中去,尤其听前年的师兄最后就是连夜粘过去。。。想问一下这个LaTeX版本是不是官方?学校是否认可这种不一样吗?有没有办法可以调整一下?
@mohuangrui

This comment has been minimized.

Copy link
Owner

mohuangrui commented Mar 30, 2019

你好,官方无LaTeX版本。请问你测量了行间距,页面边距吗?两者有差异吗?如果这些没有差异,而你们单位要求每一行字数和总行数仍要一致的话,那请慎重使用LaTeX模版。或者,你可以把样本打出来然后征求研办是否可以的意见。

@muzimuzhi

This comment has been minimized.

Copy link

muzimuzhi commented Mar 30, 2019

就 LaTeX 层面补充一些信息。

行距

Word 里的行距相当复杂,和 LaTeX 不同。参考

字距

xeCJK 提供了调整字距的选项 CJKglue,但一段具体的文本,在 Word 里排了几行、每行几个字,LaTeX 里又是什么效果,和底层的排版算法也有关系。

小结

在使用者层面,可以尝试(做非初级的)调整,以逼近 Word 里的效果,但不能确保一定完全一模一样。举个不贴切的例子,同一个 docx 文件,使用不同平台不同版本的 Word 打开,也会得到不同的页面效果。

@liuy334

This comment has been minimized.

Copy link
Author

liuy334 commented Mar 30, 2019

@mohuangrui

This comment has been minimized.

Copy link
Owner

mohuangrui commented Mar 30, 2019

@liuy334

This comment has been minimized.

Copy link
Author

liuy334 commented Mar 30, 2019

@liuy334

This comment has been minimized.

Copy link
Author

liuy334 commented Mar 30, 2019

@mohuangrui

This comment has been minimized.

Copy link
Owner

mohuangrui commented Mar 30, 2019

你好,没收到你的文件。但我再次对ucasthesis的页面尺寸以及官方Word的尺寸进行了测量,可以说ucasthesis是符合如下官方要求的:
Screen Shot 2019-03-30 at 8 07 04 PM

但Word版的实际版本中页脚到页边的距离不是1.5cm,而是约1.9cm,加上页眉上的些许差异,最后word的实际版本大约在页面页脚多用了6mm。至于6mm的差距为何会导致3行的差异就不太清楚了。

结论就是,ucasthesis 的尺寸与官方书面要求应是相差无几的,但word版的实际版本与书面要求存在差异。ucasthesis将继续采用书面要求的尺寸,而暂不会调整,请谅解。

@liuy334

This comment has been minimized.

Copy link
Author

liuy334 commented Mar 30, 2019

@mohuangrui

This comment has been minimized.

Copy link
Owner

mohuangrui commented Mar 31, 2019

你好,没有收到你的文件。重点是ucasthesis 的尺寸与官方书面要求是一致的,即

除非有确切的信息表明当前ucasthesis的设定是错误的,否则无法贸然修改。

@liuy334

This comment has been minimized.

Copy link
Author

liuy334 commented Mar 31, 2019

@muzimuzhi

This comment has been minimized.

Copy link

muzimuzhi commented Mar 31, 2019

@liuy334
看到你是通过邮件回复 issue 的。

查询 The GitHub Blog,在当时是不支持「邮件回复的同时上传附件」的,这可能是你多次发送附件失败的原因

Email attachments are currently ignored. There’s no place to upload assets to issues or comments anyway.
https://github.blog/2011-03-10-reply-to-comments-from-email/

在 github.com 网页里回复 issue,可以上传附件。

又及,调整版心高度,对 Word 和 LaTeX 都是很简单的事情。有可能是 Word 模板和 LaTeX 模板的制作者,对官方要求的理解不同。可以等你问明老师后,再看。

@mohuangrui

This comment has been minimized.

Copy link
Owner

mohuangrui commented Mar 31, 2019

@songchunlin

This comment has been minimized.

Copy link

songchunlin commented Apr 3, 2019

我也发现了这个问题,对比之前师兄师姐基于 Word 模板的论文,我基于 LaTeX 模板的论文每页多了两到三行,实际测量发现 Word 行距更宽一点,一行的字数基本一致。我自己试了同样的文字也发现,同样的页面、字体、字号设置,Word 1.5 倍行距一页的行数比 LaTeX 生成的 PDF 大两行。我的做法是把 LaTeX 行距调整为1.6,这样每页行数与 Word 版 1.5 倍行距一致了。

附同样设定为1.5 倍行距的 LaTeX (上)和 Word (下)结果,可以看出 LaTeX 多了两行。
latex
word

@liuy334 liuy334 referenced this issue Apr 3, 2019

Closed

1 #137

@liuy334

This comment has been minimized.

Copy link
Author

liuy334 commented Apr 3, 2019

谢谢啦,调整那个之后对其它的有影响吗?比如左右、上下页宽?我问了老师,但是到现在也没有得到答复,我也不敢催,一会儿悄悄再问一下吧。。

@liuy334

This comment has been minimized.

Copy link
Author

liuy334 commented Apr 3, 2019

不好意思,突然多弄出来个issue,我也删不掉。。。能告诉我怎么删吗。。。

@liuy334

This comment has been minimized.

Copy link
Author

liuy334 commented Apr 3, 2019

刚刚老师回复我了,说是两个版本应该都可以,不过都没有看我打印的效果,就只是问了一下,就这么回复。。。

@mohuangrui

This comment has been minimized.

Copy link
Owner

mohuangrui commented Apr 3, 2019

@liuy334

This comment has been minimized.

Copy link
Author

liuy334 commented Apr 3, 2019

非常感谢^0^因为还有一周就要提交导师了,麻烦你了!!

@mohuangrui

This comment has been minimized.

Copy link
Owner

mohuangrui commented Apr 4, 2019

@liuy334 @songchunlin

已对照 Word 进行了调整,LaTeX 使用 1.6 确实更为接近 Word 的行距,调整后行距和每行字数是一致的了。对比如下

LaTeX:
LaTeX版

Word:
Word版

请测试使用最新版。

@liuy334

This comment has been minimized.

Copy link
Author

liuy334 commented Apr 4, 2019

非常非常感谢!!!请问这个算是最终版本了吧?那我就开始往上挪了~~~

@mohuangrui

This comment has been minimized.

Copy link
Owner

mohuangrui commented Apr 4, 2019

@liuy334

This comment has been minimized.

Copy link
Author

liuy334 commented Apr 4, 2019

欧耶

@e71828

This comment has been minimized.

Copy link

e71828 commented Apr 4, 2019

@mohuangrui latex一级标题的前后间距明显跟word不一致啊

@e71828

This comment has been minimized.

Copy link

e71828 commented Apr 4, 2019

百度网盘 提取码:q9Df
QQ空间盗得。
1554391596437
Screenshot_2019-04-04-23-26-18-488_com tencent tim

@muzimuzhi

This comment has been minimized.

Copy link

muzimuzhi commented Apr 4, 2019

latex一级标题的前后间距明显跟word不一致啊
@e71828

新情况,新 issue。

@liuy334

This comment has been minimized.

Copy link
Author

liuy334 commented Apr 5, 2019

是不是我需要再等等?

@mohuangrui

This comment has been minimized.

Copy link
Owner

mohuangrui commented Apr 5, 2019

当前ucasthesis的各级标题距离是根据官方标准制定的,不会去参照一个来源不明的文档。至于为何距离有时与Word的有些许差异,这主要有两方面的原因:

  1. LaTeX 与 Word 无法做到行间距等所有参数完全一致,现在调整后也只是使行数与每行字数一致,但不会去追求所有细节完全一致,LaTeX 的排版机制本就优于Word。若是一定要弄成一样,就相当于一定要张学友唱歌时唱的和我们完全一样荒唐。

  2. LaTeX 的排版机制允许很多长度参数在给定阈值附近浮动,以达到最后的效果。从而绝对的不变值并不是好的选择。

结论就是不会修改。祝好。

@mohuangrui mohuangrui closed this Apr 5, 2019

@hjr0

This comment has been minimized.

Copy link

hjr0 commented Apr 19, 2019

当前ucasthesis的各级标题距离是根据官方标准制定的,不会去参照一个来源不明的文档。至于为何距离有时与Word的有些许差异,这主要有两方面的原因:

1. LaTeX 与 Word 无法做到行间距等所有参数完全一致,现在调整后也只是使行数与每行字数一致,但不会去追求所有细节完全一致,LaTeX 的排版机制本就优于Word。若是一定要弄成一样,就相当于一定要张学友唱歌时唱的和我们完全一样荒唐。

2. LaTeX 的排版机制允许很多长度参数在给定阈值附近浮动,以达到最后的效果。从而绝对的不变值并不是好的选择。

结论就是不会修改。祝好。

师兄,为何我把ucasthesis.cls中的\linespred{}从1.5改到1.6(甚至到2)没效果

@hjr0

This comment has been minimized.

Copy link

hjr0 commented Apr 19, 2019

我没替换其他文件,仅仅是把旧的cls文档中的1.5换成了1.6

@e71828

This comment has been minimized.

Copy link

e71828 commented Apr 19, 2019

@hjr0

This comment has been minimized.

Copy link

hjr0 commented Apr 19, 2019

加后面\selectfont 试试

On Fri, Apr 19, 2019, 13:37 hjr0 @.***> wrote: 当前ucasthesis的各级标题距离是根据官方标准制定的,不会去参照一个来源不明的文档。至于为何距离有时与Word的有些许差异,这主要有两方面的原因: 1. LaTeX 与 Word 无法做到行间距等所有参数完全一致,现在调整后也只是使行数与每行字数一致,但不会去追求所有细节完全一致,LaTeX 的排版机制本就优于Word。若是一定要弄成一样,就相当于一定要张学友唱歌时唱的和我们完全一样荒唐。 2. LaTeX 的排版机制允许很多长度参数在给定阈值附近浮动,以达到最后的效果。从而绝对的不变值并不是好的选择。 结论就是不会修改。祝好。 师兄,为何我把ucasthesis.cls中的\linespred{}从1.5改到1.6(甚至到2)没效果 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#134 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AF3WRRFCBHIFJXRJBX6QO63PRFLARANCNFSM4HCODLHQ .

谢谢建议,但测试依旧无效。

@e71828

This comment has been minimized.

Copy link

e71828 commented Apr 19, 2019

@hjr0

This comment has been minimized.

Copy link

hjr0 commented Apr 19, 2019

linespread在thesis.tex里也出现了一次,设置了后文的行距

On Fri, Apr 19, 2019, 13:46 hjr0 @.> wrote: 加后面\selectfont 试试 … <#m_-3521492979443935359_> On Fri, Apr 19, 2019, 13:37 hjr0 @.> wrote: 当前ucasthesis的各级标题距离是根据官方标准制定的,不会去参照一个来源不明的文档。至于为何距离有时与Word的有些许差异,这主要有两方面的原因: 1. LaTeX 与 Word 无法做到行间距等所有参数完全一致,现在调整后也只是使行数与每行字数一致,但不会去追求所有细节完全一致,LaTeX 的排版机制本就优于Word。若是一定要弄成一样,就相当于一定要张学友唱歌时唱的和我们完全一样荒唐。 2. LaTeX 的排版机制允许很多长度参数在给定阈值附近浮动,以达到最后的效果。从而绝对的不变值并不是好的选择。 结论就是不会修改。祝好。 师兄,为何我把ucasthesis.cls中的\linespred{}从1.5改到1.6(甚至到2)没效果 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#134 (comment) <#134 (comment)>>, or mute the thread https://github.com/notifications/unsubscribe-auth/AF3WRRFCBHIFJXRJBX6QO63PRFLARANCNFSM4HCODLHQ . 谢谢建议,但测试依旧无效。 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#134 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AF3WRREIIWBWU6A6EIY53TTPRFME5ANCNFSM4HCODLHQ .

以前的版本行距都在ucasthesis.sty中的linespread{1.2}中控制,cls中的都是无效的,新版把sty中注释掉了。主文档中的只是局部的吧

@e71828

This comment has been minimized.

Copy link

e71828 commented Apr 19, 2019

@hjr0

This comment has been minimized.

Copy link

hjr0 commented Apr 19, 2019

cls设置的是前文区,还有正文标题,thesis.tex中放在frontmatter之后的linespread针对的是正文。

On Fri, Apr 19, 2019, 14:04 hjr0 @.*> wrote: linespread在thesis.tex里也出现了一次,设置了后文的行距 … <#m_7848343176560994132_> On Fri, Apr 19, 2019, 13:46 hjr0 @.> wrote: 加后面\selectfont 试试 … <#m_-3521492979443935359_> On Fri, Apr 19, 2019, 13:37 hjr0 @.> wrote: 当前ucasthesis的各级标题距离是根据官方标准制定的,不会去参照一个来源不明的文档。至于为何距离有时与Word的有些许差异,这主要有两方面的原因: 1. LaTeX 与 Word 无法做到行间距等所有参数完全一致,现在调整后也只是使行数与每行字数一致,但不会去追求所有细节完全一致,LaTeX 的排版机制本就优于Word。若是一定要弄成一样,就相当于一定要张学友唱歌时唱的和我们完全一样荒唐。 2. LaTeX 的排版机制允许很多长度参数在给定阈值附近浮动,以达到最后的效果。从而绝对的不变值并不是好的选择。 结论就是不会修改。祝好。 师兄,为何我把ucasthesis.cls中的\linespred{}从1.5改到1.6(甚至到2)没效果 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#134 <#134> (comment) <#134 (comment) <#134 (comment)>>>, or mute the thread https://github.com/notifications/unsubscribe-auth/AF3WRRFCBHIFJXRJBX6QO63PRFLARANCNFSM4HCODLHQ . 谢谢建议,但测试依旧无效。 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#134 (comment) <#134 (comment)>>, or mute the thread https://github.com/notifications/unsubscribe-auth/AF3WRREIIWBWU6A6EIY53TTPRFME5ANCNFSM4HCODLHQ . 以前的版本行距都在ucasthesis.sty中的linespread{1.2}中控制,cls中的都是无效的,新版把sty中注释掉了。主文档中的只是局部的吧 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#134 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AF3WRRD346Z6MS3SK4TT2JLPRFOFBANCNFSM4HCODLHQ .

\frontmatter% initialize the environment
\input{Tex/Frontpages}% title page, abstract, dedication
{% content list region
\linespread{1.5}% local line space
%\intotoc{\contentsname}% add link to contents table and bookmark
\tableofcontents% contents catalog
%\intotoc{\listfigurename}% add link to contents table and bookmark
%\listoffigures% figures catalog
%\intotoc{\listtablename}% add link to contents table and bookmark
%\listoftables% tables catalog
这部分影响仅局限于content啊,我都测试了

@hjr0

This comment has been minimized.

Copy link

hjr0 commented Apr 19, 2019

当初要是不乱改,这会儿直接整体更新问题就不大了。。。。。

@mohuangrui

This comment has been minimized.

Copy link
Owner

mohuangrui commented Apr 19, 2019

@hjr0 你可能在其他地方还启用了 linespread 命令,你把 Thesis.tex, .cls, cfg, .sty 文件都查一遍就知道了。

@hjr0

This comment has been minimized.

Copy link

hjr0 commented Apr 19, 2019

@hjr0 你可能在其他地方还启用了 linespread 命令,你把 Thesis.tex, .cls, cfg, .sty 文件都查一遍就知道了。

嗯,多谢师兄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.