使用加載了 chem-acs 樣式的 biblatex 壓縮多個連續引用

使用加載了 chem-acs 樣式的 biblatex 壓縮多個連續引用

我目前正在參考使用:

\documentclass[12pt,a4paper,bibliography=totoc]{scrreprt}
\usepackage[ngerman]{babel}
\usepackage[backend=biber,bibstyle=chem-acs,sorting=none,biblabel=brackets,sortcites=true]{biblatex}
\addbibresource{references.bib}
\begin{document}
Somebody told me.\cite{James2003,Allendorf2009,Rowsell2004}
\printbibliography
\end{document}

假設檔案references.bib包含:

@article{James2003,
author = {James, S. L.},
journal = {Chem. Soc. Rev.},
number = {5},
pages = {276--288},
title = {{Metal-organic frameworks}},
volume = {32},
year = {2003}
}

@article{Rowsell2004,
author = {Rowsell, Jesse L.C. and Yaghi, Omar M.},
journal = {Microporous Mesoporous Mater.},
pages = {3--14},
title = {{Metal-organic frameworks: a new class of porous materials}},
volume = {73},
year = {2004}
}

@article{Allendorf2009,
author = {Allendorf, M. D. and Bauer, C. A. and Bhakta, R. K. and Houk, R. J. T.},
journal = {Chem. Soc. Rev.},
number = {5},
pages = {1330--1352},
title = {{Luminescent metal-organic frameworks.}},
volume = {38},
year = {2009}
}

運行 Latex -> biber -> Latex -> Latex -> dvips -> ps2pdf (由於其他原因需要此過程)給出:

Somebody told me.[1, 2, 3]

我怎樣才能獲得壓縮的連續引用,例如

Somebody told me.[1-3]

cite 和 natbib 軟體包提供壓縮功能,但與 biblatex 不相容。 biblatex 有 numeric-comp 風格,但我需要 chem-acs 的參考書目格式。 biblatex 文件引用了 sortcites=true 選項,它似乎確實對括號內的數字進行排序,但不提供壓縮。

感謝您的幫忙!

答案1

您正在使用bibstyle=chem-acs,這意味著引文樣式與biblatex預設值相同。您可能chem-acs也想要引用樣式,使用以下指令更容易做到style=chem-acs

\begin{filecontents}{\jobname.bib}
@article{James2003,
author = {James, S. L.},
journal = {Chem. Soc. Rev.},
number = {5},
pages = {276--288},
title = {{Metal-organic frameworks}},
volume = {32},
year = {2003}
}

@article{Rowsell2004,
author = {Rowsell, Jesse L.C. and Yaghi, Omar M.},
journal = {Microporous Mesoporous Mater.},
pages = {3--14},
title = {{Metal-organic frameworks: a new class of porous materials}},
volume = {73},
year = {2004}
}

@article{Allendorf2009,
author = {Allendorf, M. D. and Bauer, C. A. and Bhakta, R. K. and Houk, R. J. T.},
journal = {Chem. Soc. Rev.},
number = {5},
pages = {1330--1352},
title = {{Luminescent metal-organic frameworks.}},
volume = {38},
year = {2009}
}
\end{filecontents}
\documentclass[12pt,a4paper,bibliography=totoc]{scrreprt}
\usepackage[ngerman]{babel}
\usepackage[backend=biber,style=chem-acs,biblabel=brackets]{biblatex}
\bibliography{\jobname}
\begin{document}
Somebody told me.\cite{James2003,Allendorf2009,Rowsell2004}
\printbibliography
\end{document}

這會自動設置sorting=nonesortcites=true因為這是化學風格的標準。

相關內容