在论文应用URL参考文献的过程中, 总感觉编译出来的格式怪怪的,而且最严重的的一个问题是,若URL标题比较短,而URL地址比较长的时候,URL的标题部分会被横向拉伸以填充整行的长度,从而导致单词之间的间隔特别大。解决这个问题也很简单,主要就是使用\url{}来处理URL地址。但是这个\url{URL地址}部分放到哪个字段里,在网上找到两种不同的说法:

一篇比较老的外文教程是这么说的,网址http://www.kronto.org/thesis/tips/url-formatting.html

Answer

Use the url package by Donald Arseneau.


Example usage

In the preamble:

\usepackage{url}%% Define a new 'leo' style for the package that will use a smaller font.
\makeatletter
\def\url@leostyle{%\@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\ttfamily}}}
\makeatother
%% Now actually use the newly defined style.
\urlstyle{leo}

In a BibTEX entry:

@misc{c.elmohamed,author = "Saleh Elmohamed",title = "Examples in {H}igh {P}erformance {F}ortran",howpublished = "Website",year = {1996},note = {\url{http://www.npac.syr.edu/projects/cpsedu/summer98summary/ examples/hpf/hpf.html}}
}

Result, before


Result, after


Things to watch out for

I tweak the default url style to use a smaller version of the typewriter font because I otherwise find that the Adobe Courier font I use (see also the Using Courier tip) displays a bit too large for my tastes, but also because the larger font still causes more spacing ugliness (in terms of underfull hboxes), as illustrated by the following screenshot:

If strange ‘%’ signs start appearing in the list of references in the bibliography section, this is because BibTEX inserts those when it encounters a line it feels is too long:

This is purely a BibTEX thing: inside a URL being handled by the url package, the line won't actually be too long — after all the whole idea is for url to be responsible for splitting it. The solution, as shown in the listing given earlier, is to add some stray whitespace to the long url. BibTEX will then no longer think the line is too long, and \url{} ignores all whitespace anyway, so it will not appear in the output.

The biggest problem with the url package is that you do not use it in your LATEX source file, but in your BibTEX source files, thus making your bibliographies non-portable: once you start using \url{} in your BibTEX entries, you will be forced to include the url package in all your LATEX files that use that bibliography file.

在StackExchange上有人的回答是这样的,网址http://tex.stackexchange.com/questions/35977/how-to-add-a-url-to-a-latex-bibtex-file

这个网页的内容不好复制,就不贴在这里了,只给出一段例子

@misc{bworld,author = {Ingo Lütkebohle},title = {{BWorld Robot Control Software}},howpublished = "\url{http://aiweb.techfak.uni-bielefeld.de/content/bworld-robot-control-software/}",year = {2008}, note = "[Online; accessed 19-July-2008]"
}

两个的相同之处在于:

都使用的@misc标签,URL标题放到title字段中,URL地址需要包含到"\url{}"中。都需要引入url包,\usepackage{url}.

两个的不同之处在于:

第一种说法中,"\url{}"部分放到note字段中;第二种说法里,"\url{}"部分放到howpublished字段中,经过实际验证,放在哪个字段中,对最终肉眼可见的格式没有任何影响(至于有没有什么理论上的,含义上的或者编译中的潜在不兼容或者冲突目前不得而知)。

如何在参考文献中优雅地引用URL?How do you get nicely formatted URLs in the bibliography?相关推荐

  1. Mendeley+LaTex: 如何在Latex中优雅的插入引用文献

    结合Mendeley在LaTex中插入并引用参考文献十分方便与便捷. 步骤如下: 1)在Mendeley中导入文献 2)选中文献,鼠标右键-->Update Details Mendeley的好 ...

  2. mendeley中如何重复引用同一篇参考文献_免费文献管理器 Mendeley,其实比你想象的好用!...

    作为科研搬砖者,相信大家都知道文献管理器到底是一个多重要的搬砖小推车. 然而,Mendeley 作为文献管理器,好多小伙伴都不了解,认为它只是一个插入文献的单一工具,但其实 Mendeley 比你想象 ...

  3. word怎么删除参考文献的横线_教大家word2016怎么去掉引用参考文献中的横线

    近日有关于word2016怎么去掉引用参考文献中的横线的问题受到了很多网友们的关注,大多数网友都想要知道word2016怎么去掉引用参考文献中的横线的具体情况,那么关于到word2016怎么去掉引用参 ...

  4. Word中使用交叉引用插入多个参考文献

    Word中使用交叉引用插入多个参考文献 在word中的一个引用插入多个文献时,比如 第一步:点击交叉引用将[45].[47]这两个文献插入. ----------------- 第二步:右键刚插入的文 ...

  5. word中插入参考文献标号以及如何引用参考文献

    word中插入参考文献标号以及如何引用参考文献https://jingyan.baidu.com/article/e6c8503c1a7ed2e54f1a18fd.html 针对多个参考文献,可以参考 ...

  6. 毕业论文(二)文章中多次引用同一参考文献的不同内容该如何标注

    在写毕业论文的时候会用到同一片文章中的内容. 为了规范参考文献的标注,因此作以下记录. 例如要引用的论文是A,在自己写的论文中第一处引用了A中204页的内容,那么在文中标注[1]204,在第二处引用了 ...

  7. 参考文献起止页码怎么写_参考文献中引用了专著中的某一句话,起止页码该如何写?...

    1. 专著著录格式 [序号]著者.书名[M].版本(第一版不写).出版地:出版者,出版年:起止页码 例:[1]孙家广,杨长青.计算机图形学[M].北京:清华大学出版社,1995:26-28 2. 期刊 ...

  8. 论文中同一位置引用多篇参考文献

    论文中同一位置引用多篇参考文献 1.这里需要插入参考文献[1][2][3][4][5],首先正确引用参考文献[1][5],中间用-连接 2.将光标放到[1]上右击,如图 选择切换域代码,添加\#&qu ...

  9. mendeley中如何重复引用同一篇参考文献_如何写好科学论文

    科学论文 科学论文是描述原始研究成果的书面报告,其格式已被几个世纪发展中的传统.编辑实践.科学伦理以及与印刷和出版服务的相互作用所定义.这一过程的结果是,几乎每一篇科学论文都有标题.摘要.引言.材料和 ...

