参考文献内の URL リンクを 1 つの単語「Link」として作成する方法はありますか?

参考文献内の URL リンクを 1 つの単語「Link」として作成する方法はありますか?

これが私のコードです:

% arara: pdflatex: { shell: yes }
% arara: biber
% arara: pdflatex: { shell: yes }
% arara: pdflatex: { shell: yes }
\documentclass[12pt,a4paper]{article}
\usepackage{filecontents}
\begin{filecontents}{jobname.bib}
@techreport{NBERw10828,
 title = "Accounting for Cross-Country Income Differences",
 author = "Francesco Caselli",
 institution = "National Bureau of Economic Research",
 type = "Working Paper",
 series = "Working Paper Series",
 number = "10828",
 year = "2004",
 month = "October",
 URL = "http://www.nber.org/papers/w10828",
 abstract = {Why are some countries so much richer than others? Development Accounting is a first-pass attempt at organizing the answer around two proximate determinants: factors of production and efficiency. It answers the question "how much of the cross-country income variance can be attributed to differences in (physical and human) capital, and how much to differences in the efficiency with which capital is used?" Hence, it does for the cross-section what growth accounting does in the time series. The current consensus is that efficiency is at least as important as capital in explaining income differences. I survey the data and the basic methods that lead to this consensus, and explore several extensions. I argue that some of these extensions may lead to a reconsideration of the evidence.},
}}
\end{filecontents}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\hypersetup{
colorlinks = true,
linkcolor = black,
anchorcolor = black,
citecolor = black,
urlcolor=blue,
bookmarksopen = true,
bookmarksnumbered = true,
bookmarksopenlevel = 2,
pdfstartview = {FitH},
pdfborder = {0 0 0}
}
\usepackage[indexing=cite,style=authoryear,citestyle=authoryear,sorting=none,backend=biber]{biblatex}
\makeatletter
\AtEveryCite{%
  \let\parentext=\parentexttrack%
  \let\bibopenparen=\bibopenbracket%
  \let\bibcloseparen=\bibclosebracket}
\makeatother
%\renewcommand{\mkbibnamelast}[1]{\mkbibemph{#1}}
\addbibresource{jobname.bib}
\begin{document}
First \cite{NBERw10828}\par
\printbibliography
\end{document}

結果は次のとおりです: ここに画像の説明を入力してください

これは私が URL リンクとして設定したいもので、Link下線が引かれ、青色で表示される 1 つの短い単語です。

ここに画像の説明を入力してください

どうすればそれができるのでしょうか?

追伸

ところで、引用の前に星を追加するにはどうすればいいでしょうか*Caselli?

答え1

私の意見では、あまりお勧めできませんが、再定義を使用することもできます

\DeclareFieldFormat{url}{\href{#1}{\underline{Link}}}

hyperrefこの定義は有効になっていない場合、完全なURLを出力します

\DeclareFieldFormat{url}{%
  \ifhyperref
    {\href{#1}{\underline{Link}}}
    {\url{#1}}}

あるいは、ローカリゼーション機能を利用することでbiblatex

\DefineBibliographyStrings{english}{%
  url = {link},
}

\DeclareFieldFormat{url}{%
  \ifhyperref
    {\href{#1}{\bibstring{url}}}
    {\url{#1}}}

ハイパーリンクの外観をカスタマイズするためのその他のオプションについては、たとえば以下を参照してください。hyperref を使用して色付きおよび下線付きのリンクを作成するにはどうすればよいでしょうか?

ムウェ

\documentclass[12pt,a4paper]{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@techreport{NBERw10828,
 title = "Accounting for Cross-Country Income Differences",
 author = "Francesco Caselli",
 institution = "National Bureau of Economic Research",
 type = "Working Paper",
 series = "Working Paper Series",
 number = "10828",
 year = "2004",
 month = "October",
 URL = "http://www.nber.org/papers/w10828",
}
\end{filecontents}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\hypersetup{
colorlinks = true,
linkcolor = black,
anchorcolor = black,
citecolor = black,
urlcolor=blue,
bookmarksopen = true,
bookmarksnumbered = true,
bookmarksopenlevel = 2,
pdfstartview = {FitH},
pdfborder = {0 0 0}
}
\usepackage[indexing=cite,style=authoryear,citestyle=authoryear,sorting=none,backend=biber]{biblatex}
\makeatletter
\AtEveryCite{%
  \let\parentext=\parentexttrack%
  \let\bibopenparen=\bibopenbracket%
  \let\bibcloseparen=\bibclosebracket}
\makeatother

\DefineBibliographyStrings{english}{%
  url = {link},
}

\DeclareFieldFormat{url}{%
  \ifhyperref
    {\href{#1}{\bibstring{url}}}
    {\url{#1}}}

%\renewcommand{\mkbibnamelast}[1]{\mkbibemph{#1}}
\addbibresource{\jobname.bib}
\begin{document}
First \cite{NBERw10828}\par
\printbibliography
\end{document}

ここに画像の説明を入力してください

答え2

URL の印刷方法は、次のように再定義できます ( のロード後のプリアンブルのどこかでbibtex)。

\DeclareFieldFormat{url}{\ifhyperref{\href{#1}{Link.}}{\url{#1}}}

「リンク」を示す画像

関連情報