
我正在嘗試使用標題大小寫列印參考書目中的所有期刊標題,同時保留條目的其餘部分。
我發現這可以強製文章標題為句子大小寫:biblatex 中標題的句子大小寫
我想知道標題大小寫和期刊標題是否可能出現類似的情況。我在用著biblatex
。
代表:
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{pdflscape}
\usepackage[T1]{fontenc}
\usepackage[
backend=biber,
style=authoryear,
date=year,
]{biblatex}
% Removes language from entries
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldset=language, null]
}
}
}
% Chapter title formatting and spacing
\usepackage{titlesec}
\titleformat{\chapter}[display]
{\bfseries\Huge}
{\filright}
{1ex}{}[]
\begin{filecontents}[force]{\jobname.bib}
@article{ref1,
author = {Doe, J. and Dane, D. and Dewy, R.},
year = {2000},
title = {This and That},
journal = {Journal of Deep Understanding of Things},
}
@article{ref2,
author = {Doe, J. and Dewy, D. and Dane, R.},
year = {2000},
title = {The Other},
journal = {Journal of deep understanding of things},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Some text and a ref \autocite{ref1}.
Then another ref with same first author and year \autocite{ref2}
\printbibliography
\end{document}
因此,在此範例中,期刊標題ref1
將保持不變,但ref2
標題大小寫相同。
答案1
biblatex
僅具有將文字轉換為句子大小寫的功能。它不提供將標題轉換為標題大小寫的功能。 (這與經典 BibTeX 相同。)另請參閱Bibtex 中「標題大小寫」的實現。
這意味著標題應在文件中以標題大小寫形式給出.bib
,並且如果參考書目風格需要,可以將其轉換為句子大小寫。 (需要注意的是,即使在句子大小寫中,如名稱或首字母縮略詞,也不應將單字小寫。請參閱BibTeX 在建立 .bbl 檔案時遺失大寫字母) 看在參考書目資料庫中儲存標題時使用的正確大小寫是什麼?進行更詳細的討論。
所以最好的解決方案是修復你的.bib
文件
journal = {Journal of Deep Understanding of Things},
到處。
如果您只有引用的幾個期刊名稱,則可以使用來源對應來完成
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=journal, fieldtarget=journaltitle]
\step[fieldsource=journaltitle,
matchi={Journal of Deep Understanding of Things},
replace={Journal of Deep Understanding of Things}]
}
}
}
但如果你想處理大量期刊,這當然很快就會失控。