
我將 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}