
できるだけ簡潔にするために、プレゼンテーションauthor
のフィールドを削除しようとしています。beamer
「参考文献の著者フィールドを削除する」という質問に対する PLK の回答すなわち:
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\pertype{misc}
\step[fieldset=author, null]
}
}
}
著者フィールドを削除しますが、これを使用すると、エントリの前にピリオドとスペースが続きますjournal
。
ここで質問する前にGitHubリポジトリを見ましたが、フィールドにピリオドとスペースが含まれるbiblatex
場所がわかりませんでした。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]}
}%
}