3

How can I make clickable words colored?

For example, if you could look here in the abstract on page-v, http://mural.maynoothuniversity.ie/4213/1/KumarShravan_PhDThesis2012.pdf

And, what color has he used? Is that blue? I would like to make an abstract with a similar style.

6

This can be done using the hyperref package. The default links are red boxes but this can be changed. In your preamble put

\usepackage{hyperref}
\hypersetup{colorlinks=true, linkcolor=blue}

You can also use any other colour that LaTeX knows or use a package like xcolor to use any RGB colour. Note that hyperref should almost always be the last package that you include except for specific pacakges which should go after it.

Then, say you want to link to a section, where you define that section include a \label:

\section{Test Section}\label{sec:test section}

And later in the document when you want a link put

\ref{sec:test section}

and it will automatically be a link. hyperref also has facilities for urls and other links. Check out the package documentation for more details.

4
  • Thanksssssssssssssssssssssssssssssssssss so muchhhhhhhhhhhhh – riemann Mar 6 at 23:02
  • No problem, glad I could help! – Willoughby Mar 7 at 13:00
  • Hello, Could you please tell me what is the color at page vii? d2k0ddhflgrk1i.cloudfront.net/Websections/… – riemann Mar 15 at 1:27
  • Hex: 00B9F2, RGB 0, 186, 242, using color or xcolor packages you can define this colour as \define{myBlue}{RGB}{0, 186, 242} and then use myBlue in place of blue above. To find this colour I simply screen shotted the document and used a colour selector in MS Paint to find the hex value and then googled hex to RGB, although you can just use the hex (xcolor only) with \definecolor{HTML}{myBlue}{00B9F2} – Willoughby Mar 15 at 10:40
4

enter image description here

The blue color you are looking for is something similar to RGB 23,111,193 (retrieved with the Eyedropper tool of WPS Writer). Here is a minimal working examples:

\documentclass{article}
\usepackage{xcolor}
  \definecolor{myblue}{RGB}{23,111,193}
\usepackage{acronym}
  \renewcommand*{\acsfont}[1]{\textcolor{myblue}{#1}}
\usepackage{hyperref}
  \hypersetup{
     colorlinks=true,
     linkcolor=myblue,
     urlcolor=myblue,
     %citecolor=myblue,
   }
  
\acrodef{CTAN}{Comprehensive \TeX\ Archive Network}

\begin{document}

This is an acronym: \acs{CTAN}

See \autoref{sec:title}

See \url{http:\\www.ctan.org}

\section{The first section} \label{sec:title}
 
\end{document}
4

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.