Tag Info

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}% ...


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.


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


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


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


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}


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


The way to go is the hyperref package.


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


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{mailto:asdfkoafdkfaldfkafsdfkdf@kdsoffkdlfasdfjaldf.xxx} {asdfkoafdkfaldfkafsdfkdf@kdsoffkdlfasdfjaldf.xxx}}. If you are ...


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


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}{www.google.com} \end{document}


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.


linktoc=all, as described in the hyperref README.


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}


Try this: \documentclass{article} \usepackage{hyperref} \begin{document} \href{mailto:e.xmaple@example.com}{\nolinkurl{e.xmaple@example.com}} \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 ...


\href takes two arguments, \href[options]{URL}{text} where the first is a full URL and the second the link text, and formats the text as normal text (see http://www.tug.org/applications/hyperref/manual.html#x1-130004 for details). So you can fix your problem by adding a full URL in the first argument and adding a second argument, i.e. ...


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, ...


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


I think this can be done with pgfmath, assuming that you have exactly one tikzpicture in your LaTeX file, and nothing else. Note that if the document uses the document class standalone, then there are some ways for determining the size of the output bitmap (e.g., GIF or PNG) in advance. See http://www.colatex.net/scrap/imagemap/map.html for a live view of ...


The two links are created by the command \hyper@natlinkbreak, which is defined by hyperref.sty. To remove the break you can revert back to the provisional definition from natbib.sty by inserting the following lines into your preamble: \makeatletter \renewcommand\hyper@natlinkbreak[2]{#1} \makeatother The results with this simple fix aren't great; links ...


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, ...

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