![產生引文或僅從參考文獻庫中列出,其格式為[第一作者的姓氏]˽(年份)-˽標題](https://rvso.com/image/348038/%E7%94%A2%E7%94%9F%E5%BC%95%E6%96%87%E6%88%96%E5%83%85%E5%BE%9E%E5%8F%83%E8%80%83%E6%96%87%E7%8D%BB%E5%BA%AB%E4%B8%AD%E5%88%97%E5%87%BA%EF%BC%8C%E5%85%B6%E6%A0%BC%E5%BC%8F%E7%82%BA%5B%E7%AC%AC%E4%B8%80%E4%BD%9C%E8%80%85%E7%9A%84%E5%A7%93%E6%B0%8F%5D%CB%BD(%E5%B9%B4%E4%BB%BD)-%CB%BD%E6%A8%99%E9%A1%8C.png)
所以我有一個超過100個條目的參考文獻庫,我想將參考書目的引文風格更改為以下格式[第一作者的姓氏]˽(年份)-˽標題。
其中 ˽ 是一個空格。
或者,如果我能以某種方式從我的圍兜庫中的文字檔案中生成具有該格式的列表,我就很好。
.bib
包含這樣的條目的文件
@article{guo2010three,
title={Three-dimensional thermal finite element modeling of lithium-ion battery in thermal abuse application},
author={Guo, Guifang and Long, Bo and Cheng, Bo and Zhou, Shiqiong and Xu, Peng and Cao, Binggang},
journal={Journal of Power Sources},
volume={195},
number={8},
pages={2393--2398},
year={2010},
publisher={Elsevier}
}
並在文章中引用為
\cite{guo2010three}
我在用biblatex
。我的引文目前看起來像這樣
[68] G.Guo,B.Long,B.Cheng,S.Zhou,P.Xu,B.Cao。 「熱濫用應用中鋰離子電池的三維熱有限元素建模」。請參閱:Journal of PowerSources195.8 (2010),第 2393–2398 頁(引自第 16 頁)。
但我想成為
[68]Guo 2010 熱濫用應用中鋰離子電池三維熱有限元素建模
或只是有一個文字檔案輸出,其中包含此格式的條目
該.tex
文件看起來像這樣
\documentclass[]{report}
\setdate{\today}
%\setkeywords{LaTeX, Formatierung, EES-Vorlage}
\bibliography{LIST/literature} % Include literature
%%%----- Document ------------------------------------
\begin{document}
%\listoftodos % Show list of todo's
\maketitle % Show titlepage
\tableofcontents % Show list of contents
\begin{mainpart}
\chapter{Introduction}
,,,,
\end{mainpart}
\printbibliography
\listoffigures
\end{document}
答案1
由於您希望所有條目類型具有相同的輸出,因此您可以定義一個新驅動程式並重新映射所有條目類型以使用該新驅動程式。
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=numeric, labeldateparts, backend=biber, maxnames=1, minnames=1]{biblatex}
\addbibresource{biblatex-examples.bib}
\DeclareFieldFormat*{labeldate}{\mkbibparens{#1}}
\DeclareFieldFormat*{title}{#1}
\DeclareBibliographyDriver{onlythree}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\printnames{labelname}%
\setunit{\addspace}\newblock
\printlabeldate
\setunit{\addspace}\newblock
\usebibmacro{title}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
\usebibmacro{finentry}}
\makeatletter
\def\do#1{\DeclareBibliographyAlias{#1}{onlythree}}
\abx@doentrytypes
\DeclareBibliographyAlias{*}{onlythree}
\makeatother
\begin{document}
\cite{sigfridsson,worman,geer,vizedom:related}
\printbibliography
\end{document}