将缩写引文超链接到参考书目中的参考文献

将缩写引文超链接到参考书目中的参考文献

我有一篇论文多次引用了另一篇论文。为了避免每次引用时都重复相同的引用,我第一次引用了全文,然后将其缩写并用于论文的其余部分。例如,这是我的论文中出现的句子:

Fernandez-Villaverde、Guerron-Quintana、Kuester 和 Rubio-Ramirez (2015)(以下简称 FGKR)表明......

我如何将“FGKR”超链接到参考书目中与其完整形式相同的参考文献?我希望它像文章类中的 hyperref 包中的常规引用一样工作。

编辑

感谢 OP 的评论,我意识到我应该发布 MWE。它在这里:

\documentclass[12pt,a4paper]{article}
\usepackage[english]{babel}
\usepackage{natbib}
\bibliographystyle{ecta}
\usepackage[colorlinks,citecolor=red]{hyperref}
\title{A Paper} 

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@article{fernandez2015fiscal,
title={Fiscal Volatility Shocks and Economic Activity},
author={Fern{\'a}ndez-Villaverde, Jes{\'u}s and Guerr{\'o}n-Quintana, Pablo 
and Kuester, Keith and Rubio-Ram{\'\i}rez, Juan},
journal={The American Economic Review},
volume={105},
number={11},
pages={3352--3384},
year={2015},
publisher={American Economic Association}
}
\end{filecontents}

\begin{document}
\maketitle

\section{Introduction}
\citet*{fernandez2015fiscal} (FGKR now on) look at real effects of increased 
uncertainty surrounding fiscal policy and find that volatility shocks to 
fiscal policy in the US carried negative effects on investment, output, 
consumption and labor. The VAR estimated in FGKR \ldots

\bibliographystyle{ecta}
\bibliography{\jobname}

\end{document}

我编译后的输出如下所示:

在此处输入图片描述

这里,引用已正确超链接到“参考文献”部分的条目。我还想将“FGKR”的每个实例超链接到“参考文献”部分的相同条目。我应该怎么做?

答案1

您正在加载natbib,因此您可以使用\defcitealias{<key>}{<alias>}来定义一个<alias>可以<key>用和来打印的\citetalias{<key>}\citepalias{<key>}而不是正常的引用标签。

\documentclass[12pt,a4paper]{article}
\usepackage[english]{babel}
\usepackage{natbib}
\bibliographystyle{ecta}
\usepackage[colorlinks,citecolor=red]{hyperref}

\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{fernandez2015fiscal,
  title   = {Fiscal Volatility Shocks and Economic Activity},
  author  = {Fern{\'a}ndez-Villaverde, Jes{\'u}s
             and Guerr{\'o}n-Quintana, Pablo
             and Kuester, Keith and Rubio-Ram{\'i}rez, Juan},
  journal = {The American Economic Review},
  volume  = {105},
  number  = {11},
  pages   = {3352--3384},
  year    = {2015},
}
\end{filecontents}

\defcitealias{fernandez2015fiscal}{FGKR}

\begin{document}
\citet*{fernandez2015fiscal} (\citetalias{fernandez2015fiscal} from now on) 

\citetalias{fernandez2015fiscal} and \citepalias{fernandez2015fiscal}

\bibliography{\jobname}
\end{document}

费尔南德斯-维拉韦德、格雷隆-金塔纳、库斯特和鲁比奥-拉米雷斯 (2015) (FGKR 下) FGKR 和 (FGKR)

相关内容