
이것은 내 코드입니다.
% 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
밑줄이 그어진 파란색의 짧은 단어입니다.
어떻게 할 수 있나요?
추신
그런데 인용문 앞에 별표를 어떻게 추가할 수 있나요 *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}}}
하이퍼링크 모양을 사용자 정의하는 추가 옵션을 보려면 예를 참조하세요.하이퍼참조가 있는 링크에 색상과 밑줄을 표시하려면 어떻게 해야 합니까?
MWE
\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}}}