不幸的是,我的大学有非常奇怪的引用指南。因此,我需要将引号中的引文分隔符(例如parencite
)更改为斜线。正常引文(\textcite
)和参考书目不应受到更改的影响。此外,超过 3 位作者的引文应保留为“et. al.”格式。
文本引用需要如下所示:
\textcite
: Hsu, Chan und Moll(2013)\parencite
: (Hsu/Chan/Moll,2013 年)
我已经寻找解决方案,但只找到了改变不同方面的方法,却没有找到改变分隔符的方法。不幸的是,我对宏没有那么丰富的经验,无法自己找到解决方案。参考书目分隔符也不应该改变,我已经设法实施了我所在大学的指导方针。
谢谢 :)
这是我的 MWE:
\documentclass[12pt, fleqn]{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage[english,main=ngerman]{babel}
\usepackage[ backend=biber, indexing=cite, citestyle=authoryear, bibstyle=authoryear, isbn=false, firstinits=true, language=ngerman, natbib=true, maxbibnames=99, maxcitenames=3
%url=false
]{biblatex}
\bibliography{example}
\DefineBibliographyStrings{ngerman}{%
andothers ={et\addabbrvspace al\adddot},
andmore ={et\addabbrvspace al\adddot},
}
\renewcommand*{\labelnamepunct}{\addcolon\space}
\DeclareFieldFormat{journaltitle}{{#1}}
\DeclareFieldFormat{issuetitle}{{#1}}
\DeclareFieldFormat{maintitle}{{#1}}
\DeclareFieldFormat{booktitle}{{#1}}
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,unpublished]
{title}{{#1\isdot}}
\usepackage{xpatch}
\xpretobibmacro{author}{\begingroup\itshape}{}{}
\xapptobibmacro{author}{\endgroup}{}
\begin{document}
2 Authors:
Parentcite: \parencite{gencc.2015}
Textcite: \textcite{gencc.2015}
3 Authors:
Parentcite: \parencite{hsu.2013}
Textcite: \textcite{hsu.2013}
Multiple Authors:
Parentcite: \parencite{gibbs.2015}
Textcite: \textcite{gibbs.2015}
\newpage
\addcontentsline{toc}{chapter}{Literaturverzeichnis}
\printbibliography[title=Literaturverzeichnis]
\end{document}
例如.bib:
@article{gencc.2015,
title={A fact or an illusion: Effective social media usage of female entrepreneurs},
author={Gen{\c{c}}, Merve and {\"O}ks{\"u}z, Burcu},
journal={Procedia-Social and Behavioral sSciences},
volume={195},
pages={293--300},
year={2015},
publisher={Elsevier}
}
@article{hsu.2013,
title={The effects of blogger recommendations on customers’ online shopping intentions},
author={Hsu, A and Chuan, Judy and Moll, Hsiu-Sen},
journal={Internet Research},
volume={23},
number={1},
pages={69--88},
year={2013},
publisher={Emerald Group Publishing Limited}
}
@article{gibbs.2015,
title={\# Funeral and Instagram: death, social media, and platform vernacular},
author={Gibbs, Martin and Meese, James and Arnold, Michael and Nansen, Bjorn and Carter, Marcus},
journal={Information, Communication \& Society},
volume={18},
number={3},
pages={255--268},
year={2015},
publisher={Taylor \& Francis}
}
答案1
这是一份工作\DeclareDelimFormat
。
\DeclareDelimFormat[parencite]{multinamedelim}{\slash}
\DeclareDelimAlias*[parencite]{finalnamedelim}{multinamedelim}
您仅更改 的multinamedelim
(两个名称之间的分隔符)和finalnamdelim
(最后两个名称之间的分隔符)\parencite
。其他所有内容保持不变。
我对您的代码进行了一些现代化修改,删除了不必要的括号并更正了一些书目数据,您可能需要仔细检查您的.bib
条目的准确性。
\documentclass[12pt, fleqn, bibliography=totoc]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english,main=ngerman]{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=authoryear,
giveninits=true, uniquename=init,
maxbibnames=99, maxcitenames=3,
isbn=false,
natbib=true,
indexing=cite,
]{biblatex}
\DeclareDelimFormat[parencite]{multinamedelim}{\slash}
\DeclareDelimAlias*[parencite]{finalnamedelim}{multinamedelim}
\DefineBibliographyStrings{ngerman}{%
andothers = {et\addabbrvspace al\adddot},
andmore = {et\addabbrvspace al\adddot},
bibliography = {Literaturverzeichnis},
references = {Literaturverzeichnis},
}
\DeclareDelimFormat[bib]{nametitledelim}{\addcolon\space}
\DeclareFieldFormat{journaltitle}{#1}
\DeclareFieldFormat{issuetitle}{#1}
\DeclareFieldFormat{maintitle}{#1}
\DeclareFieldFormat{booktitle}{#1}
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,unpublished]
{title}{#1\isdot}
\usepackage{xpatch}
\xpretobibmacro{author}{\begingroup\itshape}{}{}
\xapptobibmacro{author}{\endgroup}{}
%\DeclareNameWrapperFormat{author}{\mkbibemph{#1}}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{genc.2015,
title = {A fact or an illusion: {Effective} social media usage of female entrepreneurs},
author = {Genç, Merve and Öksüz, Burcu},
journal = {Procedia-Social and Behavioral Sciences},
volume = {195},
pages = {293--300},
year = {2015},
}
@article{hsu.2013,
title = {The effects of blogger recommendations on customers' online shopping intentions},
author = {Hsu, Chin‐Lung and Chuan‐Chuan Lin, Judy and Chiang, Hsiu‐Sen},
journal = {Internet Research},
volume = {23},
number = {1},
pages = {69--88},
year = {2013},
}
@article{gibbs.2015,
title = {\#Funeral and {Instagram}: death, social media, and platform vernacular},
author = {Gibbs, Martin and Meese, James and Arnold, Michael
and Nansen, Bjorn and Carter, Marcus},
journal = {Information, Communication \& Society},
volume = {18},
number = {3},
pages = {255--268},
year = {2015},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
2 Authors:
Parentcite: \parencite{genc.2015}
Textcite: \textcite{genc.2015}
3 Authors:
Parentcite: \parencite{hsu.2013}
Textcite: \textcite{hsu.2013}
Multiple Authors:
Parentcite: \parencite{gibbs.2015}
Textcite: \textcite{gibbs.2015}
\printbibliography
\end{document}