Git Product home page Git Product logo

Comments (17)

JosephPeng avatar JosephPeng commented on June 25, 2024

目前模板中有这个问题?待确认。
参考文献间距调整可参考 http://blog.sina.com.cn/s/blog_5e16f1770100ldv5.html 以及 http://blog.sina.com.cn/s/blog_5e16f1770100k9hk.html

from buaathesis.

hellobiek avatar hellobiek commented on June 25, 2024

http://blog.sina.com.cn/s/blog_5e16f1770100k9hk.html
中好像可以解决这个问题,但是我不知道把
\usepackage[numbers,sort&compress]{natbib}
\setlength{\bibsep}{0.5ex} % vertical spacing between references
放在什么地方.......

from buaathesis.

JosephPeng avatar JosephPeng commented on June 25, 2024

@huxuan Could you send a pull to fix this bug?
http://blog.sina.com.cn/s/blog_5e16f1770100ldv5.html This might be the solution for this bug.

from buaathesis.

hellobiek avatar hellobiek commented on June 25, 2024

谢谢指导 ,但是我现在的参考文献的标题的“参考文献”几个字变成了 “reference”了.....

from buaathesis.

hellobiek avatar hellobiek commented on June 25, 2024

而且还不居中了。我的命令就是
\usepackage{bibspacing}
\setlength{\bibspacing}{\baselineskip}

from buaathesis.

hellobiek avatar hellobiek commented on June 25, 2024

\newdimen\bibindent
\setlength\bibindent{1.5em}
\newdimen\bibspacing
\setlength\bibspacing\z@
\renewenvironment{thebibliography}[1]{%
\section*{\refname
@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
\list{@biblabel{@Arabic\c@enumiv}}%
{\settowidth\labelwidth{@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\itemsep\z@skip % should this be commented out?
\parsep\z@skip % should this be commented out?
@OpenBib@code
\usecounter{enumiv}%
\let\p@enumiv@empty
\renewcommand\theenumiv{@Arabic\c@enumiv}}%
\sloppy\clubpenalty4000\widowpenalty4000%
\sfcode\.\@m} {\def\@noitemerr {\@latex@warning{Emptythebibliography' environment}}%
\endlist}

上面的这段代码 哪里改了名字了?改了居中?

from buaathesis.

JosephPeng avatar JosephPeng commented on June 25, 2024

目测把 \setlength{\bibsep}{0.5ex} 加在下面的代码后面即可。

\bibliographystyle{buaathesis} % 参考文献格式
\RequirePackage[sort&compress]{natbib}
    \bibpunct{[}{]}{,}{n}{}{}

关于bibspacing或natbibspacing这个包为啥会引起你所说的问题,这个还有待研究。

from buaathesis.

huxuan avatar huxuan commented on June 25, 2024

hi, I would rather classify this issue as a problem rather than a bug.
We can simply add \setlength{\bibsep}{0.5ex} in sample-[master|bachelor].tex before \begin{document} to achieve the goal.
I would like to introduce such kind of customization in buaacthesis.cls as less as possible. As it's not clearly defined by school and default style not seems to be too bad.

from buaathesis.

hellobiek avatar hellobiek commented on June 25, 2024

Yes,I agree with the "problem" idea.

from buaathesis.

JosephPeng avatar JosephPeng commented on June 25, 2024

@huxuan I don't think the redundant space after reference items is necessary, i.e. do nothing about that is not recommended.
There is no redundant space after reference items in most of published books or thesis. So I think the this issue's problem might(should) be solved rather than leave it alone.

from buaathesis.

huxuan avatar huxuan commented on June 25, 2024

@JosephPeng Then what's the space do you think is the suitable one?
After searching on the Internet, there are two main length, one is 0pt and the other is 0.5ex

from buaathesis.

JosephPeng avatar JosephPeng commented on June 25, 2024

@huxuan the \baselineskip might be the suitable space for that. I don't know the exact distance.

from buaathesis.

huxuan avatar huxuan commented on June 25, 2024

@JosephPeng I have tried \baselineskip but this will create one extra empty line between each bib items.

from buaathesis.

grissiom avatar grissiom commented on June 25, 2024

I think we have misunderstood what \bibsep means. natbib.pdf said:

\bibsep
The vertical spacing between references in the list, whether author-year
or numerical, is controlled by the length\bibsep. If this is set to 0 pt, there
is no extra line spacing between references. The default spacing depends
on the font size selected in\documentclass, and is almost a full blank line.
Change this by redening\bibsepwith\setlengthcommand.

It means the extra space between items but not the absolute space. So it seems better to set bibsep to 0.

from buaathesis.

huxuan avatar huxuan commented on June 25, 2024

@grissiom The problem we need to judge now is just the space length between bib items.
因为全局大部分正文的行距都是1.5倍行距吧,所以单纯的置为0是不是也有些不妥?
Maybe 0.5\baselineskip better?
主要感觉自己没明白行距这些东西具体的定义……

from buaathesis.

JosephPeng avatar JosephPeng commented on June 25, 2024

@huxuan @grissiom Thanks for your explanations, in my opinion, set the bibsep to 0pt might be the perfect choice for now.
i.e. add the command \setlength{\bibsep}{0pt} after the command \RequirePackage[sort&compress]{natbib} .
Plus, in the natbib.pdf, what the command \bibsep says "The default spacing depends on the font size selected in \documentclass, and is almost a full blank line.", "If this is set to 0 pt, there is no extra line spacing between references."

from buaathesis.

huxuan avatar huxuan commented on June 25, 2024

OK, then I will update it as soon as possible.

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.