书目 3 位作者 姓氏、名字、姓氏、名字和名字 姓氏

书目 3 位作者 姓氏、名字、姓氏、名字和名字 姓氏

提前谢谢您。显然我花了很多时间编辑 Citavi 样式,结果发现我无法在 LATEX 中使用它们 :D

我需要的是一份有多个作者的书目,顺序如下:姓氏、名字、姓氏、名字和名字 -> 用“and”代替“und”就更好了(德语)

我在参考书目中得到的内容: 我在参考书目中得到了什么


我需要它看起来像什么(使用 Citavi 创建):

我需要它看起来像什么(使用 Citavi 创建)

答案1

这应该可以让你入门,但你可能需要更多自定义内容。请参阅代码中的注释以获取解释。

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{doi+etal:1978,
  author = {Doi, Yutaka and Sano, Tetsufi and Tanaka, Itsua},
  date = {1978},
  maintitle = {Senkyo seido},
  maintitleaddon = {Das Wahlsystem},
  volume = {10},
  title = {Gendai chihô jichi zenshû},
  location = {Tôkyô},
  publisher = {Gyôsei}
}
\end{filecontents}

% set main language to German
\usepackage[ngerman]{babel}

% use German quotes
\usepackage{csquotes}

% use biblatex authoryear style
\usepackage[style=authoryear]{biblatex}
\addbibresource{\jobname.bib}

% new titleaddonpunct to use between maintitle and maintitleaddon
\newcommand*{\titleaddonpunct}{\addspace}

% don't emphasise title
\DeclareFieldFormat{title}{#1}

% place maintitleaddon in square brackets
\DeclareFieldFormat{maintitleaddon}{\mkbibbrackets{#1}}

% use a colon between sortname and title
\DeclareDelimFormat[bib,biblist]{nametitledelim}{\addcolon\space}

% use small caps for family names
\renewcommand*{\mkbibnamefamily}[1]{\textsc{#1}}

% redefine family-given/given-family so only last name is printed as
% given-family (this format is used by default for the sortname in authoryear
% style
\DeclareNameFormat{family-given/given-family}{%
  \ifnumequal{\value{listcount}}{\value{listtotal}}
    {\ifgiveninits
       {\usebibmacro{name:given-family}
         {\namepartfamily}
         {\namepartgiveni}
         {\namepartprefix}
         {\namepartsuffix}}
       {\usebibmacro{name:given-family}
         {\namepartfamily}
         {\namepartgiven}
         {\namepartprefix}
         {\namepartsuffix}}}
    {\ifgiveninits
       {\usebibmacro{name:family-given}
         {\namepartfamily}
         {\namepartgiveni}
         {\namepartprefix}
         {\namepartsuffix}}
       {\usebibmacro{name:family-given}
         {\namepartfamily}
         {\namepartgiven}
         {\namepartprefix}
         {\namepartsuffix}}%
     \ifboolexpe{%
       test {\ifdefvoid\namepartgiven}
       and
       test {\ifdefvoid\namepartprefix}}
       {}
       {\usebibmacro{name:revsdelim}}}%
  \usebibmacro{name:andothers}}

% redefine maintitle bibmacro to use \titleaddonpunct between maintitle and
% maintitleaddon
\renewbibmacro*{maintitle}{%
  \ifboolexpr{
    test {\iffieldundef{maintitle}}
    and
    test {\iffieldundef{mainsubtitle}}
  }
    {}
    {\printtext[maintitle]{%
       \printfield[titlecase]{maintitle}%
       \setunit{\subtitlepunct}%
       \printfield[titlecase]{mainsubtitle}}%
     \setunit{\titleaddonpunct}}% replace \newunit
  \printfield{maintitleaddon}}

\begin{document}
\nocite{*}
\printbibliography
\end{document}

在此处输入图片描述

相关内容