## LaTeX forum ⇒ General ⇒ HYPERREF HELP pls

LaTeX specific issues not fitting into one of the other forums of this category.
Drake
Posts: 6
Joined: Sun Mar 30, 2008 2:31 pm

### HYPERREF HELP pls

Hi.
IÂ´m begining with LaTeX and I have a problem.
I need use hyperref inside tabular. I have big tabular rotate 90 degree (\begin{sidewaystable}[!ht]...) and in some cells I need write hyperref (citation) on literature(bibliography)
I try:

PoznÃ¡mka -- zdroj informacÃ­ & \begin{minipage}{3cm}{\centering{\cite{MRR}, \cite{MV300a}, \cite{MV300b}}} \end{minipage} & ................

and that same with \parbox
And when I compile file and look in to pdf then hyperref do not work.
Can anyone help me, how I can solve it?
Thanks all.
Sorry, for my english

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am
Why do you need a minipage inside the table? What is the argument of the tabular environment? You should try to build and provide a minimal working example. Anyway, the following code works:
\documentclass{article}\usepackage{rotating}\usepackage{hyperref} \begin{document} \begin{sidewaystable}   \centering   \begin{tabular}{|c|c|}      \hline      \cite{Knuth} & \cite{Lamport} \\      \hline      \cite[p.~100]{Knuth} &  \cite{Knuth,Lamport} \\      \hline    \end{tabular}    \caption{Text text}\end{sidewaystable} \begin{thebibliography}{9}  \bibitem{Knuth} D. Knuth, \emph{The \TeX{}book}.  \bibitem{Lamport} L. Lamport, \emph{\LaTeX: A document preparation system}.\end{thebibliography} \end{document}

By the way, the \centering command has no arguments. So, in an expression like \centering{text}, the braces are superfluous. Likewise, you may join the three citations \cite{MRR}, \cite{MV300a}, \cite{MV300b} in a single \cite command: \cite{MRR,MV300a,MV300b}

Drake
Posts: 6
Joined: Sun Mar 30, 2008 2:31 pm
But I think that my table is the same like yours example that you wrote me. If you can please look at my table how i wrote it.
HereÂ´s the code:
\begin{sidewaystable}[!ht]	\centering	\caption{ShrnutÃ­ parametrÅ¯ vÃ½Å¡e uvedenÃ½ch armÃ¡dnÃ­ch systÃ©mÅ¯.}	\label{Tab6}	  \def\arraystretch{1.3}	  \begin{tabular}{|c||c|c|c|c|c|}	  \hline           \hlineVÃ½robce	& KONGSBERG &	KONGSBERG & ITT & THALES & Q--MAC	\\	  \hlineFrekvenÄnÃ­ rozsah & 30 $Ã·$ 87,975\,MHz	& 610 $Ã·$ 960\,MHz & 30 $Ã·$ 87,975\,MHz	& 30 $Ã·$ 88\,MHz & 2 $Ã·$ 30\,MHz\\	  \hlineÅ Ã­Å™ka pÃ¡sma (c)	& 57,975\,MHz &	350\,MHz & 57,975\,MHz & 58\,MHz & 28\,MHz \\	  \hlineÅ Ã­Å™ka pÃ¡sma & 45\,kHz &	-- &	-- & -- & 256\,kHz \\	  \hlineOdstup kanÃ¡lÅ¯ & 25\,kHz & 125\,kHz & 25\,kHz &	25\,kHz & -- \\	  \hline........................           \hlinePoznÃ¡mka -- zdroj informacÃ­ & {\parbox{3cm}{\centering{\cite{MRR}, \cite{MV300a}, \cite{MV300b}}}} & \cite{EriTac}, \cite{EritacK}, \cite{RL424A}&	\cite{SINCGARS}, \cite{SINCGARSITT} & \cite{PantherEDR}, \cite{PantherEDRa} & \cite{HF90}, \cite{HF90trans}, \cite{RadioFrek}\\	  \hline\end{tabular}\end{sidewaystable}

