Git Product home page Git Product logo

Comments (19)

huxuan avatar huxuan commented on June 24, 2024

sample里面有这种情况么?参考文献真没怎么测试的说……
你的参考文献最后一页是不是特别满?如果是这样的话可能是因为有一部分空当被挤到下一页了,可以临时先删一两个参考文献然后看看问题还有没有吧。如果是的话,临时的解决方案只能是增加或减少点参考文献内容,如果你比较着急的话。
我现在在外面是手机,回去了再看看代码能不能改。

from buaathesis.

grissiom avatar grissiom commented on June 24, 2024

2012/12/8 Sean Hu [email protected]

sample里面有这种情况么?参考文献真没怎么测试的说……

你的参考文献最后一页是不是特别满?如果是这样的话可能是因为有一部分空当被挤到下一页了,可以临时先删一两个参考文献然后看看问题还有没有吧。如果是的话,临时的解决方案只能是增加或减少点参考文献内容,如果你比较着急的话。
我现在在外面是手机,回去了再看看代码能不能改。

估计不是这个原因。在 reference.tex 里有个 cleardoublepage …… 这个状况跟我对
clearempltydoublepage 的状况类似。有没有什么方法能在文档里判断当前 side 模式的?

Cheers,
Grissiom

from buaathesis.

JosephPeng avatar JosephPeng commented on June 24, 2024

@huxuan 这个问题是由于\data\reference.tex最后加了一个“\cleardoublepage”引起的,删除掉即可。
@grissiom 这个cleardoublepage是相当于强制要求“参考文献”的下一章从奇数页起始,我测试了一下和side模式没关系,因为无论是参考文献还是附录,都是作为chapter来处理的。
对于如何在文档中判断side模式,可以通过以下代码来判断。但我个人觉得目前对于oneside、twoside模式,已经处理得比较完善了,不需要再进行其他处理。

\makeatletter
\if@twoside
    此处是twoside的内容
\else
    此处是oneside模式的内容
\fi
\makeatother

from buaathesis.

huxuan avatar huxuan commented on June 24, 2024

@JosephPeng 那samples里是不是最好还是改一下?

from buaathesis.

JosephPeng avatar JosephPeng commented on June 24, 2024

@huxuan
嗯,需要改一下,这个其实是我的错误,当初写的时候没有考虑这个,直接在参考文献那儿就加上了cleardoublepage了,后来也没管这个.tex文件了。真是抱歉。

from buaathesis.

huxuan avatar huxuan commented on June 24, 2024

@JosephPeng 哦,没事,主要还是解决问题嘛,我主要是想问是不是可以直接去掉?或者换句话说如果再twoside的情况下,参考文献没有以偶数页结尾是不是不好?不知道我表述的是否清楚……

from buaathesis.

grissiom avatar grissiom commented on June 24, 2024

2012/12/8 Sean Hu [email protected]

@JosephPeng https://github.com/JosephPeng哦,没事,主要还是解决问题嘛,我主要是想问是不是可以直接去掉?或者换句话说如果再twoside的情况下,参考文献没有以偶数页结尾是不是不好?不知道我表述的是否清楚……

在 towside 的情况下参考文献最好还是以偶数页结尾为好吧,感觉……

Cheers,
Grissiom

from buaathesis.

huxuan avatar huxuan commented on June 24, 2024

@grissiom 哦,确实,参考文献貌似不是最后一页内容是吧,那可能最好就得分情况一下,那怎么改比较gentle呢?直接重定义cleardoublepage貌似不太好,要不新定义一个clearreferencepage?

from buaathesis.

grissiom avatar grissiom commented on June 24, 2024

2012/12/9 Sean Hu [email protected]

@grissiom https://github.com/grissiom哦,确实,参考文献貌似不是最后一页内容是吧,那可能最好就得分情况一下,那怎么改比较gentle呢?直接重定义cleardoublepage貌似不太好,要不新定义一个clearreferencepage?

感觉就用上面提到的if判断方法就好~

