在每个引用末尾插入句号/停止符

在每个引用末尾插入句号/停止符

使用作者-日期格式,如何在每个引用末尾插入句号或停顿?我假设您必须\renewbibmacro插入\setunit*{\adddot}到特定字段?

\documentclass[a4paper,oneside,10pt]{article} % Unix options  
\usepackage{endnotes,setspace,excludeonly,etex,ifthen,etoolbox,logreq,etoolbox,keyval,url}
\usepackage[english]{babel} \usepackage{csquotes}
\usepackage[style=authoryear,natbib=true,maxbibnames=4,backend=biber]{biblatex}

\renewbibmacro*{publisher+location+date}{%
   \printtext[parens]{%ADDED
     \printlist{location}%
     \iflistundef{publisher}
       {\setunit*{\addcomma\space}}
       {\setunit*{\addcolon\space}}%
     \printlist{publisher}%
     \setunit*{\addcomma\space}%
     \usebibmacro{date}%
   }\nopunct% ADDED
   \newunit}
\renewbibmacro*{volume+number+eid}{%
   \printfield{volume}% % 
   \setunit*{\adddot}% DELETED   \setunit*{\addcolon}% ADDED  
   \printfield{number}%
   \setunit{\addcomma\space}%
   \printfield{eid}}

\usepackage{fancyhdr}
\pagestyle{plain}

\addbibresource{biblatex-examples.bib}

\begin{document}
\nocite{knuth:ct:a,shore}
\printbibliography
\end{document}

答案1

请使用以下重新定义:

\renewbibmacro*{publisher+location+date}{%
   \printtext[parens]{%ADDED
     \printlist{location}%
     \iflistundef{publisher}
       {\setunit*{\addcomma\space}}
       {\setunit*{\addcolon\space}}%
     \printlist{publisher}%
     \setunit*{\addcomma\space}%
     \usebibmacro{date}%
   }\setunit{\addspace}}

该命令影响产生最终周期的nopunct命令。\finentry

要删除所有结尾句点,请使用:

\renewcommand*{\finentrypunct}{}

相关内容