在文本中引用时,引用出现在行内,如下所示:|1|,而不是出现在括号内,如下所示:[1]。在参考书目中,引用显示正确。我预感到显示存在问题,使得引用看起来像是在行之间,因为衬线显示不正确,但我无法找出问题所在。
以下是序言:
\documentclass[12pt,a4paper,bibtotoc]{scrreprt}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{csquotes}
\usepackage{blindtext}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage{gensymb}
\usepackage{graphicx}
\usepackage{float}
\usepackage{siunitx}
\usepackage[onehalfspacing]{setspace} %1,5-facher Zeilenabstand
\usepackage{colortbl}
\usepackage{xcolor}
\restylefloat{table}
\graphicspath{{Bilder/}}
\usepackage[backend=biber,style=numeric]{biblatex}
\addbibresource{LiteraturBericht3.bib}
\newcommand{\chapterref}[1]{Kapitel~\ref{#1}}
\newcommand{\sectionref}[1]{Abschnitt~\ref{#1}}
\newcommand{\subsectionref}[1]{Unterabschnitt~\ref{#1}}
\newcommand{\equationref}[1]{Gl.~(\ref{#1})}
\newcommand{\figureref}[1]{Figur~\ref{#1}}
\newcommand{\tableref}[1]{Tabelle~\ref{#1}}
\def\SymbReg{\textsuperscript{\textregistered}}
\usepackage[breaklinks,pdfpagelabels,pdfstartview = FitH,bookmarksopen = true,bookmarksnumbered = true, colorlinks = false, urlbordercolor = {white}, linkbordercolor = {white}, citebordercolor = {white}, plainpages = false, hypertexnames = false, citecolor = black] {hyperref}
\usepackage[automark, headsepline, autooneside=false]{scrlayer-scrpage}
\pagestyle{scrheadings}
\automark{chapter}
\ihead{\headmark}
\ohead[\pagemark]{\pagemark}
\chead{}
\cfoot[]{}
\renewcommand*\chapterpagestyle{scrheadings}
答案1
在下面较小的文档中可以重现相同的效果。
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{csquotes}
\usepackage[backend=biber,style=numeric]{biblatex}
\usepackage{xcolor}
\usepackage[
urlbordercolor = {white},
linkbordercolor = {white},
citebordercolor = {white},
citecolor = black
]{hyperref}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson}
\printbibliography
\end{document}
问题在于您的hyperref
设置,它在可点击链接周围添加了白色边框。由于引用是一个链接,因此数字周围会出现一个白色边框,与周围的方括号重叠(在屏幕上)。
如果你只hyperref
加载
\usepackage{hyperref}
你会看到一个绿色的链接边框与方括号重叠
如果你不想在视觉上将可点击链接与文本的其他部分区分开来,则可能需要使用hidelinks
选项
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{csquotes}
\usepackage[backend=biber,style=numeric]{biblatex}
\usepackage[
hidelinks
]{hyperref}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson}
\printbibliography
\end{document}
在较大的文档中,你可以替换
\usepackage[breaklinks,pdfpagelabels,pdfstartview = FitH,bookmarksopen = true,bookmarksnumbered = true, colorlinks = false, urlbordercolor = {white}, linkbordercolor = {white}, citebordercolor = {white}, plainpages = false, hypertexnames = false, citecolor = black] {hyperref}
和
\usepackage[
hidelinks,
pdfstartview = FitH,
bookmarksopen = true, bookmarksnumbered = true,
hypertexnames = false,
]{hyperref}
(我们用选项替换了白色边框,hidelinks
并删除了默认选项,以使事情更容易理解)。