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

个别参考文献换行时,url中会出现空格(可能不是本包的bug) #38

Closed
dastony opened this issue Jul 4, 2018 · 3 comments

Comments

@dastony
Copy link

dastony commented Jul 4, 2018

refs.bib文件

% Encoding: UTF-8


@Online{zuihen,
  author       = {滴滴北京},
  title        = {滴滴大数据 | 2016年最“狠”公司大揭秘},
  year         = {2016},
  url          = {https://mp.weixin.qq.com/s?__biz=MzI3NjAyODM0NQ==&mid=2650506049&idx=2&sn=38698a2abe64348969f064704c62ae02},
  organization = {滴滴北京},
}

@Comment{jabref-meta: databaseType:biblatex;}

main.tex文件:

\documentclass[UTF8, a4paper, twoside, openany, zihao =
-4, scheme=chinese, no-math]{ctexbook}

\XeTeXgenerateactualtext=1

\usepackage[backend=biber,style=gb7714-2015,backref=true]{biblatex}
\addbibresource[location=local]{refs.bib}

\usepackage{amsmath, amssymb, xfrac, hyperref}
\renewcommand{\bibfont}{\zihao{5}}

\usepackage{ geometry}

\geometry{%
  a4paper,
  heightrounded,
  % scale=0.7
  % margin=0cm,
  % marginparsep = 0.5cm,
  % marginparwidth=1cm,
  top = 3cm,
  bottom = 3cm,
  left = 2.6cm,
  right = 2.6cm,
  headheight = 6mm,
  headsep = 5mm,
  footskip = 10mm,
  % outer = 2.5cm,
  % inner = 2.5cm
}


\begin{document}

\frontmatter

\chapter{hahaha}
test bib\cite{zuihen}。

\printbibliography[heading=bibnumbered,title=参考文献]

\backmatter

\end{document}

显示效果:

[1] 滴滴北京. 滴滴大数据| 2016 年最“狠”公司大揭秘[EB/OL]. 滴滴北京. (2016). https :
/ / mp . weixin . qq . com / s ? _ _ biz = MzI3NjAyODM0NQ = = & mid = 2650506049 & idx = 2 & sn =
38698a2abe64348969f064704c62ae02 (引用页: i).

如果修改geometry,使http://xxx.xxx.com 不在 https:后换行,则不会添加空格。

@hushidong
Copy link
Owner

url换行由下面三个计数器控制,值越大,越容易断行。可以在导言区加如下命令
\setcounter{biburlnumpenalty}{100} %让url可以在数字后断行
\setcounter{biburlucpenalty}{100} %让url可以在大写字母后断行
\setcounter{biburllcpenalty}{100} %让url可以在小写字母后断行

也可以更新一下新版本,老版本没有做默认要断行设置所以有这情况。

@sd44
Copy link

sd44 commented Oct 13, 2018

新版本确实是解决了,请关闭这个issue吧。

最主要的是想来再次说句,这个包做的太棒了……即使是很小的细节都注意到了,提供了简易的使用方法,并且几乎遇不到BUG……

@hushidong
Copy link
Owner

过奖啦!能让大家用的上是很开心的事。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants