我所在大学规定的引用格式规定在线资源应按以下方式表示:
“书名/文章名称”[在线的]。
注意,title 和 titleaddon 之间没有句号。目前我正尝试使用 titleaddon 来满足要求,但我不知道如何删除句号。
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{textgreek}
\usepackage{newpxtext,newpxmath}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{marvosym}
\usepackage{graphicx}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{dialogue}
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor}
\usepackage{tcolorbox}
\tcbuselibrary{skins,breakable}
\usetikzlibrary{shadings,shadows,patterns}
\usepackage{siunitx}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\pgfplotsset{compat=newest}
\usepackage{censor}
%\StopCensoring
\usepackage[top=3.50cm, bottom=3.40cm]{geometry}
\usepackage[protrusion=true,expansion=true]{microtype}
\usepackage{setspace}
\usepackage{url}
\def\UrlBreaks{\do\/\do-}
\usepackage[hidelinks, breaklinks]{hyperref}
\usepackage{fontawesome}
\usepackage{pdfpages}
\usepackage[affil-it ]{authblk}
\usepackage[backend=biber, style=ext-authoryear-ibid, sorting=nty, urldate=long, dateabbrev=false, maxbibnames = 8,maxcitenames=2,mincitenames=1,giveninits=true]{biblatex}
\DefineBibliographyStrings{english}{urlseen = {Accessed }
}
\DeclareFieldFormat{urldate}{\mkbibbrackets{\bibstring{urlseen}\space#1}}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@inbook{stephen2012theRoleOfCultureInResearch,
author = {David Stephens},
title = {The Role of Culture in Interpreting and Conducting Research},
titleaddon = {[online]},
booktitle = {Research Methods in Educational Leadership and Management},
editor = {Ann Briggs, and Marianne Coleman, and Marlene Morrison},
date = {2012},
edition = {3},
publisher = {SAGE Publications},
pages = {46-60},
url = {https://ebookcentral.proquest.com/lib/nottingham/detail.action?docID=4004042},
urldate = {2020-05-16},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
答案1
样式biblatex-ext
有一个命令:\titleaddonpunct
。因此,您只需要
\renewcommand*{\titleaddonpunct}{\addspace}
一切准备就绪。
如果titleaddon
您要使用的所有 s 都是“[online]”形式并放在方括号中,我会从字段中删除方括号并通过字段格式添加它们。
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[backend=biber,
style=ext-authoryear-ibid,
sorting=nty,
maxbibnames = 8, maxcitenames=2, mincitenames=1,
giveninits=true,
urldate=long, dateabbrev=false,]{biblatex}
\usepackage[colorlinks]{hyperref}
\renewcommand*{\titleaddonpunct}{\addspace}
\DeclareFieldFormat{titleaddon}{\mkbibbrackets{#1}}
\DefineBibliographyStrings{english}{
urlseen = {Accessed},
}
\DeclareFieldFormat{urldate}{\mkbibbrackets{\bibstring{urlseen}\space#1}}
\begin{filecontents}{\jobname.bib}
@inbook{stephen2012theRoleOfCultureInResearch,
author = {David Stephens},
title = {The Role of Culture in Interpreting and Conducting Research},
titleaddon = {online},
booktitle = {Research Methods in Educational Leadership and Management},
editor = {Ann Briggs and Marianne Coleman and Marlene Morrison},
date = {2012},
edition = {3},
publisher = {SAGE Publications},
pages = {46-60},
url = {https://ebookcentral.proquest.com/lib/nottingham/detail.action?docID=4004042},
urldate = {2020-05-16},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
author
请注意,和字段中的名称editor
只能用 分隔,而不and
能用 分隔, and
。editor = {Ann Briggs, and Marianne Coleman, and Marlene Morrison},
这是错误的,应该是
editor = {Ann Briggs and Marianne Coleman and Marlene Morrison},
通常hyperref
是最后加载的包。只有少数例外,这些包必须在之后加载hyperref
。biblatex
不是其中之一。