Problem no 1 :

I want to try making a text hyperlink . If I click this link , this will redirect to a picture within the pdf of latex .

My endeavors :

I have tried the following code :

      \caption{General view of MCC}
    Figure \ref{fig:boat1} shows a boat.

Now I want to click in the text "fig:boat1" and want to go in the image named general_view_of_mcc.png .

Problem no 2 :

I want to try making a text hyperlink . If I click this link , this will redirect to a item of bibliography within the pdf of latex .

How can I solve this two problems ? I have searched a lot in the internet but could not find any helpful link . Please help me in this matter .

  • 3
    It will be easier and more joyful to help you if you provide some minimal (non)working example of code, with what you have tried so far.
    – mickep
    Sep 4 '17 at 7:29
  • 1
    1: You need the hyperref package ... label your figures with \label{name} -> and use \ref{label} in the text 2: biblatex will help see Minimal working example with Bibliography((for BibLaTeX)))?
    – Bobyandbob
    Sep 4 '17 at 7:34
  • My question is updated . Hope this will let you understand about my endavors . Sep 4 '17 at 7:36
  • 2
    Minimal example means: It starts with \documentclass{... and ends with \end{document}.
    – AlexG
    Sep 4 '17 at 7:37
  • 1
    You can use example-image instead of general_view_of_mcc.png. In this way everyone can compile and test the code without having the picture.
    – campa
    Sep 4 '17 at 7:38

I think your example is working, but with the link not coloured and very close to the image, it's very hard to see the effect of hyperref. Try this.

    pdfborder={0 0 0},

%      \includegraphics[width=\linewidth]{general_view_of_mcc.png}                                                      
      \caption{General view of MCC}
    Figure \ref{fig:boat1} shows a boat.

The number 1 on the second page should be red, and clicking it should take you back to the first page.

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.