tcolorbox 中的参考书目:heading=none 与编号冲突

tcolorbox 中的参考书目:heading=none 与编号冲突

以下是一个案例研究:

\documentclass{scrreprt}

\usepackage[french]{babel}
\usepackage[bibencoding=auto,backend=biber,autolang,sorting=ynt]{biblatex}
\usepackage[T1]{fontenc}
\usepackage{tcolorbox}

\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@report{foo
        ,author = {Dupont}
    ,month = {08}
    ,title = {\textit{foo}}
    ,institution = {baz}
    ,year = {2019}
  ,language={french}
  ,hyphenation={french}
}

@report{bar
    ,author = {Durand}
    ,title = {\textit{bar}}
    ,institution = {qux}
    ,year = {2018}
    ,month = {08}
    ,language={french}
    ,hyphenation={french}
}
\end{filecontents*}

\addbibresource{\jobname.bib}

\tcbuselibrary{breakable}

\begin{document}
\begin{titlepage}
\end{titlepage}

This citation has a matching number under Bib:  \cite{foo}, not this one:\cite{bar}. It's totally unacceptable!

\begin{center}

  \vspace*{\fill}

  \begin{tcolorbox}
    [
    width=0.9\textwidth
    ,halign=flush left
    ,arc=0mm
    ,title=Bib
    ,breakable=true
    ]

\printbibliography[heading=none]
%\printbibliography

  \end{tcolorbox}

\end{center}

\end{document}

带标题

无标题

答案1

不要在框周围放置中心环境。使用 center 键将框置于中心:

\begin{tcolorbox}
    [
    center,
    width=0.9\textwidth
    ,halign=flush left
    ,arc=0mm
    ,title=Bib
    ,breakable=true
    ]

在此处输入图片描述

相关内容