![如何格式化参考书目以避免页面超限?](https://linux22.com/image/407623/%E5%A6%82%E4%BD%95%E6%A0%BC%E5%BC%8F%E5%8C%96%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE%E4%BB%A5%E9%81%BF%E5%85%8D%E9%A1%B5%E9%9D%A2%E8%B6%85%E9%99%90%EF%BC%9F.png)
正如标题所示,当包含网站时,我的一些参考资料会超出页面范围。我该如何让它换行到下一行?
问题示例:
最小示例:
\documentclass[12pt,a4paper]{article}
\usepackage{hyperref}
\usepackage{natbib}
\bibliographystyle{apalike}
\begin{document}
\section{Abstract}
The future development of cities is critical for providing the spatial foundations for a society with cleaner modes of production and consumption \citep{aila2014,dpcd2009}.
\bibliography{My_Library}
\end{document}
和My_library
:
@misc{aila2014,
title = {2014 {{AILA VIC Award Winners}}},
author = {{AILA}},
year = {2014},
howpublished = {https://www.aila.org.au/imis\_prod/AILAWeb/Chapters/VIC/2014\_AILA\_VIC\_Award\_Winners.aspx},
journal = {Australian Institute of Landscape Architects}
}
@misc{dpcd2009,
title = {Urban {{Design}}},
author = {{DPCD}},
year = {2009},
month = jul,
howpublished = {https://web.archive.org/web/20090703094547/http://www.dse.vic.gov.au/DSE/nrenpl.nsf/childdocs/-A8F9628C2B9FCDF8CA2572DA007DFD52?open},
journal = {Department of Planning and Community Development}
}
答案1
如果您将 URL 包装在 中\url
,效果会非常好!
@misc{aila2014,
title = {2014 {{AILA VIC Award Winners}}},
author = {{AILA}},
year = {2014},
howpublished = {\url{https://www.aila.org.au/imis\_prod/AILAWeb/Chapters/VIC/2014\_AILA\_VIC\_Award\_Winners.aspx}},
journal = {Australian Institute of Landscape Architects}
}
@misc{dpcd2009,
title = {Urban {{Design}}},
author = {{DPCD}},
year = {2009},
month = jul,
howpublished = {\url{https://web.archive.org/web/20090703094547/http://www.dse.vic.gov.au/DSE/nrenpl.nsf/childdocs/-A8F9628C2B9FCDF8CA2572DA007DFD52?open}},
journal = {Department of Planning and Community Development}
}
在里面文档对于 Zotero 扩展“Better BibTeX”,可以添加 Javascript 代码来设置某些字段的首选项。第一个示例展示了如果条目类型为 ,如何在 BibTeX 字段的\url
URL 前添加 -Tag 。例如,这可以更改为。howpublished
webpage
misc
if (Translator.BetterBibTeX && item.itemType === 'webpage') {
if (item.url) {
reference.add({ name: 'howpublished', bibtex: "{\\url{" + reference.enc_verbatim({value: item.url}) + "}}" });
}
}