我正在为工作中建立的网站准备文档,我想引用相关的在线参考资料。这是该*.bib
文件的摘录:
%
% How to Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 18.04
%
@misc{Ellingwood2018,
author = {Justin Ellingwood},
howpublished = {DigitalOcean Community Tutorials},
month = {Jul},
note = {[Online; accessed 25. Jan. 2020]},
title = {How to Set Up Django with Postgres, Nginx, and Gunicorn
on Ubuntu 18.04},
url = {https://www.digitalocean.com/community/tutorials/
how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-
ubuntu-18-04},
year = {2018}
}
%
% Setting up python, pipenv and jupyter notebook on Ubuntu 18.04
%
@misc{Brown2018,
title = {Setting up python, pipenv and jupyter notebook on Ubuntu 18.04},
year = {2018},
month = {May},
author = {Matthew Brown},
note = {[Online; accessed 25. Jan. 2020]},
url = {https://matthewbrown.io/2018/05/05/setting-up-my-python-workspace-
2018/}
}
就个人喜好而言,我喜欢将参考书目输入字段对齐,每行的最大长度为 80 个字符。因此,URL 字段条目确实包含换行符,这些换行符将像%20
在生成的 PDF 中一样呈现,如下所示:
包含此书目的最小 LaTeX 文件是:
\documentclass{article}
\usepackage[backend=biber, bibencoding=utf8, style=alphabetic]{biblatex}
\addbibresource{./000_cs.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
我提到了以下问题这里和这里但我仍然无法确定如何防止%20
在保留换行符的同时渲染。我确信我遗漏了一些微不足道的东西,因为我对 LaTeX 还很陌生。
任何帮助,将不胜感激!