And the cite: I need to every citation in single bracket like [22], [23] ... that means itÂ´s ok.
The problem is the every hyperref "box" is on end of page like this picture (attachement).
I donÂ´t know where is problem because I have another smaller table when I use hyperref on figure like \ref{Figure3} and there is no problem. Only problem is hyperref on citation of literature in table
Attachments
Picture_of_page1.jpg (115.72 KiB) Viewed 4721 times

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am
If I correctly understand the problem, hyperref does not establish a link between the cites to [13], [14], [15] and [16] (those you framed in green) and the corresponding entries in the bibliography. All the remaining cites in the bottom of the table are well linked to the bibliography. Am I right? Is really that the question?

At first sight, I cannot see any problem in the table. After playing with commands similar to yours (\parbox, \arraystretch...), I am unable to reproduce the error. So, until you provide a complete example, I cannot give futher help. Please, attach or copy something similar to the example in my previous post, as short as possible, which I can try to compile.

Drake
Posts: 6
Joined: Sun Mar 30, 2008 2:31 pm
Oki
I try wrote example what I mean. I hope that is easy for example.
Maybe you should rewrite the preamble because I use \usepackage[cp1250]{inputenc}, \usepackage{czech} (for my language).
This code have 0 errors, 0 warnings and 0 bad boxes. If you compile this code in LaTeX and view it in (GhostScript or Acrobat like pdf) you can see two pages.
On the first page is tabular where I used citation and it works fine (green box and when you click on it then hyperref goto on "link" citation.
On the second page you can see exactly the same tabular like on page 1 but the table what I need is too big on width paper and than I must use "sidewaystable" (sidewaystable produce rotation and new page) --> the table is rotate 90degree. If you see there is the same citation but without "green box" around the [1]!!!And that is the problem what I have. The "green box" for this citation is on the right margin of paper. You see it?
Really sorry for my english I hope you can read it well and understand well too.

\documentclass[a4paper,12pt,dvipdfm]{article}%\usepackage[cp1250]{inputenc}\usepackage{czech}\usepackage{rotating}\usepackage{hyperref}%\begin{document}%\begin{table}[!ht]				\centering				\caption{Tabular1}				\label{Tabular1}				\def\arraystretch{1.3}					\begin{tabular}{|c||c|c|}					\hline					Example & Example & Example\\					\hline					Citation & \cite{Hanus}	&	--\\						\end{tabular}			\end{table}%	\begin{sidewaystable}[!ht]		\centering		\caption{Tabular2}		\label{Tabular2}			\def\arraystretch{1.3}			\begin{tabular}{|c||c|c|}			\hline			Example & Example & Example\\			\hline			Citation & \cite{Hanus}	&	--\\			\end{tabular}	\end{sidewaystable}%\begin{thebibliography}{9}\bibitem{Hanus}		Hanus, Stanislav.		\emph{Wireless and Mobile Communication}		Brno : Vysoke uceni technicke, 2001 -- 134 s. : ISBN: 80-214-1833-8.%\end{thebibliography}	\end{document}

Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am
I think the problem is related with the driver you impose to use for generating the pdf file, that is, dvipdfm. Perhaps it does not work well with sidewaystable. I've removed dvipdfm from \documentclass. Then, after compiling with pdfLaTeX, everything goes fine. Try it.

I also suggest to replace \usepackage{czech} by \usepackage[czech]{babel}, which is the modern way to deal with languages.

Really sorry for my english I hope you can read it well and understand well too.

My english is not as good as I'd like too.

Drake
Posts: 6
Joined: Sun Mar 30, 2008 2:31 pm
Thanks, your solution is very simple and good.
When I removed dvipdfm then everything is ok and works good.

IÂ´m using a school template for project and there is defined only dvipdfm, dvips, pdftex. Usually I used dvipdfm and now I should try another way how compile project because another program and defined profile doesnÂ´t know our special quotes ("" ) and generated some errors and warnings, but this can be repair easily I think (probably).

Thank you very much for your help and have a nice day