使用 biblatex 以特殊方式引用特殊文献类型(展览目录)

使用 biblatex 以特殊方式引用特殊文献类型(展览目录)

我正在尝试排版我配偶的艺术史论文。一般来说,她的大学要求她

  • 在脚注中提供引用,authoryear-ibid-style
  • 有表格形式的参考书目,authoryear第一列为简短形式,第二列为详细书目条目。(条目必须按第一列排序,这一点的重要性稍后会更清楚。)

然而,有一种特殊类型的引用文献是展览目录(或“展览目录”),这些需要以完全不同的方式引用。

<name> <year>

引用脚注必须类似于

Ausst.-Kat. <location>[/<2nd location>] <year>

相同的信息也必须替换authoryear参考书目第一列的简短形式。

因此,本质上我想为文档类型展览目录实现以下目标:

  1. 使用表格式参考书目,第一列为引文缩写形式
  2. 用 替换通常的authoryear缩写形式,Ausst.-Kat. <location>[/<2nd location>] <year>并在引文脚注和参考书目第一列中使用它
  3. 将整个书目按第一列以相应的缩写形式排序,这样任何展览目录,无论其作者/编辑姓名或标题(!),都将列在名字以“B”开头的作者撰写的书籍/文章之前
  4. 展览目录的长条目应包括 <exhibition title> [<subtitle>], hg. v. <editor's first name(s)> <editor's second name(s)> (Ausst.-Kat. <exhibition location>, <museum's name>, <exhibition dates> [; <2nd location>, <museum's name>, <exhibition dates>]), <address> <year>

我的问题是:有没有办法让它自动工作?

下面我列出了最低限度不工作举个例子,我试图非常粗略地近似上述一些观点。但它失败了,因为它不是自动化的,而且它自然而然地完全忽略了我列表中的第 3 点(展览目录的条目应该排在参考书目中的第二位,在 Augustinus 和 Bernardini 之间,而不是第三位)。

这是 MNWEB:

\documentclass[12pt, paper=a4]{scrbook}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[autostyle,german=guillemets]{csquotes}
\usepackage[ngerman]{babel}
\usepackage[nopar]{lipsum}
\usepackage{filecontents}
\usepackage{ebgaramond}
\usepackage{avant}      % Set sans serif font: helvet,avant,...

\usepackage[backend=biber,
    citestyle=authoryear-ibid,
    autocite=footnote,
    bibstyle=authortitle,
    isbn=false,
    maxcitenames=3]
{biblatex}

\newcounter{mymaxcitenames}
\AtBeginDocument{%
  \setcounter{mymaxcitenames}{\value{maxnames}}%
}