最新文章

  1. Andriod anim alpha中的属性介绍
  2. 第三次学JAVA再学不好就吃翔(part43)--局部内部类访问局部变量
  3. centos一键清理磁盘空间_如何清理 Docker 占用的磁盘空间
  4. JEECG常见问题大全征集
  5. SQL Server 数据库调整表中列的顺序操作
  6. 保护你的Sqlite数据库(SQLite数据库安全秘籍)
  7. python之路_mysql数据操作1
  8. ペイペイ mini program_小姐姐最爱的MINI,你了解吗?
  9. let,with,run,apply,also函数区别
  10. 兔子的烦恼(一)【NYOJ】
  11. 元转万元单位换算_度数单位换算(元换算成万元换算器)
  12. php后门文件,php后门屌炸天
  13. ECDSA私钥der格式
  14. 某资讯App signature签名分析 (一)
  15. 聚观早报|苹果默认不再接受隔空投送;Mete被裁员工将获薪水补偿
  16. 蓝宇数码冲刺深交所:年营收2.72亿 郭振荣控制45%股权
  17. 如何通过交互设计增强用户体验
  18. 2020-12-26 工作常用 Linux 操作:磁盘卸载、 自动化挂盘脚本 、磁盘分区合并、ansible、git 设置相关
  19. JAVA面试题-文思海辉-花旗银行
  20. 怎么样可以让计算机固定在桌面,怎样固定电脑桌面图标

热门文章

  1. 谈谈asp.net中的% %,%= %,%# %%$ %的使用
  2. [Apache]安装中出现的问题
  3. ASP.NET MVC 2.0 AsyncController(转)
  4. Linux 修改SSH端口 和 禁止Root远程登陆
  5. Wap wml开发中需要注意的地方
  6. text html mime img,使用Python的email.mime.multipart发送HTML邮件时命...
  7. integer 最大值_JAVA源码之Integer
  8. 周二直播丨数据库上云趋势下,如何面对海量数据迁移及落地实践
  9. 另辟蹊径:从其他角度去解决数据库问题
  10. 直播丨国产最强音:HTAP融合型分布式数据库EsgynDB架构详解