Is it possible to calculate the height of a tabular cell to be reused as a value for vertical offset of the bounding box, similarly to how Hy@raisedlink takes you one line above of where the actual hypertarget is declared?


% User-defined colors

% Cross-references
        pdfstartview={XYZ null null 1.00}
\makeatother % Fancier cross-referencing to text


\subsection{I can see the sun}

\subsubsection{Many large aircraft}

\marginnote{\linebreak\linebreak\linebreak\hyperlink{hist}{Appendix \texttt{hist()} $\rightarrow$}}[-.5cm]





\noindent Fooba\textcolor{blue}{\textbf{R}}.

\noindent \begin{tabular}[h]{l l l c c} 
\textcolor{blue}{\textbf{R}} code & Syntax & xatnyS & Vecto\textbf{\textcolor{blue}{R}} & xxxxxxxxxxx\\
\texttt{hist()} & \pbox{20cm}{\vspace*{1.5ex} \texttt{\textcolor{blue}{hist(}\textcolor{cyan}{<z>},} \\ \vspace{1.25ex} \\  \texttt{\textcolor{dgreen}{breaks=}\textcolor{red}{<y>},} \\ \\ \vspace{3.5ex} \\ \texttt{\textcolor{violet}{freq=}\textcolor{purple}{<x>}\textcolor{blue}{)}} \\ \\} & \pbox{3.5cm}{Positronic tales \\ \hypertarget{appendix.rcommand.breaks}{}\vspace{0ex} \\ My reckoning \\ \\ \texttt{\textcolor{purple}{TRUE}}: truly a wondrous appearance \texttt{\textcolor{purple}{FALSE}}: connect to your inner self\target{hist}} & & $\leftarrow$ \\


  • Wouldn't it be easier just to make the entire tabular the target? – John Kormylo May 5 '14 at 3:38
  • Not if there are several different targets to different cell-heights. – 1010011010 May 5 '14 at 18:12
  • \target{hist} is set after "inner self", at the right side of the text. Depending on the view settings, the PDF viewer will jump to the location of the target and you will just see the empty space at the right side.

  • pdfTeX supports the additional keyword pre for \vadjust. This helps to put a target just above the current box at the left side of the surrounding vertical box. Then \target could be implemented the following way:

      \vadjust pre{\hypertarget{#1}{}}%

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.