你好,我正在写一份文件报告。我对整体外观非常满意,但就我个人而言,我无法弄清楚参考书目方面的问题。
乍一看,没有具体的错误,但我收到提示消息:“overfull \hbox...”,我无法摆脱它,也无法准确指出导致它的具体引用...
此外,进一步查看该部分,似乎有些参考文献包含太多逗号 (,)。我似乎没有在。围兜文件,那么它们来自哪里?下面是我的代码并附加了。围兜文件,因为我是新手,也许有人能发现我遗漏的一些错误模式。任何帮助都非常感谢!
\documentclass[12pt]{report}
\usepackage{float}
\usepackage{graphicx} % for inserting images
\usepackage[inkscapearea=page]{svg} %for SVG import
\usepackage[letterpaper,margin=1in]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{titlesec}
\usepackage{textcomp}
\usepackage{setspace}
\usepackage{csquotes}
\usepackage{authblk}
\usepackage{xurl}
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=blue,
filecolor=.,
linkcolor=maroon,
urlcolor=teal,
linktoc=all
}
\usepackage{cleveref}
\usepackage{caption}
\usepackage{orcidlink}
\usepackage{subcaption}
%\captionsetup[table]{font=small}
\captionsetup[figure]{font=small}
\renewcommand{\thefigure}{\arabic{figure}}
\definecolor{teal}{rgb}{0.0, 0.5, 0.5}
\definecolor{maroon}{rgb}{0.69, 0.19, 0.38}
\definecolor{coolblack}{rgb}{0.0, 0.18, 0.39}
\definecolor{MSBlue}{rgb}{0.204, 0.353, 0.541}
\definecolor{darkcerulean}{rgb}{0.03, 0.27, 0.49}
\usepackage{tocloft}
\renewcommand{\cftdot}{}
\renewcommand{\baselinestretch}{1.5}
\renewcommand{\cfttoctitlefont}{\Large\bfseries\color{black}}
%\usepackage{tocbibind} % use this package to automatically insert list of tables and list of figures into the TOC
\renewcommand{\cftchapfont}{\Large\bfseries\color{MSBlue}}
\renewcommand{\cftsecfont}{\large\bfseries\color{darkcerulean}}
\renewcommand{\cftsubsecfont}{\normalsize\bfseries\color{coolblack}}
\title{\Huge\bfseries{Pangenome-based Demographic Inference}}
\author{\LARGE{Matteo Tommaso Ungaro}}
\date{}
\usepackage[main=english, ngerman]{babel}
\usepackage[sorting=ynt]{biblatex}
\usepackage{microtype} %could cause some line spacing issues
\addbibresource{references.bib}
\DeclareNameAlias{author}{family-given}
\titleformat{\chapter}[hang]{\Large\bfseries\color{MSBlue}}{\thechapter}{1em}{}
\titleformat*{\section}{\large\bfseries\color{darkcerulean}}
\titleformat*{\subsection}{\normalsize\bfseries\color{coolblack}}
\begin{document}
...
\begin{refcontext}[sorting=nyt]
%\emergencystretch=1em %only way to get rid of the warning message
\printbibliography[title=References]
\addcontentsline{toc}{chapter}{References}
\end{refcontext}
\end{document}
链接到。围兜:书目文件
编辑
感谢大家,唯一仍然困扰着我的是过多不必要的和放错位置的逗号,而我真的不知道为什么......
答案1
在 12 页的参考书目中,只有一个条目比全文小 1pt
Overfull \hbox (0.99489pt too wide) in paragraph at lines 71--71
[]\T1/cmr/m/n/12 (-20) Garg, Shilpa et al. ^^P Chromosome-scale, haplotype-res
olved as-sem-bly of hu-man genomes^^Q.
除非你对这个事实.
感到困扰,否则我会补充
\hfuzz=1pt
就在之前,\printbibliography
所以它不会发出警告(这不会改变输出)默认值处于.1pt
模式\fussy
,.5pt
因此在这种情况下\sloppy
允许.995pt
并不是太糟糕。