我正在尝试在 biblatex 中引用 Instagram 个人资料。根据 APA 7,它应如下所示:
不幸的是,我还没有找到解决方案。文内引用应该是这样的:(National Geographic,nd)。当我还在使用 bibtex 时,我可以像这样修复它:
title={\textit{Posts}},
author={{Musk, E. [@elonmusk]}},
firstkey={Musk},
type={Twitter Profile},
publisher={Twitter},
url={https://twitter.com/elonmusk},
lastchecked={24.09.2020}
}
通过使用firstkey={}
latex,在文本中使用了正确的文内引用名称,但我认为这在 biblatex 中不起作用。
这是我的 MWE:
\documentclass[parsikip=full,oneside, 12pt]{scrartcl}
\usepackage[left=2.8cm, right=2.8cm,top=2.1cm, bottom=19mm,includehead=false,footskip=10mm, bindingoffset=0mm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[german=guillemets]{csquotes}
\usepackage{microtype}
\usepackage{color}
\usepackage[style=apa, datelabel=comp, uniquelist=false, backend=biber]{biblatex}
\addbibresource{litSM.bib}
\usepackage[colorlinks=true, linktoc = all, draft = false, linkcolor=black, citecolor=black, urlcolor=blue]{hyperref}
\setglossarystyle{listdotted}
\setlength{\glslistdottedwidth}{.6\linewidth}
\clubpenalty=10000 % Verhindert einzelne Absatzzeile am Ende oder am Anfang
\widowpenalty=10000 % einer Seite.
\displaywidowpenalty=10000 %
\usepackage{setspace}
\linespread{1.5}
\newcommand{\anf}[1]{\glqq{}#1{}\grqq{}}
\AtBeginDocument{%
% \renewcommand{\BCBL}{,}%
% \renewcommand{\BCBT}{,}%
}
\ExecuteBibliographyOptions{maxcitenames=2}
\DeclareFieldFormat{citehyperref}{%
\DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links
\bibhyperref{#1}}
\DeclareFieldFormat{textcitehyperref}{%
\DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links
\bibhyperref{%
#1%
\ifbool{cbx:parens}
{\bibcloseparen\global\boolfalse{cbx:parens}}
{}}}
\savebibmacro{cite}
\savebibmacro{textcite}
\renewbibmacro*{cite}{%
\printtext[citehyperref]{%
\restorebibmacro{cite}%
\usebibmacro{cite}}}
\renewbibmacro*{textcite}{%
\ifboolexpr{
( not test {\iffieldundef{prenote}} and
test {\ifnumequal{\value{citecount}}{1}} )
or
( not test {\iffieldundef{postnote}} and
test {\ifnumequal{\value{citecount}}{\value{citetotal}}} )
}
{\DeclareFieldAlias{textcitehyperref}{noformat}}
{}%
\printtext[textcitehyperref]{%
\restorebibmacro{textcite}%
\usebibmacro{textcite}}}
\renewcommand{\baselinestretch}{1.2}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
%%%%% Oxford-Komma vor & %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareDelimFormat[bib,biblist]{finalnamedelim:apa:family-given}{%
\ifthenelse{\value{listcount}>\maxprtauth}
{}
{\addcomma\space\&\space}}
\begin{document}
\pagenumbering{roman}
\setcounter{page}{1}\pagenumbering{arabic}
\input{Einleitung}
\printbibliography[heading=bibintoc]
\end{document}
答案1
当你需要.bib
APA 格式的条目biblatex-apa
而不知道如何处理时,请查看https://github.com/plk/biblatex-apa/blob/master/bibtex/bib/biblatex-apa-test-references.bib. 该文件包含.bib
APA 手册中所有参考示例的条目,按章节、部分和示例编号分类。
对于 Instagram 帖子,相关条目是10.15:107
以及10.15:108
第 2366-2390 行
@ONLINE{10.15:107,
ENTRYSUBTYPE = {photographs},
GROUPAUTHOR = {{Zeitz MOCAA}},
GROUPAUTHOR+an:username = {1="@zeitzmocaa"},
TITLE = {Grade 6 Learners from {Parkfields} {Primary}
{School} in {Hanover} {Park} Visited the
Museum for a Tour and Workshop Hosted by},
EPRINT = {Instagram},
URL = {https://www.instagram.com/p/BqpHpjFBs3b},
DATE = {2018-11-26}
}
@ONLINE{10.15:108,
ENTRYSUBTYPE = {Highlight},
GROUPAUTHOR = {{The New York Public Library}},
GROUPAUTHOR+an:username = {1="@nypl"},
TITLE = {The Raven},
EPRINT = {Instagram},
URL = {https://bitly.com/2FV8bu3},
URLDATE = {2019-04-16}
}
基于此,泰勒·斯威夫特的例子是
\documentclass[american]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=apa]{biblatex}
\begin{filecontents}{\jobname.bib}
@online{taylor,
entrysubtype = {Instagram profile},
author = {Taylor Swift},
author+an:username = {1="@taylorswift"},
title = {Posts},
eprint = {Instagram},
url = {https://www.instagram.com/taylorwsift},
urldate = {2020-01-09},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Lorem \autocite{taylor}
\printbibliography
\end{document}