Giter Site home page Giter Site logo

章与节间的间距有问题 about thuthesis HOT 23 CLOSED

tuna avatar tuna commented on May 14, 2024
章与节间的间距有问题

from thuthesis.

Comments (23)

shenyp09 avatar shenyp09 commented on May 14, 2024

在仔细检查后发现,似乎每一级节标题见如果之间相连没有文字都存在间距过大的问题

from thuthesis.

alick avatar alick commented on May 14, 2024

印象中是因为chapter下方和section上方都有规定的边距,二者叠加造成的。
照我的理解这样才是符合格式规范的。Word 模板里没有这样,间距被压缩了。

我当时为了绕开这个问题,貌似每章开始都先扯几句……

On Wed, 15 May 2013 18:57:42 -0700, Ryan F. Shen wrote:

当在章标题下面没有文字直接开始本章第一节的时候,会出现间距变大的问题,如
您给出的示例的第二章。


Reply to this email directly or view it on GitHub
https://github.com/xueruini/thuthesis/issues/57.

from thuthesis.

shenyp09 avatar shenyp09 commented on May 14, 2024

因为学校给的示例文件是压缩了间距的,所以我也不确定这样能不能通过格式审查。此外似乎附录的上部页边距也和示例不一样,太大了。

from thuthesis.

alick avatar alick commented on May 14, 2024

可以试试,让你改的时候再改~

PS: 用的模板是本科、硕士、还是博士?

from thuthesis.

shenyp09 avatar shenyp09 commented on May 14, 2024

本科~

from thuthesis.

alick avatar alick commented on May 14, 2024

我当时的见闻:http://www.newsmth.net/nForum/#!article/TeX/314209?p=1#a0
所以我觉得不用担心,不过这个可能因人而异。

至于 latex 中能否容易地实现根据是否中间有文字而改变节间距,我不知道。而且觉得这需求比较奇怪……

from thuthesis.

alick avatar alick commented on May 14, 2024

实在需要的话,在文档里用 \vskip-10pt 之类或添加段落更容易~

from thuthesis.

lockmatrix avatar lockmatrix commented on May 14, 2024

这个能改还是改下吧,话说这个技术上有方法么?

from thuthesis.

xueruini avatar xueruini commented on May 14, 2024

可以把@makechapterhead和@makeschapterhead定义中最后一句中的\vskip改成\addvspace.

因为:\section通过@startsection定义,其中的beforeskip是通过\addvspace实现的,而且是section中第一个vspace指令,这样可以利用\addvspace的一个特点:\addvspace{s1}\addvspace{s2}
is equivalent to \addvspace{max{s1, s2}}。

理论分析,未做过验证,希望能有所帮助。

On Fri, May 17, 2013 at 2:54 AM, Locke [email protected] wrote:

这个能改还是改下吧,话说这个技术上有方法么?


Reply to this email directly or view it on GitHubhttps://github.com/xueruini/thuthesis/issues/57#issuecomment-18046482
.

from thuthesis.

lockmatrix avatar lockmatrix commented on May 14, 2024

经测试似乎没效果……

from thuthesis.

xueruini avatar xueruini commented on May 14, 2024

我再研究一下

On Sun, May 19, 2013 at 10:35 AM, Locke [email protected] wrote:

经测试似乎没效果……


Reply to this email directly or view it on GitHubhttps://github.com/xueruini/thuthesis/issues/57#issuecomment-18111329
.

from thuthesis.

xwwell avatar xwwell commented on May 14, 2024

我现在正在用模板(博士论文),也发现了这个问题,不知道4月份提交上去的时候会不会过审。。。

有解决方案了吗?临时解决方案也行啊?

v4.8dev + xelatex + Textlive + Win 7

from thuthesis.

shenyp09 avatar shenyp09 commented on May 14, 2024

我的已经通过了,查的不严。事先跟教务处的老师打好招呼,老师pdf版基本不查格式

来自 MEIZU MX

