参考书目和 Jabref

参考书目和 Jabref

在此处输入图片描述

我的论文和 Jabref 的参考书目有些问题。我不明白为什么有些 URL 或 DOI 超出了范围... 你能帮我吗?

\documentclass{article}
\usepackage[backend=bibtex,style=phys,biblabel=brackets,natbib=true,sorting=none,url=true,hyperref=auto]{biblatex}

\addbibresource{tesi.bib}

\usepackage[autostyle=true]{csquotes}

\begin{document}

\setcounter{biburlnumpenalty}{8000}

\printbibliography[heading=bibintoc]

\end{document}

答案1

因为我们没有您使用的 bib 条目,所以我只是使用了示例 bib 文件biblatex-examples.bib。bib 条目kastenholz,sigfridsson,ctan,markey包含 dois 和 urls 来测试代码。

为了获得更好的布局,请将以下三行添加到代码中:

\setcounter{biburlnumpenalty}{8000} % <=================================
\setcounter{biburlucpenalty}{8000}  % <=================================
\setcounter{biburllcpenalty}{8000}  % <=================================

8000您可以根据需要更改数字(1 到 10000)。

使用以下 MWE,我的边距、dois 或 url 就没有任何问题了:

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{Hsi_JACS_1975, 
  author = {Edward Hsi and Robert G. Bryant}, 
  title = {Nuclear magnetic resonance relaxation in frozen lysozyme solutions}, 
  journal = {J. Am. Chem. Soc.}, 
  year = {1975}, 
  volume = {97}, 
  number = {11}, 
  pages = {3220--3221}, 
  doi = {10.1021/ja00844a051}, 
  eprint = {dx.doi.org/10.1021/ja00844a051}, 
  url = {dx.doi.org/10.1021/ja00844a051}, 
}
@Article{Brovchenko_ChemPhysChem_2008, 
  author = {Ivan Brovchenko and Alla Oleinikova}, 
  title = {Multiple Phases of Liquid Water}, 
  journal = {Chem\-PhysChem}, 
  year = {2008}, 
  volume = {9}, 
  number = {18}, 
  pages = {2660--2675}, 
  issn = {1439-7641}, 
  doi = {10.1002/cphc.200800639}, 
  keywords = {percolation, phase diagrams, phase transitions, 
      supercritical fluids, thermodynamics}, 
  publisher = {WILEY-VCH Verlag}, 
  url = {dx.doi.org/10.1002/cphc.200800639}, 
}
\end{filecontents}


\documentclass{article}
\usepackage[%
  backend=bibtex,
  style=phys,
  biblabel=brackets,
  natbib=true,
  sorting=none,
  url=true,
  hyperref=auto
]{biblatex}
\usepackage[autostyle=true]{csquotes}

\addbibresource{biblatex-examples.bib}
\addbibresource{\jobname.bib}

\setcounter{biburlnumpenalty}{8000} % <=================================
\setcounter{biburlucpenalty}{8000}  % <=================================
\setcounter{biburllcpenalty}{8000}  % <=================================


\begin{document}

Test \cite{kastenholz,sigfridsson,ctan,markey} 
test \cite{Hsi_JACS_1975,Brovchenko_ChemPhysChem_2008} test

\printbibliography[heading=bibintoc]

\end{document}

结果页面如下:

参考书目

请使用您自己的 bib 条目尝试此 MWE。如果您仍然有问题,请将这些 bib 条目添加到您的问题中。然后我们可以在我们的计算机上测试它们...

相关内容