如何自动引用表格和图形并返回到部分或页面

时间:2018-12-10 00:23:32

标签: r latex pdflatex xelatex

我可以使用\ autoref {mytable}创建对表或图形的引用,但找不到跳回原始节或页面的方法。我想找到一种方法,就像我的参考书目一样,跳回到本节。当我引用我的参考书目条目时,我可以跳到给定的参考文献,并通过单击参考文献旁边创建的页码跳回到原始页面或部分。引用表格或图形时,乳胶中是否可以跳回到原始页面?请参见下面的代码。我可以轻松地跳回参考书目(参考),但在引用表格时却无法跳回原始页面。在下面查看使用以下代码创建的pdf: https://login.filesanywhere.com/fs/v.aspx?v=8c69678b58616fb6a4ad

我的书目被保存为bib.bib文件,其中包含以下条目:

@article{ahu61,
   author={Arrow, Kenneth J. and Leonid Hurwicz and Hirofumi Uzawa},
   title={Constraint qualifications in maximization problems},
   journal={Naval Research Logistics Quarterly},
   volume={8},
   year=1961,
   pages={175-191}
}

    @book{ab94,
       author* = {Charalambos D. Aliprantis and Kim C. Border},
       year = {1994},
       title = {Infinite Dimensional Analysis},
       publisher = {Springer},
       address = {Berlin}
       }

这是创建pdf文件的代码(单击上面的链接查看)

\documentclass[12pt]{article}
\usepackage[top=1.3cm, bottom=1.0cm, left=2cm, right=2cm,footskip=.5cm] 
{geometry}
\usepackage{cite}
\usepackage{color}
\usepackage[backref,colorlinks=true,breaklinks=true,linkcolor=blue,citecolor=blue]{hyperref} 
\usepackage[all]{hypcap}       
\renewcommand*{\backref}[1]{[#1]}

\title{Table test}
\begin{document}
\maketitle
\begin{document}
\maketitle
\hypertarget{tc}
\tableofcontents

\section{Introduction}
The Valley~\cite{ab94} Project and the State Water Project collect Delta Smelt at fish facilities ~\cite{ahu61} co-located with water export pumps.  Salvage daily totals were kept separated on two tables \autoref{tab:tab1} on page \pageref{tab:tab1}.\par

\newpage
\begin{table}{h}
\centering
\caption{}
\label{tab:tab1}
\begin{tabular}{ p{4cm} p{4cm} p{4cm} }
\hline \\ [-1.5ex]
colname & colname & colname \\ [1ex]
\hline \\ [-1.5ex]
Info & info & info \\ [1ex]
Info & info & info \\ [1ex]
Info & info & info \\ [1ex]
\hline
\end{tabular}
\end{table}
\addcontentsline{toc}{section}{   References}

\clearpage
\bibliography{bib}{}
\bibliographystyle{apalike}

\end{document}

0 个答案:

没有答案