我正在写论文,因为几天后就要交了。和许多人一样,我都是在最后一刻才写书目。
我经常使用 Google,找到了各种代码片段,它们使参考书目看起来像我想要的那样。唯一的问题是,条目中没有显示编辑者incollection
。它们被连字符或其他东西替换了。
以下是我目前得到的信息:
\documentclass[12pt, a4paper, titlepage, fleqn]{scrartcl}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[babel,german=quotes]{csquotes}
\usepackage{ccaption}
\captionstyle{\raggedright}
\usepackage[printonlyused]{acronym}
\renewcommand{\bflabel}[1]{\normalfont{\normalsize{#1}}\hfill}
\usepackage{setspace}
\onehalfspacing
\emergencystretch 1.5em
\usepackage{geometry}
\geometry{a4paper, top=20mm, left=30mm, right=30mm, bottom=20mm}
%%%%%%%%%%%%%% BIBLATEX %%%%%%%%%%%%%%%%%%%%%%%
\usepackage[
style=authoryear-icomp,
maxbibnames=9,
maxcitenames=2,
uniquelist=false,
backend=biber]{biblatex}
\DeclareFieldFormat{booktitle}{#1\isdot}
\DeclareFieldFormat{journaltitle}{#1\isdot}
\DeclareFieldFormat{issuetitle}{#1\isdot}
\DeclareFieldFormat{maintitle}{#1\isdot}
\DeclareFieldFormat{pages}{#1}
\DeclareFieldFormat{title}{#1\isdot}
\DeclareFieldFormat[article]{title}{#1}
\DeclareFieldFormat[inbook]{title}{#1}
\DeclareFieldFormat[incollection]{title}{#1}
\DeclareFieldFormat[inproceedings]{title}{#1}
\DeclareFieldFormat[patent]{title}{#1}
\DeclareFieldFormat[thesis]{title}{#1}
\DeclareFieldFormat[unpublished]{title}{#1}
\renewcommand*{\UrlFont}{\normalfont}
\renewcommand*\mkbibacro[1]{#1}
\DeclareBibliographyDriver{incollection}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{author/translator+others}%
\setunit{\labelnamepunct}\newblock
\usebibmacro{title}%
\printlist{language}%
\usebibmacro{in:}%
\usebibmacro{editor+others}% Herausgeber (Hrsg.) statt hrsg. von Herausgeber
\setunit{\labelnamepunct}\newblock%
\usebibmacro{maintitle+booktitle}%
\newunit\newblock
\printfield{edition}%
\newunit
\iffieldundef{maintitle}
{\printfield{volume}%
\printfield{part}}
{}%
\newunit
\printfield{volumes}%
\newunit\newblock
\usebibmacro{series+number}%
\newunit\newblock
\printfield{note}%
\newunit\newblock
\usebibmacro{publisher+location+date}%
\newunit\newblock
\usebibmacro{chapter+pages}%
\newunit\newblock
\iftoggle{bbx:isbn}
{\printfield{isbn}}
{}%
\newunit\newblock
\usebibmacro{doi+eprint+url}%
\newunit\newblock
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
\usebibmacro{finentry}}
%\DeclareNameAlias{sortname}{last-first}
\DefineBibliographyStrings{ngerman}{andothers={et \addabbrvspace al \adddot}}
%Blockzitat
\usepackage{setspace}
\renewenvironment{quote}
{\list{}{\rightmargin\leftmargin\singlespacing\footnotesize}%
\item\relax}
{\endlist}
\addbibresource{Bibliographie.bib}
\newcommand*\dummy[1]{}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
这是我的书目条目之一...用于测试。
@INCOLLECTION{ang2006,
author = {Ien Ang},
year = {2006},
title = {Radikaler Kontextualismus und Ethnografie in der Rezeptionsforschung.},
editor = {Andreas Hepp and Rainer Winter},
booktitle = {Kultur – Medien – Macht.},
location = {Wiesbaden},
publisher = {VS Verlag für Sozialwissenschaften.},
pages = {61-79},
owner = {SpecialGuest},
timestamp = {2012.11.12}
}
我真的非常感激任何能帮助我的。
编辑:
使用以下 bib 文件条目运行脚本,您将能够重现该行为:
@INCOLLECTION{ang2006,
author = {Ien Ang},
year = {2006},
title = {Radikaler Kontextualismus und Ethnografie in der Rezeptionsforschung.},
editor = {Andreas Hepp and Rainer Winter},
booktitle = {Kultur – Medien – Macht.},
location = {Wiesbaden},
publisher = {VS Verlag für Sozialwissenschaften},
pages = {61-79},
owner = {SpecialGuest},
timestamp = {2012.11.12}
}
@INCOLLECTION{grossberg2006,
author = {Lawrence Grossberg},
year = {2006},
title = {Der Cross Road Blues der Cultural Studies.},
editor = {Andreas Hepp and Rainer Winter},
booktitle = {Kultur - Medien - Macht. Cultural Studies und Medienanalyse. 3.,
berarbeitete und erweiterte Auflage.},
location = {Wiesbaden},
publisher = {VS Verlag für Sozialwissenschaften},
pages = {23-40},
owner = {SpecialGuest},
timestamp = {2012.10.04}
}
@INCOLLECTION{grossberg1999,
author = {Lawrence Grossberg},
year = {1999},
title = {Was sind Cultural Studies?},
editor = {Karl H. Hörning and Rainer Winter},
booktitle = {Widerspenstige Kulturen. Cultural Studies als Herausforderung.},
location = {Frankfurt a. M.},
publisher = {Suhrkamp},
pages = {43-83},
owner = {SpecialGuest},
timestamp = {2012.10.04}
}
编辑者只出现在 Ang (2006) 条目中。在其他条目中,它们被替换为 - 符号。我不明白 BibLaTex 为什么会这样,但我必须在几天内提交我的论文。请...如果有人能帮助我。
答案1
您可以使用包选项dashed=false
来删除所有破折号。如果您只想隐藏编辑器中的破折号,请尝试在驱动程序定义中
\undef\bbx@lasthash
\usebibmacro{editor+others}
(不要忘记在\makeatletter
前面加上\DeclareBibliographyDriver
)。
顺便说一句:您在第二个条目中没有使用正确的尾数。