我正在使用 biblatex 来编制参考书目。我遇到了三行“太宽”的问题。
这是主文件:
\documentclass{article}
\input{packages}
\begin{document}
\printbibliography
\end{document}
这是packages.tex
文件
% Last update date 01/01/2022
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Essential
\usepackage[utf8]{inputenc} % Accept different input encodings
%\usepackage[spanish]{babel} % Multilingual support for LaTeX, LuaLaTeX, XeLaTeX, and Plain TeX
%\decimalpoint % decimal separator to .
\usepackage[hyphens]{url}
% https://tex.stackexchange.com/questions/83101/option-clash-for-package-xcolor
\usepackage{biblatex} %Imports biblatex package
\addbibresource{lib.bib} %Import the bibliography file
\nocite{*} % Write in the bibliography all references, not only cited
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LaTeX improvements
% Basic maths
\usepackage{amsmath} % AMS mathematical facilities for LaTeX
\usepackage{amsfonts} % TeX fonts from the American Mathematical Society
\usepackage{amssymb}
\usepackage{mathpazo} % Fonts to typeset mathematics to match Palatino
% General
\usepackage{caption} % Customising captions in floating environments
\usepackage{subcaption} % Support for sub-captions
\usepackage{paracol} % Multiple columns with texts “in parallel”
\usepackage{multicol} % Intermix single and multiple columns
\usepackage{graphicx} % Enhanced support for graphics
\usepackage{wrapfig} % Produces figures which text can flow around
\usepackage[hidelinks]{hyperref} % Extensive support for hypertext in LaTeX
\usepackage{vmargin} % Set various page dimensions
\usepackage{verbatim} % Reimplementation of and extensions to LaTeX verbatim
\usepackage{xargs} % Define commands with many optional arguments
\usepackage{enumitem} % Control layout of itemize, enumerate, description
%\begin{itemize}[label={\alpha}]
\usepackage{lipsum} % Easy access to the Lorem Ipsum and other dummy texts
\usepackage{array} % Extending the array and tabular environments
\usepackage[normalem]{ulem} % Package for underlining, see also
% https://tex.stackexchange.com/questions/385924/sharelatex-bibliography-runs-off-page-hbox-too-wide
\usepackage{cleveref} % Intelligent cross-referencing
\usepackage{enumitem} % Controll of itemize, enumerate and description environments
% Tables
\usepackage{booktabs} % Publication quality tables in LaTeX
\usepackage{colortbl} % Add colour to LaTeX tables
\usepackage{diagbox} % Table heads with diagonal lines
\usepackage{multicol} % Intermix single and multiple columns
\usepackage{multirow} % Create tabular cells spanning multiple rows
% Other programming language
\usepackage{listings} % Typeset source code listings using LaTeX
\usepackage{pythontex} % Run Python from within a document, typesetting the results
% Colors
\usepackage{xcolor} % Driver-independent color extensions for LaTeX and pdfLaTeX
% Boxes
\usepackage[framemethod=TikZ]{mdframed} % Framed environments that can split at page boundaries
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Maths
% More maths
\usepackage{stackrel} % Allows supercript above and bellow a symbol
%A \stackbin[\text{and}]{}{+} B \stackrel[x]{!}{=} C
\usepackage{cancel} %Place lines through maths formulae
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fonts
\usepackage{fontawesome} % Font containing web-related icons
\usepackage{helvet} % Load Helvetica, scaled
\usepackage{eurosym} % METAFONT and macros for Euro sign
% \euro
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Physics
\usepackage[separate-uncertainty=true]{siunitx} % A comprehensive (SI) units package
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Chemistry
\usepackage[version=4]{mhchem}
这是lib.bib
文件:
@Article{Collaboration2020,
author = {CMS Collaboration},
journal = {JHEP 03 (2021) 095},
title = {Search for new physics in top quark production with additional leptons in proton-proton collisions at $\sqrt{s} =$ 13 TeV using effective field theory},
year = {2020},
month = dec,
abstract = {Events containing one or more top quarks produced with additional prompt leptons are used to search for new physics within the framework of an effective field theory (EFT). The data correspond to an integrated luminosity of 41.5 fb$^{-1}$ of proton-proton collisions at a center-of-mass energy of 13 TeV at the LHC, collected by the CMS experiment in 2017. The selected events are required to have either two leptons with the same charge or more than two leptons; jets, including identified bottom quark jets, are also required, and the selected events are divided into categories based on the multiplicities of these objects. Sixteen dimension-six operators that can affect processes involving top quarks produced with additional charged leptons are considered in this analysis. Constructed to target EFT effects directly, the analysis applies a novel approach in which the observed yields are parameterized in terms of the Wilson coefficients (WCs) of the EFT operators. A simultaneous fit of the 16 WCs to the data is performed and two standard deviation confidence intervals for the WCs are extracted; the standard model expectations for the WC values are within these intervals for all of the WCs probed.},
archiveprefix = {arXiv},
doi = {10.1007/JHEP03(2021)095},
eprint = {2012.04120},
file = {:http\://arxiv.org/pdf/2012.04120v3:PDF},
keywords = {hep-ex},
primaryclass = {hep-ex},
}
@MastersThesis{Reissel2016,
author = {Christina Rei{\ss}el},
school = {Georg-August-Universität Göttingen},
title = {Monte Carlo simulation and analysis of the {$t\bar{t}H$} process with the ATLAS experiment at {$\sqrt{s}=13$} TeV},
year = {2016},
type = {BA thesis},
}
@MastersThesis{Dreyer2014,
author = {Timo Dreyer},
school = {Georg-August-Universität Göttingen},
title = {{$t\bar{t}H$} Production at LHC},
year = {2014},
type = {BA thesis},
}
@MastersThesis{Wiebe2014,
author = {Felix Wiebe},
school = {Georg-August-Universität Göttingen},
title = {Analysis of {$pp\rightarrow t\bar{t}H$} Events},
year = {2014},
type = {BA thesis},
}
@MastersThesis{Casines2021,
author = {Luis Marcos López Casines},
school = {Universitat de Valencia},
title = {Probing the top quark Yukawa coupling and possible new physics effects in the {$t\bar{t}H$} and {$tH$} processes},
year = {2021},
}
@Article{Alwall2011,
author = {Johan Alwall and Michel Herquet and Fabio Maltoni and Olivier Mattelaer and Tim Stelzer},
title = {MadGraph 5 : Going Beyond},
year = {2011},
month = jun,
abstract = {MadGraph 5 is the new version of the MadGraph matrix element generator, written in the Python programming language. It implements a number of new, efficient algorithms that provide improved performance and functionality in all aspects of the program. It features a new user interface, several new output formats including C++ process libraries for Pythia 8, and full compatibility with FeynRules for new physics models implementation, allowing for event generation for any model that can be written in the form of a Lagrangian. MadGraph 5 builds on the same philosophy as the previous versions, and its design allows it to be used as a collaborative platform where theoretical, phenomenological and simulation projects can be developed and then distributed to the high-energy community. We describe the ideas and the most important developments of the code and illustrate its capabilities through a few simple phenomenological examples.},
archiveprefix = {arXiv},
doi = {10.1007/JHEP06(2011)128},
eprint = {1106.0522},
file = {:Alwall2011 - MadGraph 5 _ Going beyond.pdf:PDF},
keywords = {hep-ph},
primaryclass = {hep-ph},
}
@Article{Alwall2014,
author = {J. Alwall and R. Frederix and S. Frixione and V. Hirschi and F. Maltoni and O. Mattelaer and H. -S. Shao and T. Stelzer and P. Torrielli and M. Zaro},
journal = {JHEP07(2014)079},
title = {The automated computation of tree-level and next-to-leading order differential cross sections, and their matching to parton shower simulations},
year = {2014},
month = may,
abstract = {We discuss the theoretical bases that underpin the automation of the computations of tree-level and next-to-leading order cross sections, of their matching to parton shower simulations, and of the merging of matched samples that differ by light-parton multiplicities. We present a computer program, MadGraph5_aMC@NLO, capable of handling all these computations -- parton-level fixed order, shower-matched, merged -- in a unified framework whose defining features are flexibility, high level of parallelisation, and human intervention limited to input physics quantities. We demonstrate the potential of the program by presenting selected phenomenological applications relevant to the LHC and to a 1-TeV $e^+e^-$ collider. While next-to-leading order results are restricted to QCD corrections to SM processes in the first public version, we show that from the user viewpoint no changes have to be expected in the case of corrections due to any given renormalisable Lagrangian, and that the implementation of these are well under way.},
archiveprefix = {arXiv},
doi = {10.1007/JHEP07(2014)079},
eprint = {1405.0301},
file = {:Alwall2014 - The Automated Computation of Tree Level and Next to Leading Order Differential Cross Sections, and Their Matching to Parton Shower Simulations.pdf:PDF},
keywords = {hep-ph},
primaryclass = {hep-ph},
}
@Article{Brun1997,
author = {Brun, R. and Rademakers, F.},
journal = {Nucl. Instrum. Meth. A},
title = {{ROOT: An object oriented data analysis framework}},
year = {1997},
pages = {81--86},
volume = {389},
doi = {10.1016/S0168-9002(97)00048-X},
editor = {Werlen, M. and Perret-Gallix, D.},
}
@Misc{Python,
howpublished = {\url{https://www.python.org/}},
note = {Accessed: 2022-04-20},
title = {{\texttt{Python}} documentation},
}
@Misc{PyROOT,
howpublished = {\url{https://root.cern/manual/python/}},
note = {Accessed: 2022-04-20},
title = {{\texttt{PyROOT}} documentation},
}
@Misc{TRExFitter,
howpublished = {\url{https://trexfitter-docs.web.cern.ch/trexfitter-docs/}},
note = {Accessed: 2022-04-20},
title = {{\texttt{TRExFitter}} documentation},
}
@Misc{Cplusplus,
howpublished = {\url{https://isocpp.org/}},
note = {Accessed: 2022-04-20},
title = {{\texttt{C++}} documentation},
}
@Article{LesHouchesFiles,
author = {J. Alwall and A. Ballestrero and P. Bartalini and S. Belov and E. Boos and A. Buckley and J. M. Butterworth and L. Dudko and S. Frixione and L. Garren and S. Gieseke and A. Gusev and I. Hinchliffe and J. Huston and B. Kersevan and F. Krauss and N. Lavesson and L. Lönnblad and E. Maina and F. Maltoni and M. L. Mangano and F. Moortgat and S. Mrenna and C. G. Papadopoulos and R. Pittau and P. Richardson and M. H. Seymour and A. Sherstnev and T. Sjöstrand and P. Skands and S. R. Slabospitsky and Z. Wcas and B. R. Webber and M. Worek and D. Zeppenfeld},
journal = {Comput.Phys.Commun.176:300-304,2007},
title = {A standard format for Les Houches Event Files},
year = {2006},
month = sep,
abstract = {A standard file format is proposed to store process and event information, primarily output from parton-level event generators for further use by general-purpose ones. The information content is identical with what was already defined by the Les Houches Accord five years ago, but then in terms of Fortran commonblocks. This information is embedded in a minimal XML-style structure, for clarity and to simplify parsing.},
archiveprefix = {arXiv},
doi = {10.1016/j.cpc.2006.11.010},
eprint = {hep-ph/0609017},
file = {:Alwall2006 - A Standard Format for Les Houches Event Files.pdf:PDF},
keywords = {hep-ph},
primaryclass = {hep-ph},
}
@Comment{jabref-meta: databaseType:bibtex;}
我在 Overleaf 上运行代码,有三个警告:
Overfull \hbox (26.1061pt too wide) in paragraph at lines 8--8
Overfull \hbox (12.87477pt too wide) in paragraph at lines 8--8
Overfull \hbox (5.9195pt too wide) in paragraph at lines 8--8
我在参考书目中找到了一些有关 url 行太宽的解决方案,但这并不适用于此处。
答案1
参考书目中框过满或未满的原因有很多。一般来说,问题在于 LaTeX 很难找到好的换行或连字符方法的内容。
列出你可能遇到的所有问题几乎是不可能的,但最常见的问题列在如何调整参考书目的断行?。那里的答案也讨论了“一般”解决方案。
biblatex
就你的情况而言,如果你改进输入数据,你已经可以获得更好的结果。首先,如果你告诉 JabRef 导出数据而不是传统的 BibTeX 数据,你可能会得到更好的结果。
您的条目有一个明显的问题
@Article{LesHouchesFiles,
author = {J. Alwall and A. Ballestrero and P. Bartalini and S. Belov and E. Boos and A. Buckley and J. M. Butterworth and L. Dudko and S. Frixione and L. Garren and S. Gieseke and A. Gusev and I. Hinchliffe and J. Huston and B. Kersevan and F. Krauss and N. Lavesson and L. Lönnblad and E. Maina and F. Maltoni and M. L. Mangano and F. Moortgat and S. Mrenna and C. G. Papadopoulos and R. Pittau and P. Richardson and M. H. Seymour and A. Sherstnev and T. Sjöstrand and P. Skands and S. R. Slabospitsky and Z. Wcas and B. R. Webber and M. Worek and D. Zeppenfeld},
journal = {Comput.Phys.Commun.176:300-304,2007},
title = {A standard format for Les Houches Event Files},
year = {2006},
month = sep,
abstract = {A standard file format is proposed to store process and event information, primarily output from parton-level event generators for further use by general-purpose ones. The information content is identical with what was already defined by the Les Houches Accord five years ago, but then in terms of Fortran commonblocks. This information is embedded in a minimal XML-style structure, for clarity and to simplify parsing.},
archiveprefix = {arXiv},
doi = {10.1016/j.cpc.2006.11.010},
eprint = {hep-ph/0609017},
file = {:Alwall2006 - A Standard Format for Les Houches Event Files.pdf:PDF},
keywords = {hep-ph},
primaryclass = {hep-ph},
}
字段中的内容太多(无法破解!)journal
。journal
字段应仅包含期刊名称。卷数、页数和年份应分别放入相应的专用字段中。
另一个可能的问题是
school = {Georg-August-Universität Göttingen},
原因如下:首先,在英文文档中,LaTeX 可能很难找到德语名称的正确连字符点。其次,包含连字符的单词只能在连字符处断开,而大部分内容无法断开(您可以使用命令\hyphen
插入连字符,而不会阻止其他连字符)。
以下清理后的文件对我来说不会产生任何框警告。
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage{mathpazo}
\usepackage[backend=biber]{biblatex}
\begin{filecontents}{\jobname.bib}
@article{Collaboration2020,
author = {CMS Collaboration},
journal = {Journal of High Energy Physics},
title = {Search for New Physics in Top Quark Production
With Additional Leptons in Proton-Proton Collisions
at {$\sqrt{s} = 13$~TeV} Using Effective Field Theory},
volume = {2021},
year = {2021},
eid = {95},
doi = {10.1007/JHEP03(2021)095},
eprinttype = {arxiv},
eprint = {2012.04120},
eprintclass = {hep-ex},
}
@thesis{Reissel2016,
author = {Christina Reißel},
school = {Georg\hyphen August\hyphen Universität Göttingen},
title = {{Monte Carlo} Simulation and Analysis
of the {$t\bar{t}H$} Process With the {ATLAS} experiment
at {$\sqrt{s}=13$~TeV}},
year = {2016},
type = {BA thesis},
}
@thesis{Dreyer2014,
author = {Timo Dreyer},
school = {Georg\hyphen August\hyphen Universität Göttingen},
title = {{$t\bar{t}H$} Production at {LHC}},
year = {2014},
type = {BA thesis},
}
@thesis{Wiebe2014,
author = {Felix Wiebe},
school = {Georg\hyphen August\hyphen Universität Göttingen},
title = {Analysis of {$pp\rightarrow t\bar{t}H$} Events},
year = {2014},
type = {BA thesis},
}
@thesis{Casines2021,
author = {Luis Marcos López Casines},
school = {Universitat de Valencia},
title = {Probing the Top Quark {Yukawa} Coupling
and Possible New Physics Effects
in the {$t\bar{t}H$} and {$tH$} Processes},
year = {2021},
}
@article{Alwall2011,
author = {Johan Alwall and Michel Herquet and Fabio Maltoni
and Olivier Mattelaer and Tim Stelzer},
title = {MadGraph 5: Going Beyond},
journal = {Journal of High Energy Physics},
year = {2011},
volume = {2011},
eid = {128},
month = jun,
doi = {10.1007/JHEP06(2011)128},
eprinttype = {arxiv},
eprint = {1106.0522},
eprintclass = {hep-ph},
}
@article{Alwall2014,
author = {J. Alwall and R. Frederix and S. Frixione and V. Hirschi
and F. Maltoni and O. Mattelaer and H.-S. Shao
and T. Stelzer and P. Torrielli and M. Zaro},
journal = {Journal of High Energy Physics},
title = {The Automated Computation of Tree-level
and Next-to-leading Order Differential Cross Sections,
and Their Matching to Parton Shower Simulations},
year = {2014},
month = may,
doi = {10.1007/JHEP07(2014)079},
eprinttype = {arxiv},
eprint = {1405.0301},
eprintclass = {hep-ph},
}
@article{Brun1997,
author = {Brun, R. and Rademakers, F.},
journal = {Nucl. Instrum. Meth. A},
title = {{ROOT}: An Object Oriented Data Analysis Framework},
year = {1997},
pages = {81-86},
volume = {389},
doi = {10.1016/S0168-9002(97)00048-X},
}
@online{Python,
url = {https://www.python.org/},
urldate = {2022-04-20},
title = {{\texttt{Python}} documentation},
}
@online{PyROOT,
url = {https://root.cern/manual/python/},
urldate = {2022-04-20},
title = {{\texttt{PyROOT}} documentation},
}
@online{TRExFitter,
url = {https://trexfitter-docs.web.cern.ch/trexfitter-docs/},
urldate = {2022-04-20},
title = {{\texttt{TRExFitter}} documentation},
}
@online{Cplusplus,
url = {https://isocpp.org/},
urldate = {2022-04-20},
title = {{\texttt{C++}} documentation},
}
@Article{LesHouchesFiles,
author = {J. Alwall and A. Ballestrero and P. Bartalini
and S. Belov and E. Boos and A. Buckley
and J. M. Butterworth and L. Dudko and S. Frixione
and L. Garren and S. Gieseke and A. Gusev and I. Hinchliffe
and J. Huston and B. Kersevan and F. Krauss and N. Lavesson
and L. Lönnblad and E. Maina and F. Maltoni and M. L. Mangano
and F. Moortgat and S. Mrenna and C. G. Papadopoulos
and R. Pittau and P. Richardson and M. H. Seymour
and A. Sherstnev and T. Sjöstrand and P. Skands
and S. R. Slabospitsky and Z. Wcas and B. R. Webber
and M. Worek and D. Zeppenfeld},
journal = {Computer Physics Communications},
title = {A Standard Format for {Les Houches Event Files}},
year = {2006},
month = sep,
volume = {176},
pages = {300-304},
doi = {10.1016/j.cpc.2006.11.010},
eprinttype = {arxiv},
eprint = {hep-ph/0609017},
eprintclass = {hep-ph},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Lorem \nocite{*}
\printbibliography
\end{document}
即使数据良好,也完全有可能出现坏盒子。然后,您必须找出每个警告的原因并找到解决方案,或者使用在如何调整参考书目的断行?。