-------- 原始邮件 --------
发件人:xwwell [email protected]
时间:周日 2月23日 16:54
收件人:xueruini/thuthesis [email protected]
抄送:"Ryan F. Shen" [email protected]
主题:Re: [thuthesis] 章与节间的间距有问题 (#57)

我现在正在用模板,也发现了这个问题,不知道4月份提交上去的时候会不会过审。。。

有解决方案了吗?临时解决方案也行啊?

v4.8dev + xelatex + Textlive + Win 7


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

from thuthesis.

xwwell avatar xwwell commented on May 14, 2024

多谢回复!

啥叫提前跟教务老师打招呼啊(提前说明用latex写的?),是系里查格式的老师还是学校教务老师?

另外还有个问题啊,我编译出来的PDF很大(估计有20、30M),学校对提交的PDF文件大小有要求吗?

from thuthesis.

shenyp09 avatar shenyp09 commented on May 14, 2024

跟系里教务处老师说一下用latex,部分系不允许用latex,就需要说一下。

我的pdf很小,你的可能图比较多吧。没听说过限制文件大小。

来自 MEIZU MX

-------- 原始邮件 --------
发件人:xwwell [email protected]
时间:周日 2月23日 17:57
收件人:xueruini/thuthesis [email protected]
抄送:"Ryan F. Shen" [email protected]
主题:Re: [thuthesis] 章与节间的间距有问题 (#57)

多谢回复!

啥叫提前跟教务老师打招呼啊(提前说明用latex写的?),是系里查格式的老师还是学校教务老师?

另外还有个问题啊,我编译出来的PDF很大(估计有20、30M),学校对提交的PDF文件大小有要求吗?


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

from thuthesis.

alick avatar alick commented on May 14, 2024

我在上面的留言里提到过 walkaround,一是每章开头扯一段话;二是手动加 \vskip-10pt 之类的调整。

from thuthesis.

alick avatar alick commented on May 14, 2024

@xueruini 之前研究有结果没?有没解决方案?

from thuthesis.

xueruini avatar xueruini commented on May 14, 2024

sorry,没再研究这个问题了。。。

On Fri, Mar 13, 2015 at 6:49 PM, Alick Zhao [email protected]
wrote:

@xueruini https://github.com/xueruini 之前研究有结果没?有没解决方案?


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

from thuthesis.

thuFangZhang avatar thuFangZhang commented on May 14, 2024

试了一下,写成以下代码就存在间距不对的问题:

\chapter{结论} % (fold)
\label{cha:conc}

部分结论(其实这个地方不想写内容)

\section{结论1} % (fold)
\label{sec:conc_conc}

而写成以下代码就没有间距问题:

\chapter{结论} % (fold)
\section{结论1} % (fold)
\label{sec:conc_conc}

也就是说,\chapter 后面不跟着label就没有问题,这样一个弱弱的解决方案就是 遇到这种情况 就不加 label 了...

from thuthesis.

alick avatar alick commented on May 14, 2024

感谢 @thuFangZhang 启发!经过测试发现应该是 \@chapter 重定义时忘了 \@afterheading 的缘故。请测试 #102 中的修正版本。

from thuthesis.

alick avatar alick commented on May 14, 2024

@shenyp09

在仔细检查后发现,似乎每一级节标题见如果之间相连没有文字都存在间距过大的问题

是这样吗?我没感觉到……如果真有的话,我也不知道是什么缘故了……

from thuthesis.

thuFangZhang avatar thuFangZhang commented on May 14, 2024

@alick 经过测试 Texlive 2014 + xelatex / pdflatex ,章与节之间的距离改过来了。

同时,各级标题之间都没问题,没有前面说的 “似乎每一级节标题见如果之间相连没有文字都存在间距过大的问题”。

from thuthesis.

xueruini avatar xueruini commented on May 14, 2024

👍

在 2015年4月18日,09:17,thuFangZhang [email protected] 写道:

@alick 经过测试 Texlive 2014 + xelatex / pdflatex ,章与节之间的距离改过来了。

同时,各级标题之间都没问题,没有前面说的 “似乎每一级节标题见如果之间相连没有文字都存在间距过大的问题”。


Reply to this email directly or view it on GitHub.

from thuthesis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.