使用 Biblatex/biber,如何使每個完整的參考書目行項目成為可點擊的超連結?

使用 Biblatex/biber,如何使每個完整的參考書目行項目成為可點擊的超連結?

我最近問了一個非常相似的問題這裡使用bibtexnatbib.我聯繫了該期刊的排版人員,他們要求我使用該cas-sc.cls文件以及biblatex/biber,並向我指出他們的官方支援門戶這裡其中重申了使用建議biblatex/biber

要求是每個參考書目項目(即整行條目)成為可點擊的超連結(如果可用,則使用 doi 字段,否則使用 bib 文件中相關鍵的 url 字段)。此外,doiurl欄位不應在參考書目中排版。

我想使用的參考書目樣式文件是model1-num-names.bst

這是一個最小的非工作範例:

\documentclass{cas-sc}
\newdimen\bibsep 
\addbibresource{model1-num-names.bst} % please download the file from the gist URL (see question)

\begin{document}

\title[mode=title]{My paper title}
\tnotemark[1,2]

\tnotetext[1]{Title footnote 1: This document presents the results of the research project funded by the National Science Foundation: Placeholder. Replace with your own text.}

\tnotetext[2]{Title footnote 2: For example, a dedication. The second title footnote which is a longertext matter to fill through the whole text width andoverflow into another line in the footnotes area of thefirst page.}

%%% Authors' names, affiliations, physical addresses, email addresses & footnotes %%%%
\author[1]{First Author}[orcid=0000-0001-7511-2910]
\fnmark[1] 
\ead{firstemail_id@insti_1.edu}
\ead[url]{www.inst1.edu/author1}
\address[1]{Address of author with affiliation `a'}

\author[2]{Second Author}
\fnmark[2] 
\ead{secondemail_id@insti_2.edu}
\ead[url]{www.inst2.edu/author2}
\address[2]{Address of author with affiliation `b'}

\author[3]{Third Author} 
\fnmark[1,3]
\ead{thirdemail_id@insti_3.edu}
\ead[url]{www.inst3.edu/author3}

\address[3]{Utopia, Mars}

\fntext[fn1]{This is a footnote.}
\fntext[fn2]{Another author footnote, this is a very long footnote and it should be a really long footnote. But this footnote is not yet sufficiently long enough to make twolines of footnote text.}
\fntext[fn3]{Yet another author footnote.}

\begin{abstract}
    The abstract of the paper goes here. 
    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. 
    Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\end{abstract}

% Research highlights
\begin{highlights}
\item Research highlight 1
\item Research highlight 2
\end{highlights}

\begin{keywords}
    % Keywords go here in the form:  keyword \sep keyword
    Keywords \sep in \sep American \sep English
\end{keywords}

\maketitle

\section{Introduction}{\label{sec:intro}}
Blah

\section{Results and discussion}{\label{sec:results}}
Blah blah

\nocite{*}
% Command to typeset bibliography using biblatex/biber

\end{document}

可以使用以下圍兜內容(我們稱之為manuscript_references.bib

@article{sigfridsson,
  author       = {Sigfridsson, Emma and Ryde, Ulf},
  title        = {Comparison of Methods for Deriving Atomic Charges from the
                  Electrostatic Potential and Moments},
  journal      = {Journal of Computational Chemistry},
  year         = 1998,
  volume       = 19,
  number       = 4,
  pages        = {377-395},
  doi          = {10.1002/(SICI)1096-987X(199803)19:4<377::AID-JCC1>3.0.CO;2-P},
}
@misc{elk,
  author  = {Anne Elk},
  title   = {A Theory on {Brontosauruses}},
  year    = {1971},
  url     = {https://example.edu/~elk/bronto.pdf},
}
@book{nussbaum,
  author       = {Nussbaum, Martha},
  title        = {{Aristotle's} {`De Motu Animalium'}},
  year         = 1978,
  publisher    = {Princeton University Press},
  address      = {Princeton},
}

相關內容