Cheers,
Grissiom

from buaathesis.

huxuan avatar huxuan commented on June 24, 2024

感觉就用上面提到的if判断方法就好~

嗯,我主要考虑的是两点

  • 最好不要再data/reference.tex里面修改,尽量不要把这些东西暴露给user
  • 最好不要直接修改cleardoublepage或者clearemptydoublepage,应该从语义上来说,这两个命令都是用于twoside模式的,如果直接修改的话不是很合理

所以现在我能想到的比较好的解决办法就是再buaathesis.cls下添加大致如下的代码

\newcommand{\clearreferencepage}{
    \if@twoside
        \cleardoublepage
    \else
        \clearpage
    \if
}

然后在data/reference.tex里面用\clearreferencepage代替目前的\cleardoublepage,你们觉得这样可行不?

from buaathesis.

JosephPeng avatar JosephPeng commented on June 24, 2024

@grissiom @huxuan
我个人认为目前 reference.tex和buaathesis.cls对于“参考文献”不需要再进行其他的处理。

  • 在oneside时,所有页面均单面打印,不存在“参考文献没有以偶数页结尾”的情况。
  • 在twoside时,有openright和openany选项来控制,user使用openright(推荐此选项)时,每章均以偶数页结束;使用openany选项时,就由user去处理“参考文献”后是否需要空白一页,使附录在奇数页起始。

from buaathesis.

huxuan avatar huxuan commented on June 24, 2024

@JosephPeng 我也同意计量避免修改,不过根据 @hellobiek 的反馈来看,现在应该是在使用oneside的时候会多一页参考文献空白页,我觉得有必要解决一下这个问题。

from buaathesis.

JosephPeng avatar JosephPeng commented on June 24, 2024

@huxuan I have remove the command "\cleardoublepage" in pull #113

from buaathesis.

huxuan avatar huxuan commented on June 24, 2024

@JosephPeng As @grissiom and I discussed in above comments, there do need a empty page of reference in default twoside mode, so simply remove \cleardoublepage doesn't seem to solve the problem completely. That's why I want to have a new command something like \clearsidepage which behave differently in different side mode.

from buaathesis.

JosephPeng avatar JosephPeng commented on June 24, 2024

Does it necessary for BUAAThesis to add that blank page? Or, should we left that to user, to choose which one is the best for his/her thesis?

from buaathesis.

huxuan avatar huxuan commented on June 24, 2024

I think it should depends on twoside or oneside option.
For oneside, no empty page need absolutely.
For twoside, there do need a \cleardoublepage at end of each chapter including 'reference' chapter, otherwise the appedix page or '攻读博士/硕士学位期间取得的学术成果' page may begins with even page number. I do not think this is right. What's your opinion?

from buaathesis.

JosephPeng avatar JosephPeng commented on June 24, 2024

我个人觉得此举还是有些画蛇添足。只有在twoside && openany 的情况下,才有可能会使后面的附录中某些章从偶数页开始。
而且我也觉得把"\cleardoublepage"这个命令交给user来使用更为合适或合理些,而不是由模板编写者来处理或决定是否需要在某个地方插入一页空白。

from buaathesis.

huxuan avatar huxuan commented on June 24, 2024

@JosephPeng 我错了,想当然的以为去掉\cleardoublepage就会少了那个空白页了,原来还和openright和openany有关,既然如此那直接在reference.tex里面删掉就好了。不过第二个观点我不是太认同,我希望尽可能把比较高级的东西都对用户隐藏起来,我觉得这才是写一个模板的初衷,让大家尽可能多的专注于内容,而无需关心格式相关的东西。

这和问题本身已经没有关系了,我也觉得这个问题讨论的比较透彻了,感谢 @JosephPeng 的耐心解释和坚持。
@grissiom 如果觉得没什么问题的话,这个话题就结了吧。

from buaathesis.

grissiom avatar grissiom commented on June 24, 2024

哦了…… 多谢两位……

from buaathesis.

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.