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

参考文献间距太大 #118

Closed
hellobiek opened this issue Dec 13, 2012 · 17 comments
Closed

参考文献间距太大 #118

hellobiek opened this issue Dec 13, 2012 · 17 comments
Assignees
Labels

Comments

@hellobiek
Copy link

这个间距怎么调整?

@JosephPeng
Copy link
Member

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

@hellobiek
Copy link
Author

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

@JosephPeng
Copy link
Member

@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.

@hellobiek
Copy link
Author

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

@hellobiek
Copy link
Author

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

@hellobiek
Copy link
Author

\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}

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

@JosephPeng
Copy link
Member

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

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

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

@huxuan
Copy link
Member

huxuan commented Dec 15, 2012

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.

@hellobiek
Copy link
Author

Yes,I agree with the "problem" idea.

@JosephPeng
Copy link
Member

@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.

@huxuan
Copy link
Member

huxuan commented Dec 15, 2012

@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

@huxuan huxuan reopened this Dec 15, 2012
@JosephPeng
Copy link
Member

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

@huxuan
Copy link
Member

huxuan commented Dec 15, 2012

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

@grissiom
Copy link
Member

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.

@huxuan
Copy link
Member

huxuan commented Dec 16, 2012

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

@JosephPeng
Copy link
Member

@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."

@huxuan
Copy link
Member

huxuan commented Dec 16, 2012

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

@ghost ghost assigned huxuan Dec 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants