biblatex-ext-tabular 带 authoryear 键

biblatex-ext-tabular 带 authoryear 键

我被要求制作类似以下示例的表格式参考书目:

样本书目

从理论上讲,这应该可以使用biblatex-ext-tabular,因此我尝试根据自己的需要调整其文档中的 MWE:

\documentclass{article}
\usepackage{csquotes}
\usepackage[%
bibstyle=authortitle,%
citestyle=authoryear,%
backend=biber%
%backend=biber, style=ext-authoryear
]{biblatex}
\usepackage{biblatex-ext-tabular}
\usepackage{longtable}
\usepackage{array}
\newcolumntype{L}[1]{%
>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\defbibtabular{bibtabular}
{\setlength{\LTpre}{0pt}%
\setlength{\LTpost}{0pt}%
\renewcommand*{\arraystretch}{2}%
\begin{longtable}{%
@{}
L{\dimexpr0.3\textwidth-\tabcolsep\relax}
L{\dimexpr0.7\textwidth-\tabcolsep\relax}
@{}}}
{\end{longtable}}
{\anchorlang{\usebibmacro{tabular:sortname}} &
\driver{\usebibmacro{tabular:omitsortname}} \\}

\begin{filecontents}[force]{\jobname.bib}
@book{Aufrecht1859,
title = {Ujjvaladatta's Commentary on the Uṇādisūtras},
titleaddon = {Edited from a Manuscript in the Library of the East India House},
editor = {Theodor Aufrecht},
location = {Bonn},
year = {1859},
}

\end{filecontents}


\addbibresource{\jobname.bib}

\begin{document}

\cite{Aufrecht1859}---%
\fullcite{Aufrecht1859}


\printbibtabular
\end{document}

我想我需要知道定义最后两行中正确的 bibmacros 的名称,也许还需要进行一些调整。如果能指点一下它们是什么,我将不胜感激。实际上,如果我使用和加载 biblatex,表格左侧和右侧bibtabular的命令基本上会产生所需的内容,那么哪些 bibmacros 会与它们相对应?\cite\fullcitebibstyle=authortitlecitestyle=authoryear

示例输出

答案1

如果您使用和biblatex-ext的版本,则可以使用 bibmacro在表格左侧排版引文,并在右侧排版完整的 bib 条目。另请参阅中的示例authoryearauthortitleintrocite:typeset\driver{}引用的特殊格式

\documentclass{article}
\usepackage{csquotes}
\usepackage[%
  backend=biber,
  bibstyle=ext-authortitle,
  citestyle=ext-authoryear,
]{biblatex}
\usepackage{biblatex-ext-tabular}
\usepackage{longtable}
\usepackage{array}
\newcolumntype{L}[1]{%
  >{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}

\defbibtabular{bibtabular}
  {\setlength{\LTpre}{0pt}%
   \setlength{\LTpost}{0pt}%
   \renewcommand*{\arraystretch}{2}%
   \begin{longtable}{%
     @{}
     L{\dimexpr0.3\textwidth-\tabcolsep\relax}
     L{\dimexpr0.7\textwidth-\tabcolsep\relax}
     @{}}}
  {\end{longtable}}
  {\anchorlang{\usebibmacro{introcite:typeset}} &
   \driver{} \\}

\DeclareNameAlias{sortname}{default}

\begin{filecontents}{\jobname.bib}
@book{Aufrecht1859,
  title      = {Ujjvaladatta's Commentary on the Uṇādisūtras},
  titleaddon = {Edited from a Manuscript in the Library of the East India House},
  editor     = {Theodor Aufrecht},
  location   = {Bonn},
  year       = {1859},
}
\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
Lorem \autocite{Aufrecht1859}

\printbibtabular
\end{document}

表格书目,右侧为作者年份引用,左侧为完整条目。

相关内容