\newlength{\citelabelwidth}
\defbibenvironment{bibliography}
  {\list
     {\begingroup\defcounter{maxnames}{\value{mymaxcitenames}}\usebibmacro{cite}\endgroup}
     {\setlength{\labelwidth}{\citelabelwidth}%
      \setlength{\leftmargin}{\labelwidth}%
      \setlength{\labelsep}{\biblabelsep}%
      \addtolength{\leftmargin}{\labelsep}%
      \setlength{\itemsep}{\bibitemsep}%
      \setlength{\parsep}{\bibparsep}}%
      \renewcommand*{\makelabel}[1]{##1\hss}}
  {\endlist}
  {\item}

\makeatletter
\AtEveryCitekey{%
  \blx@setlabwidth{\citelabelwidth}{\usebibmacro{cite}}
}
\makeatother

\renewcommand{\multinamedelim}{\addslash}
\renewcommand{\finalnamedelim}{\addslash}

\begin{filecontents}{test.bib}
    @Book{Augustinus1955,
        Title                    = {Vom Gottesstaat},
        Author                   = {Augustinus, Aurelius},
        Year                     = {1955},
        Address                  = {Zürich},
        Volume                   = {1},
        ISBN                     = {978-3-423-34393-0},
        Translator               = {Thimme, Wilhelm}}
    @Book{Bernardini1999,
        Title                    = {Gian Lorenzo Bernini regista del barocco},
        Editor                   = {Bernardini, Maria Grazia and Fagiolo dell'Arco, Marcello},
        Year                     = {1999},
        Address                  = {Mailand},
        Abstract                 = {Il volume, che costituisce il catalogo dell'esposizione di Roma (Palazzo Esposizioni 24 marzo-31 maggio 1999) vuole anche essere la completa e aggiornata monografia su Gian Lorenzo Bernini e si pone come uno strumento indispensabile per la conoscenza dell'arte barocca italiana. I saggi, curati da vari esperti del Bernini (tra cui M. Fagiolo, I. Faldi, O. Ferrari, C.L. Frommel, P. Marconi, V. Martinelli, R. Preimesberger, M. Winner) analizzano la vasta produzione berniniana.},
        ISBN                     = {978-88-8118-484-2},
        Keywords                 = {Art / History / Baroque \& Rococo}}
\end{filecontents}
\addbibresource{test.bib}

\begin{document}

\chapter{Mein erstes Kapitel}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\autocite{Bernardini1999}
Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.\footnote{Ausst.-Kat. Bonn/Berlin 2005--2006.}
Curabitur dictum gravida mauris.\autocite[][S. 130]{Augustinus1955}

\printbibliography

\noindent\begin{tabular}{l p{11cm}}
    Ausst.-Kat. Bonn/Berlin 2005--2006 & Barock im Vatikan. Kunst und Kultur der Päpste II 1572--1676, hg. v. Jutta Frings (Ausst.-Kat. Bonn, Kunst- und Ausstellungshalle der Bundesrepublik Deutschland, 25. November bis 19. März 2006; Berlin, Martin-Gropius-Bau, 12. April bis 10. Julia 2006), Leipzig 2006
\end{tabular}

\end{document}

这是另一个 MWEB,基于biblatex-archaeologie样式(在评论中推荐) - 它会自动获取 1)引用中的信息和 2)(表格)参考书目条目的正确顺序,不允许脚注引用和同上但是缩写:

\documentclass[12pt, paper=a4]{scrbook}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[autostyle,german=guillemets]{csquotes}
\usepackage[ngerman]{babel}
\usepackage[nopar]{lipsum}
\usepackage{filecontents}
\usepackage{ebgaramond}
\usepackage{avant}

\usepackage[%
    backend=biber,
    style=archaeologie,
    width=7cm,
    isbn=false,
    maxcitenames=3]%
{biblatex}

\begin{filecontents}{test.bib}
    @Book{Augustinus1955,
        Title                    = {Vom Gottesstaat},
        Author                   = {Augustinus, Aurelius},
        Year                     = {1955},
        Address                  = {Zürich},
        Volume                   = {1},
        ISBN                     = {978-3-423-34393-0},
        Translator               = {Thimme, Wilhelm}}
    @Book{Bernardini1999,
        Title                    = {Gian Lorenzo Bernini regista del barocco},
        Editor                   = {Bernardini, Maria Grazia and Fagiolo dell'Arco, Marcello},
        Year                     = {1999},
        Address                  = {Mailand},
        ISBN                     = {978-88-8118-484-2},
        Keywords                 = {Art / History / Baroque \& Rococo}}
    @reference{Frings2005,
        editor                                   = {Frings, Jutta},
        title                                        = {Barock im Vatikan. Kunst und Kultur der Päpste II 1572--1676},
        shorthand                                = {Ausst.-Kat. Bonn/Berlin 2005--2006},
        series                                   = {(Ausst.-Kat. Bonn, Kunst- und Ausstellungshalle der Bundesrepublik Deutschland, 25. November bis 19. März 2006; Berlin, Martin-Gropius-Bau, 12. April bis 10. Juli 2006)},
        location                                 = {Leipzig},
        year                                         = {2005}}
\end{filecontents}
\addbibresource{test.bib}

\begin{document}

\chapter{Mein erstes Kapitel}
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\parencite{Bernardini1999}
Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.\parencite{Frings2005}
Curabitur dictum gravida mauris.\parencite[][S. 130]{Augustinus1955}

\printbibliography

\end{document}

答案1


由于这个问题下面已经回答得很糟糕,所以决定把这个问题变成一个新的问题biblatex-style arthistory-bonn

biblatex 样式与 CTAN 一起发布: https://www.ctan.org/pkg/biblatex-arthistory-bonn

代码的开发是在 GitHub 上完成的https://github.com/LukasCBossert/biblatex-arthistory


好的,这是一个相当肮脏的黑客行为,但如果您想使用,它应该满足要求biblatex-archaeologie

  1. 在脚注中引用。我只是添加了一个新的\cite命令,即\footcite

    \DeclareCiteCommand{\footcite}[\mkbibfootnote] {\usebibmacro{prenote}}% {\usebibmacro{citeindex}% \usebibmacro{cite}}% {\multicitedelim}% {\ifboolexpr{% test{\ifbool{bbx:inreferences}}% and% test{\ifentrytype{inreference}}% }{}{\usebibmacro{postnote}}}% 现在你可以引用\footcite[123]{bibtex-key}

  2. ibid-issue不幸的是,我们还没有将其插入到样式中archaeologie,因此我从中复制/粘贴了代码authoryear-ibid.cbx

我给你完整的 MWEB:

\documentclass[12pt, paper=a4]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[autostyle,german=guillemets]{csquotes}
\usepackage[ngerman]{babel}
\usepackage{filecontents}
\usepackage{libertine}%more fonts (e.g. bold letters)

\usepackage[backend=biber,
    style=archaeologie,
    width=4cm,
    isbn=false,
    ibidtracker=constrict,
    translation,
    maxcitenames=3]
{biblatex}


\DeclareCiteCommand{\footcite}[\mkbibfootnote]
  {\usebibmacro{prenote}}%
  {\usebibmacro{citeindex}%
  \usebibmacro{cite}}%
  {\multicitedelim}%
  {\ifboolexpr{%
  test{\ifbool{bbx:inreferences}}%
  and%
  test{\ifentrytype{inreference}}%
  }{}{\usebibmacro{postnote}}}%


%%-- from authoryear-ibid.cbx
\providecommand*{\mkibid}[1]{#1}
\renewcommand*{\iffinalcitedelim}{\iflastcitekey}

\newbool{cbx:parens}
\newbool{cbx:loccit}

\DeclareBibliographyOption[boolean]{ibidpage}[true]{%
  \ifstrequal{#1}{true}
    {\ExecuteBibliographyOptions{loccittracker=constrict}}
    {\ExecuteBibliographyOptions{loccittracker=false}}}

\newbibmacro*{cite}{%
  \global\boolfalse{cbx:loccit}%
  \iffieldundef{shorthand}
    {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
       {\usebibmacro{cite:ibid}}
       {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
          {\usebibmacro{cite:label}%
           \setunit{\printdelim{nonameyeardelim}}}
          {\printnames{labelname}%
           \setunit{\printdelim{nameyeardelim}}}%
        \usebibmacro{cite:labelyear+extrayear}}}
    {\usebibmacro{cite:shorthand}}}

\newbibmacro*{citeyear}{%
  \global\boolfalse{cbx:loccit}%
  \iffieldundef{shorthand}
    {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
       {\usebibmacro{cite:ibid}}
       {\iffieldundef{labelyear}
          {\usebibmacro{cite:label}}
          {\usebibmacro{cite:labelyear+extrayear}}}}
    {\usebibmacro{cite:shorthand}}}

\newbibmacro*{textcite}{%
  \global\boolfalse{cbx:loccit}%
  \ifnameundef{labelname}
    {\iffieldundef{shorthand}
       {\usebibmacro{cite:label}%
        \setunit{%
          \global\booltrue{cbx:parens}%
          \printdelim{nonameyeardelim}\bibopenparen}%
        \ifnumequal{\value{citecount}}{1}
          {\usebibmacro{prenote}}
          {}%
        \usebibmacro{cite:labelyear+extrayear}}
       {\usebibmacro{cite:shorthand}}}
    {\printnames{labelname}%
     \setunit{%
       \global\booltrue{cbx:parens}%
       \printdelim{nameyeardelim}\bibopenparen}%
     \ifnumequal{\value{citecount}}{1}
       {\usebibmacro{prenote}}
       {}%
     \iffieldundef{shorthand}
       {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
          {\usebibmacro{cite:ibid}}
          {\iffieldundef{labelyear}
             {\usebibmacro{cite:label}}
             {\usebibmacro{cite:labelyear+extrayear}}}}
       {\usebibmacro{cite:shorthand}}}}

\newbibmacro*{cite:shorthand}{%
  \printtext[bibhyperref]{\printfield{shorthand}}}

\newbibmacro*{cite:ibid}{%
  \printtext[bibhyperref]{\bibstring[\mkibid]{ibidem}}%
  \ifloccit
    {\global\booltrue{cbx:loccit}}
    {}}

\newbibmacro*{cite:label}{%
  \iffieldundef{label}
    {\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}
    {\printtext[bibhyperref]{\printfield{label}}}}



\newbibmacro*{cite:postnote}{%
  \ifbool{cbx:loccit}
    {}
    {\usebibmacro{postnote}}}

\newbibmacro*{textcite:postnote}{%
  \ifthenelse{\iffieldundef{postnote}\OR\boolean{cbx:loccit}}
    {\ifbool{cbx:parens}
       {\bibcloseparen}
       {}}
        {\ifbool{cbx:parens}
       {\postnotedelim}
       {\extpostnotedelim\bibopenparen}%
     \printfield{postnote}\bibcloseparen}}


\renewcommand{\multinamedelim}{\addslash}
\renewcommand{\finalnamedelim}{\addslash}

\begin{filecontents}{test.bib}
    @Book{Augustinus1955,
    Title                    = {Vom Gottesstaat},
    Author                   = {Augustinus, Aurelius},
    Year                     = {1955},
    location                  = {Zürich},
    keywords = {Quelle},
    origlanguage={latin},
    number                   = {1},
    ISBN                     = {978-3-423-34393-0},
    translator               = {Thimme, Wilhelm}
    }

 @Book{Bernardini1999,
        Title                    = {Gian Lorenzo Bernini regista del barocco},
        Editor                   = {Bernardini, Maria Grazia and Fagiolo dell'Arco, Marcello},
        Year                     = {1999},
        location                  = {Mailand},
        ISBN                     = {978-88-8118-484-2},
        Keywords                 = {Art / History / Baroque \& Rococo}}

@book{AusstellungBonn2005,
    title = {Barock im Vatikan},
    subtitle = {Kunst und Kultur der Päpste II 1572--1676},
     shorthand = {Ausst.-Kat. Bonn/Berlin 2005--2006},
     editor = {Jutta Frings},
     keywords = {Ausstellung},
     titleaddon = {\parentext{Ausst.-Kat. Bonn, Kunst- und Ausstellungshalle         der Bundesrepublik Deutschland, 25. November bis 19. März 2006; Berlin, Martin-Gropius-Bau, 12. April bis 10. Juli 2006}},
     location = {Leipzig},
     year = {2006},
}
\end{filecontents}
\addbibresource{test.bib}  
\begin{document}

\chapter{Mein erstes Kapitel}
Lorem ipsum dolor sit amet, consectetuer adipiscing     elit.\footcite{Bernardini1999}\footcite[23]{Bernardini1999}
Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae,     felis.\footcite{AusstellungBonn2005}
\footcite{AusstellungBonn2005}
Curabitur dictum gravida mauris.\footcite[][\pno\ 130]    {Augustinus1955}\footcite[][\pno\ 130]{Augustinus1955}


\printbibheading[%
    heading=bibliography,% 
    title={Bibliographie}] 

\printbibliography[%
    keyword=Quelle,%
    heading=subbibliography,
    title={Antike Quelle}]

\printbibliography[%
    keyword=Ausstellung,%
    heading=subbibliography, 
    title={Ausstellungskataloge}]

\printbibliography[%
    notkeyword=Ausstellung,%
    notkeyword=Quelle,%
    heading=subbibliography,
     title={Sekundärliteratur}]

\end{document}

ibid现在当它是 a 时不起作用shorthand(例如 ›Ausstellungskatalog‹ 的情况)。但也许 @moewe 有一些想法可以改进此代码。

相关内容