Hot answers tagged


With \usepackage[hidelinks]{hyperref} you get active links in \textcolor (usually black) without a box around them.


I use something like \usepackage{xcolor} \hypersetup{ colorlinks, linkcolor={red!50!black}, citecolor={blue!50!black}, urlcolor={blue!80!black} } This gets rid of the ugly color boxes, but uses dark colored fonts which still make it clear that they are clickable.


\hypersetup{ colorlinks=false, pdfborder={0 0 0}, } Edit: Fortunately, this is no longer needed. Since 2011-02-05 (hyperref version 6.82a), you can use the hidelinks option to achieve the same result; see this answer.


Well, I see there are a lot of answers already, and they work, however I thought I'd give more detail: As above, you can use \usepackage[hidelinks=true]{hyperref} or \hypersetup{hidelinks=true} However, if your problem is with the ugly green boarder there are very nice ways to remove that, without making it unclear what is a hyperlink. I like \...


The \phantomsection command is nessesary for hyperref to jump to the correct page, in other words it puts a hyper marker on the page. For example a starred section or chapter added to the TOC would normally refer to the wrong place without \phantomsection \chapter*{Extended Summary} \phantomsection \addcontentsline{toc}{chapter}{Extended Summary}% \markboth{...


The hyperref package does all of these things. you may need to include it with options like backlinksbackref to get back references, but it does everything you need.


I am providing a different answer to this question because the original answer is out of date. The \phantomsection command is needed to create a link to a place in the document that is not a figure, equation, table, section, subsection, chapter, etc. This is mostly used in conjunction with \addcontentsline or with \label and \hyperref. For example, the ...


You should use the hyperref package (which uses url internally but improves on it). It will not only format the link but also place a real hyperlink into the PDF. With url alone the link is only normal text, but is probably recognized as hyperlink by your PDF viewer, but with the wrong code for ~. LaTeX tends to substitute the code of these special ...


You can load the package caption. The default setting is hypcap=true. If you don't load the package caption, you can load the package hypcap. It is important that the package is loaded after hyperref. You can load hypcap with the option all. In this case hypcap has an influence on all float environments. You can limit it to figures by setting the option ...


Here's a new TikZ style called hyperlink node=<target> that takes a hypertarget reference. It works by measuring the node it is supplied to, and then placing a new invisible node on top of that. The new node has the content \hyperlink{<target>}{\phantom{\rule{<width of node>}{<height of node>}}, so it has the same size as the original ...


There are two main purposes for using colored text in documents: style (make the document look more visually pleasing or adequate to its context) and readability (help the reader to understand its meaning). For hyperlink colors, one also has to distinguish between digital and printed documents: the special meaning only makes sense in digital. Regarding ...


Just use \href from hyperref: \href{tel:15555555555}{+1 555 555 5555}


The hyperref options can be configured using the \hypersetup command and colors are enabled by colorlinks=true. A MWE is below. citecolor is set to gray. For the table of contents link colors, linkcolor is set to green before the \tableofcontents command. Similarly for the list of figures, linkcolor is set to red before the \listoffigures command. Later ...


The way to go is the hyperref package.


You have the two parameters backwards. The correct syntax is: \href{<url>}{<text to display>}. The first parameter is the url to link to, the second is the text to display. Also it should be noted that you need to ensure that your PDF viewer is capable of opening a link in a browser. Code: \documentclass[11pt,twoside,a4paper]{book} \...


linktoc=all, as described in the hyperref README.


Don't miss out on the \hypersetup{linktocpage} option to only link the page numbers and not the entire table of contents; when links are being coloured the default behaviour can be a bit overwhelming. Moreover, if you need to use dviaps+ps2pdf driver then in the default setting, the hyperlinks of long headers (that occupy more than one line) are ...


I usually write something like this, so the entry is hyperlinked for onscreen reading but there's also a footnote to the URL for paper output. \documentclass{article} \usepackage{hyperref} \newcommand\fnurl[2]{% \href{#2}{#1}\footnote{\url{#2}}% } \begin{document} hello \fnurl{Google}{} \end{document}


With the option hypertexnames hyperref uses the corresponding counter in addition to the link type to construct the link name. Imagine, you have two chapters and one section in each chapter plus one table. The link names would be: With hypertexnames: chapter.1 section.1.1 table.1.1 chapter.2 section.2.1 Without hypertexnames: chapter.3 section.4 table.5 ...


That is because moderncv.cls sets pdfborder to 0 0 0 at the beginning of the document; here's the relevant code: \AtEndPreamble{ \@ifpackageloaded{CJK} {\RequirePackage[CJKbookmarks]{hyperref}} {\RequirePackage[pdftex]{hyperref}} \AtBeginDocument{ \hypersetup{ breaklinks, baseurl = http://, pdfborder = 0 0 0, ...


No. Placed there the command \sloppy has no effect: \documentclass{article} \usepackage{hyperref} \usepackage[width=7cm]{geometry} \begin{document} If you are interested to know the details, please contact me at {\sloppy \href{} {}}. If you are ...


You can not simply mix two PDF files. You have to preserve PDF document structure. In the simply case links (PDF annotations) are dropped. You can try the PAX project, which trys to extract and reinsert the PDF annotations.


Following the advice of Robin Williams, author of The Non-Designer's Design Book, A set of three colors equidistant from each other always creates a triad of pleasing colors. I have found that using colours equally distributed around the colour wheel works well. For the links in my example below, I use three colours that form a triad: yellow-orange, ...


Since hyperref version 2011/02/05 v6.82a, the option hidelinks has been available, which suppresses the highlighting of links.


Try this: \documentclass{article} \usepackage{hyperref} \begin{document} \href{}{\nolinkurl{}} \end{document}


You can try this: \documentclass{article} \usepackage[colorlinks=false, allbordercolors={0 0 0}, pdfborderstyle={/S/U/W 1}]{hyperref} \begin{document} \url{blub.blub.blub} \end{document}


user14996 wrote: (a) Is is possible to have certain hyperref-hyperlinks [...] point to the very left border of the page, not to the interior? and (b) If, in addition, one could make hyperlinks point not only to the left page border but also to the top left corner of the respective page, that would be a useful option. [...] First I agree with ...


You can use the starred command: \pageref*{pg:end} to suppress the link for any *ref command.

Only top voted, non community-wiki answers of a minimum length are eligible