Tikzposter + biblatex 參考文獻對齊

Tikzposter + biblatex 參考文獻對齊

我將 biblatex 數字樣式與 tikzposter 結合使用,對於跨越多行的引用,文字無法正確對齊。我已經嘗試過 minipage 環境,但它似乎也沒有幫助。

微量元素:

\documentclass{tikzposter}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{greenwade93,
    author  = "George D. Greenwade",
    title   = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
    year    = "1993",
    journal = "TUGBoat",
    volume  = "14",
    number  = "3",
    pages   = "342--351"
}
@book{goossens93,
    author    = "Michel Goossens and Frank Mittelbach and Alexander Samarin",
    title     = "The LaTeX Companion",
    year      = "1993",
    publisher = "Addison-Wesley",
    address   = "Reading, Massachusetts"
}
\end{filecontents}
\usepackage[backend=bibtex,style=numeric,sorting=none]{biblatex}
\bibliography{\jobname.bib}
\begin{document}

\begin{columns}
\column{.2}
\block{References}{
\nocite{*}
\begin{minipage}{\linewidth}
\begin{center}\mbox{}\vspace{-\baselineskip}
\printbibliography[heading=none]
\end{center}
\end{minipage}
}
\end{columns}
\end{document}

在此輸入影像描述

答案1

顯然,它並不在所有情況下都\settowidth按預期工作。tikzposter特別是,0pt除非在block.

對於現代的一個biblatex快速解決方法是使用該locallabelwidth選項,它將長度計算推遲到實際長度\printbibliography,並且只考慮實際出現在該參考書目中的條目。

\documentclass{tikzposter}

\usepackage[backend=bibtex, style=numeric, sorting=none, locallabelwidth]{biblatex}
\bibliography{biblatex-examples.bib}
\begin{document}

\begin{columns}
\column{.2}
\block{References}{
\nocite{sigfridsson,worman}
\begin{minipage}{\linewidth}
\begin{center}\mbox{}\vspace{-\baselineskip}
\printbibliography[heading=none]
\end{center}
\end{minipage}
}
\end{columns}
\end{document}

整齊排列的參考書目

相關內容