我想在參考文獻清單中將標題放在作者姓名之前。我怎樣才能做到這一點。我正在使用 biblatex 的以下設定:
\usepackage[backend=biber,sorting=ydnt,
bibstyle=authoryear-comp,labelyear=false,defernumbers=true,maxnames=20,firstinits=true,
uniquename=init,dashed=false]{biblatex}
預先感謝,蘇希爾
答案1
您可以自行聲明不同類型的驅動程序,standard.bbx
透過複製/貼上取得原始檔案並交換bibmacros。為了進行跟踪,您應該將所有這些內容放入一個新bbx
文件中並為其指定一個唯一的名稱。完成此操作後,您的序言將不再那麼混亂。
我只是不明白,為什麼你authoryear-comp
只選擇 bibstyle?背後的重要內容authoryear-comp
發生在文本引用中。
\documentclass{article}
\usepackage[backend=biber,sorting=ydnt,
bibstyle=authoryear-comp,labelyear=false,defernumbers=true,maxnames=20,firstinits=true,
uniquename=init,dashed=false]{biblatex}
\addbibresource{biblatex-examples.bib}
\DeclareBibliographyDriver{book}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{maintitle+title}%swap
\setunit{\labelnamepunct}\newblock
\usebibmacro{author/editor+others/translator+others}%swap
\newunit
\printlist{language}%
\newunit\newblock
\usebibmacro{byauthor}%
\newunit\newblock
\usebibmacro{byeditor+others}%
\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
\printfield{pagetotal}%
\newunit\newblock
\iftoggle{bbx:isbn}
{\printfield{isbn}}
{}%
\newunit\newblock
\usebibmacro{doi+eprint+url}%
\newunit\newblock
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
\newunit\newblock
\iftoggle{bbx:related}
{\usebibmacro{related:init}%
\usebibmacro{related}}
{}%
\usebibmacro{finentry}}
\begin{document}
\cite{westfahl:space}
\cite{companion}
\printbibliography
\end{document}