
나는 다음 정의와 함께 biblatex와 biber를 사용하고 있습니다.
\usepackage[
backend=biber,
sorting=none,
backref=true,
% firstinits=true,
style=numeric-comp
]{biblatex}
\DefineBibliographyStrings{english}{
backrefpage = {cited on p.},
backrefpages = {cited on pp.}
}
다음과 같이 정의된 참고문헌 항목이 있습니다.
@book{yellow-hl-lhc,
author = "Apollinari, G and Béjar Alonso, I and Brüning, O and Lamont, M and
Rossi, L",
title = "{High-Luminosity Large Hadron Collider (HL-LHC):
Preliminary Design Report}",
publisher = "CERN",
address = "Geneva",
series = "CERN Yellow Reports: Monographs",
year = "2015",
url = "https://cds.cern.ch/record/2116337",
doi = "10.5170/CERN-2015-005"
}
다음과 같이 나옵니다.
cds
처럼 작동해야 하는 새 필드를 정의할 수 있습니까 doi
? 그래서 .bib
파일에 쓸 수 있고 cds = "2116337"
URL에 연결된 번호와 함께 참고문헌 항목에 "CDS: 2116337"을 추가할 수 있습니까?
답변1
후손을 위해 답변을 바탕으로 내가 한 일의 목록은 다음과 같습니다.여기, 댓글에서 제안되었습니다.
내부에는 biblatex-dm.cfg
메인 파일과 같은 디렉토리에 넣을 수 있으며 .tex
,
\DeclareDatamodelFields[type=field,datatype=verbatim]{cds}
\DeclareDatamodelEntryfields{cds}
메인에서 .tex
, 이후 \usepackage{biblatex}
, 이전 \begin{document}
,
\DeclareFieldFormat{cds}{%
\textsc{cds}\addcolon\space
\ifhyperref
{\href{https://cds.cern.ch/record/#1}{\nolinkurl{#1}}}
{\nolinkurl{#1}}}
\renewbibmacro*{doi+eprint+url}{%
\iftoggle{bbx:doi}
{\printfield{doi}}
{}%
\newunit\newblock
\iftoggle{bbx:eprint}
{\usebibmacro{eprint}}
{}%
\newunit\newblock
\printfield{cds}%
\newunit\newblock
\iftoggle{bbx:url}
{\usebibmacro{url+urldate}}
{}}