
我正在嘗試刪除簡報author
中的字段beamer
,因為我希望參考文獻盡可能緊湊。使用PLK 針對「擺脫參考書目中的作者字段」問題的回答,即:
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\pertype{misc}
\step[fieldset=author, null]
}
}
}
正在刪除作者字段,但是,當使用它時,我在條目之前得到一個句號,後面跟著一個空格journal
:
在我在這裡詢問之前,我已經查看了biblatex
GitHub 存儲庫,但看不到該author
字段在哪裡包含句號和空格\newbibmacro*{author/...}
定義,所以我不知道如何刪除它。我%
在每行後面添加了 '\DeclareSourcemap
但沒有效果。
有誰知道我如何擺脫句點和空格?
MWE(我包含了一些樣式,因此它在某種程度上與我的真實文件相匹配,以防相關):
% arara: pdflatex: {options: [-halt-on-error]}
% arara: biber
% arara: pdflatex: {options: [-halt-on-error]}
\begin{filecontents}[overwrite]{ref.bib}
@Article{Mehandia2020,
author = {Mehandia, Seema and Sharma, S. C. and Arya, Shailendra Kumar},
journal = {Biotechnol. Rep. (Amst)},
title = {Isolation and characterization of an alkali and thermostable laccase from a novel Alcaligenes faecalis and its application in decolorization of synthetic dyes.},
year = {2020},
pages = {e00413},
volume = {25},
doi = {10.1016/j.btre.2019.e00413},
}
@Article{Murugesan2009,
author = {Murugesan, Kumarasamy and Kim, Young-Mo and Jeon, Jong-Rok and Chang, Yoon-Seok},
journal = {J Hazard Mater.},
title = {Effect of metal ions on reactive dye decolorization by laccase from Ganoderma lucidum.},
year = {2009},
pages = {523-9},
volume = {168},
doi = {10.1016/j.jhazmat.2009.02.075},
}
\end{filecontents}
\documentclass{beamer}
\usepackage[backend=biber, style=numeric]{biblatex}
%% --- These are just commands to match my current bib style
\renewcommand*{\bibfont}{\normalfont}
\DeclareFieldFormat{journaltitle}{\mkbibemph{#1},}
\DeclareFieldFormat[article]{title}{}
\DeclareFieldFormat[article]{volume}{\textbf{#1}}
\DeclareFieldFormat[article]{pages}{#1}
\DeclareFieldFormat{doi}{#1}
\renewbibmacro{in:}{}
\renewbibmacro*{issue+date}{}
\renewbibmacro*{volume+number+eid}{%
\setunit*{\addcomma\space}
\usebibmacro{date}%
\setunit{\addcomma\space}
\printfield{volume}%
\setunit*{\addcomma\space}
}
%% ---- End
% https://tex.stackexchange.com/a/656907/273733
\DeclareSourcemap{%
\maps[datatype=bibtex]{%
\map{%
\step[fieldset=author, null]%
}%
}%
}
\addbibresource{ref.bib}
\begin{document}
\begin{frame}
\frametitle{First slide Title}
Text \cite{Mehandia2020}\cite{Murugesan2009}
\end{frame}
\begin{frame}
\frametitle{References}
\printbibliography
\end{frame}
\end{document}
答案1
不僅透過更改其格式來清除來源映射中的標題:
\DeclareSourcemap{%
\maps[datatype=bibtex]{%
\map{%
\step[fieldset=author, null]%
}%
\map{\pertype{article}\step[fieldset=title, null]}
}%
}