我想使用“月份年份”形式的自定义参考书目标签。为此,我使用自定义 bib 环境,标签由以下人员打印:
\printfield{month}%
\printfield{year}
但是,它给出了像“Oct. 2019”这样的字符串,而我更喜欢“Oct 2019”。
问题:如何删除月份名称中的点?
答案1
应通过专用日期命令(如 和 )打印日期\printdate
,而不是使用\printfield{month}\printfield{year}
。
无论如何,点号都是硬编码到月份字符串中的,因此要删除它,您需要重新定义字符串。例如
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=authoryear, backend=biber]{biblatex}
\DefineBibliographyStrings{english}{
january = {Jan},
february = {Feb},
march = {Mar},
april = {Apr},
may = {May},
june = {June},
july = {July},
august = {Aug},
september = {Sept},
october = {Oct},
november = {Nov},
december = {Dec},
}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{ctan,baez/online,markey}
\printbibliography
\end{document}