我想以 APA 格式“引文(作者,年份)”添加引文,并将它们链接到参考文献部分中的文章条目。具体如下:https://aclanthology.org/2023.acl-long.5.pdf(仅举个例子)。有没有办法用 Latex 自动完成这个?我只找到了关于如何使用索引引用(如“引用 [1]”)执行此操作的教程。
我当前的代码是:
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8
% This is a simple template for a XeLaTeX document using the "article" class,
% with the fontspec package to easily select fonts.
\documentclass[11pt]{article} % use larger type; default would be 10pt
\usepackage{fontspec} % Font selection for XeLaTeX; see fontspec.pdf for documentation
\defaultfontfeatures{Mapping=tex-text} % to support TeX conventions like ``---''
\usepackage{xunicode} % Unicode support for LaTeX character names (accents, European chars, etc)
\usepackage{xltxtra} % Extra customizations for XeLaTeX
%\setsansfont{Deja Vu Sans}
%\setmonofont{Deja Vu Mono}
% other LaTeX packages.....
\usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
\geometry{a4paper} % or letterpaper (US) or a5paper or....
%\usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
\usepackage{hyperref}
\usepackage{graphicx} % support the \includegraphics command and options
\title{My title}
\author{Me}
\date{} % Activate to display a given date or no date (if empty),
% otherwise the current date is printed
\begin{document}
\maketitle
Just \hyperlink{label1}{Click me!}. In the paper \cite{Test00}...
\pagebreak
\hypertarget{label1}{I'm target}
\pagebreak
\begin{thebibliography}{99}
\bibitem{Test00} T. Test, \emph{Test testing tests}, Journal of Testing
\end{thebibliography}
\end{document}
%\section{}
%\subsection{}
\end{document}