Created
June 9, 2020 12:32
-
-
Save idiotWu/4879a88a3e34618cc8215a43ba2e9fbd to your computer and use it in GitHub Desktop.
biblatex で日本語文献をサポート
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 日本語文献サポート | |
\AtEveryBibitem{ | |
% langid={Japanese} で識別 | |
\iffieldequalstr{langid}{Japanese} { | |
% コンマで区切り | |
\DeclareDelimFormat{finalnamedelim}{% | |
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}% | |
\addspace\multinamedelim | |
} | |
% 名前を「姓 名」の順に | |
\DeclareNameFormat{default}{% | |
\usebibmacro{name:delim}{\namepartfamily\namepartgiven}% | |
\usebibmacro{name:hook}{\namepartfamily\namepartgiven}% | |
\namepartfamily\bibnamedelimc\namepartgiven% | |
\usebibmacro{name:andothers} | |
} | |
% 年月日に参照 | |
\DeclareFieldFormat{urldate}{% | |
(\thefield{urlyear}-\thefield{urlmonth}-\thefield{urlday}~に参照\isdot) | |
} | |
% カギカッコでタイトルを囲む | |
\DeclareFieldFormat*{title}{「#1」} | |
\DeclareFieldFormat[book]{title}{『#1』} | |
}{} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment