GeneralHYPERREF HELP pls

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

HYPERREF HELP pls

Post by Drake »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

HYPERREF HELP pls

Post by Juanjo »

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:

Code: Select all

Code, edit and compile here:
\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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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

HYPERREF HELP pls

Post by Drake »

Hi, thanks a lot for your answer :-)
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:

Code: Select all

Code, edit and compile here:
\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
\hline
Výrobce & KONGSBERG & KONGSBERG & ITT & THALES & Q--MAC \\
\hline
FrekvenÄ·· 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 \\
\hline
Odstup kanálů & 25\,kHz & 125\,kHz & 25\,kHz & 25\,kHz & -- \\
\hline
........
........
........
\hline
Pozná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}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
Picture_of_page1.jpg (115.72 KiB) Viewed 6792 times
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: HYPERREF HELP pls

Post by Juanjo »

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

HYPERREF HELP pls

Post by Drake »

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. :-)

Code: Select all

Code, edit and compile here:
\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.
%
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

HYPERREF HELP pls

Post by Juanjo »

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

Re: HYPERREF HELP pls

Post by Drake »

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 ;)
Post Reply