Tag Info

New answers tagged

2

You can use eps files together with pdflatex. In a modern texsystem you only need to load \usepackage{epstopdf}. Or convert your eps to pdf before the compilation. Beside this: your example doesn't work with pdflatex either as your \addcontentsline commands have no sensible anchor. Use \phantomsection: \documentclass{book} \usepackage[utf8]{inputenc} ...


0

This is my answer... just include \usepackage{xcolor}


0

I found this for my old problem (like yours). It can be for all: \cite and \ref (table, figure, citation) So, put this in your preamble: \usepackage{hyperref} \usepackage{xcolor} \hypersetup{ colorlinks = true, %Colours links instead of ugly boxes urlcolor = red, %Colour for external hyperlinks linkcolor = blue, %Colour of internal links ...


2

Here's the solution that worked for me (based on Heiko's and michal's replies). \documentclass{article} \usepackage{lipsum} \usepackage[xindy]{imakeidx} \usepackage[hyperindex=false]{hyperref} \def\xindyopt{-M indexstyle} \makeindex[options=\xindyopt] \begin{filecontents*}{indexstyle.xdy} (require "page-ranges.xdy") (define-location-class ...


2

Manual additions to a Toc (or LoF/LoT etc) via \addcontentsline often require a \phantomsection statement for correct linking, as well as for the bookmarks. A more elaborate way would apply the \phantomsection command in \silentsection... \documentclass[oneside]{scrbook} \usepackage{hyperref,scrpage2} \newcommand*\silentsection[1]{% ...


4

You have to redefine the command \pagedeclaration defined by \nomencl. Please note that the original definition of \pagedeclaration depends on your selected language. \documentclass{article} \usepackage[refpage]{nomencl} \usepackage[pageanchor]{hyperref} \def\pagedeclaration#1{, \hyperlink{page.#1}{page\nobreakspace#1}} \makenomenclature \begin{document} ...


1

If you upgrade to the latest version of glossaries (v4.09 at time of writing), you can hook into the mechanism that sets the default value of the hyper key when using an entry. Here's a simple example that just disables the hyperlink for a specific entry (ut): \documentclass{article} \usepackage[colorlinks]{hyperref} \usepackage{glossaries} ...


1

I wanted to let you know about my final solution. As it uses another approach than before, I didn't edit the question. Now I'm using the package marginnote which makes one able to define the equivalent to \marginpar inside of floats etc. In my opinion this one looks also better than having the link in the caption. \documentclass{article} ...


3

use always the optional argument when attaching a file: \PassOptionsToPackage{colorlinks}{hyperref} \documentclass{article} \usepackage{caption} \usepackage{attachfile2} \begin{document} \listoffigures \begin{figure} \caption[Custom Name\textattachfile{Namenlos-1.pdf}{Link}]{Some Figure} \end{figure} \begin{figure} \caption[Another ...


0

As far as I can read in the documentaton of packages attachfile and attachfile2, they work only when the typesetting engine is pdftex; XeLaTeX does not use that typesetting engine and does not natively produce pdf files; it rather produces and extended 9to UNICODE) version of a DVI file, and when you run it it automatically calls an extended version of the ...


2

The default colour for (internal) links are red, provided by the key linkcolor. To keep links active but with a black colour, use \usepackage{hyperref}% http://ctan.org/pkg/hyperref \hypersetup{% colorlinks = true, linkcolor = black } For more on link colours, see section 3.5 Extension options of the hyperref HTML documentation.


3

Since you mentioned equations, here's a MWE containing some: \documentclass{report} \usepackage[colorlinks]{hyperref} \begin{document} \tableofcontents \chapter{A Sample Chapter \ensuremath{\sin a+\cos b=c}} \chapter{Another Sample Chapter $\sin a + \cos b = c$} \end{document} This produces a load of warnings such as: Package hyperref Warning: ...


1

Or another approach would be \label{sec:whatevername} and then \hyperref[sec:whatevername]{custom text here}


1

As mentioned in the comments, with all the link colouring commented out, you get the correct result. Thus, locally use the hidelinks option when the \tableofcontents is evoked (inspired by this). I.e. write: { \hypersetup{hidelinks} \tableofcontents% } The complete code then should be: \documentclass{book} \usepackage{tikz} \usepackage{titletoc} ...


5

I think there are four separate aspects to your posting. Three of the four objectives you've stated may be achieved by choosing the appropriate options when loading cleveref. To produce full rather than abbreviated names of cross-referenced items, you could load the cleveref package with the option noabbrev: \usepackage[noabbrev]{cleveref} See also ...


3

You can define those terms by yourself: \crefname{equation}{equation}{equations} \Crefname{equation}{Equation}{Equations} \crefname{table}{table}{tables} \Crefname{table}{Table}{Tables} \crefname{figure}{figure}{figures} \Crefname{figure}{Figure}{Figures} To get Table 1 etc, you have to use \Cref instead of \cref. ...


1

After numerous months of battling with this and trying all manners of suggested solutions, I finally found a method that works for me. My thesis class uses "report" (as opposed to "book" or "article") and my frontmatter has no page numbers. There are 8 pages of frontmatter (this was important for diagnosing). My table of contents and list of figures have ...


1

Using MiKTeX/TeXlipse on Windows 8.1 and @Christian Hupfer's code I've also seen no checked checkboxes on Chrome's PDF viewer. But with Adobe's Reader XI I get two checked checkboxes. It seems to me that the first 2 checkboxes should be checked as Adobe Reader 11 shows, or am I missing something? The 3rd checkbox has no checked attribute and can only be ...


4

The package jobapp expects to run pdflatex but your main file expects xelatex Comment these three lines in jobapp.sty out: %\usepackage{tgpagella} % TG Pagella font %\usepackage{textcomp} % Needed for pagella font bullet points %\usepackage[T1]{fontenc} and use \renewcommand\emailhref{\faEnvelope{}~\href{mailto:\Email}{\Email}} \SetName{First Last} ...


1

This problem seems to come from the pdf reader that is used. Therefore my idea is to add something invisible that breaks up the url for the program but not for the person reading it. Something like \url{www.google}\rlap{~}{.com} does not work, though, because the space ~ is ignored. An ugly workaround that works for me (with Sumatra PDF) is: ...


7

It's your PDF viewer's fault: Mac OS X Preview (at least v7.0) recognises URLs and makes them clickable, whether they be typeset with a special package (hyperref, url) or not. To convince yourself, try compiling the following example and open the output in Preview; the URL will be clickable. So there's really nothing you can do about it on the author's ...


0

I'm working with the code below that was posted to deal with multiple included pdfs. However my issue is that I'm dealing with some more complicated formatting for my document to: 1) move page numbers to the bottom right of the includedpdf documents, 2) include section headings at the top of the first page of some included pdfs (not all). So, this is a MWE ...


2

I like Heiko Oberdiek's solution. The question remains what one can do if one wants to add Unicode characters that don't have predefined commands like \int and \sum. One option is to \usepackage[utf8]{inputenc} and \hypersetup{pdfencoding=unicode} (if it is not already set as an option to hyperref), and to include literal UTF-8 encoded characters in the ...


4

The pageslts package puts a last page label for each numbering scheme, provided you use a pagenumbering{…} at the beginning of the document, and at every scheme change. So, for your cover page, you can use any scheme not used beforehand, setting \pagestyle{empty} immediately after: \documentclass{article} \usepackage{pageslts,refcount} \usepackage{lipsum} ...


4

Use refcount to manipulate (page) reference: \documentclass{article} \usepackage{lastpage,refcount,atbegshi} \usepackage{hyperref} \usepackage{lipsum} \AtBeginShipout{% \ifnum\value{page}=\number\numexpr\getpagerefnumber{LastPage}-2\relax \phantomsection\label{preLastPage} \fi} \begin{document} Last page: \pageref{LastPage} \par Second to last ...


1

To turn my comment(s) into an answer: As mentioned this answer provides the basic idea to solve your problem. If you also want to be journal clickable, use FUNCTION {article} and add the new defined doilink function in the corresponding line: journal emphasize doilink "journal" output.check


0

I tried this and the links were working in Preview but they weren't on Adobe Acrobat Pro. I removed the baseurl= http:// option under hypersetup onn the moderncv.cls file and it worked. I'm not sure why but it did. I don't know if its going to be the same with Okular but its worth a try.


1

On the moderncv.cls file I removed the baseurl= http:// option under hypersetup and it worked. I'm not sure why but it did.


0

On the moderncv.cls file I removed the baseurl= http:// option under hypersetup and it worked. I'm not sure why but it did.


1

I managed to create what you want by redefining the urlcolor in the document. Start with defining it black, and after the personal section change it to NavyBlue. The following code returns a warning because the urlcolor macro is changed. \documentclass[11pt,a4paper,dvipsnames]{moderncv} \moderncvtheme[blue]{classic} \usepackage[scale=0.8]{geometry} ...


1

A solution could be to group an additional \hypersetup command just for the mail address: \begingroup% \hypersetup{urlcolor=black}% \cvitem{Email}{\emaillink{test@gmail.com}}% \endgroup% This prevents another setup of hyperref later on. \documentclass[11pt,a4paper,dvipsnames]{moderncv} \moderncvtheme[blue]{classic} \usepackage[scale=0.8]{geometry} ...


0

I've found an other solution using the package tocloft : \chapter*{Introduction} \phantomsection \addtocontents{toc}{\cftpagenumbersoff{chapter}} \addcontentsline{toc}{chapter}{Introduction} \addtocontents{toc}{\cftpagenumberson{chapter}}


1

hyperref redefined \contentsline to take four arguments instead of the usual three. Additionally, since you're working with ToC-related stuff (which are written to file), you need to be careful about expansion. Use it in the following way: \documentclass{report} \usepackage{hyperref} \begin{document} \tableofcontents \chapter*{Introduction} ...


0

My idea is: to patch the xr-hyper package so that it records all labels that it read from external documents; this allows us to distinguish between internal references that should be automatically hyperlinked and external references that should not. to redefine the unstarred version of hyperref's \ref to check whether the reference is external or not, and ...


2

Thanks for posting an example with compilable code. As @UlrikeFischer has pointed out in an earlier comment, if the hyperref package is loaded, you should use \ref* instead of \ref to create a cross-reference that's not also a hypertarget. Please note that this applies regardless of whether the cross-reference's target is located in the same document or in ...


3

[Converting AlexG's comment to an answer] If you are under OS X and don't mind using Adobe Reader, try the media9 package. Videos can be played in an embedded fashion, or in a detached player window.


3

Package ulem has restrictions, what can be used inside the argument. Thus \hypertarget cannot be used directly. It can be protected via \mbox: \sout{\mbox{\hypertarget{...}{...}} Or a better solution, would be to switch \sout with \hypertarget: \hypertarget{label}{\sout{text}} Complete example: \documentclass{article} \usepackage[normalem]{ulem} ...


0

Don't do it. Depending on how your table floats the footnote counter get out of sync and the footnote text can end on other pages: \documentclass[12pt,a4paper,twoside,openany,fleqn]{book} \usepackage{lipsum} \usepackage{footnote} %\usepackage{hyperref} \makesavenoteenv{table} \begin{document} \chapter{First Chapter} \lipsum[1-6]abc\\cde\footnote{blub} ...


3

The size of links is dependent on the size of other things in the same line (roughly) as the link, and so since your inline math causes the line height to be larger (which it does) then the box will be larger. For a more detailed discussion of the problem, see the following question: Constant height and depth of hyperref link boxes As a workaround, you ...


1

It seems \hypertarget aims for the baseline, so I had to move the areas below the baseline. \documentclass[11pt, a4paper, oneside]{article} \usepackage{graphicx} \usepackage{hyperref} \usepackage{mwe} \newsavebox{\tempbox} \newlength{\tempheight} \newlength{\tempwidth} \newcommand{\area}{\rule[-0.49\tempheight]{0.49\tempwidth}{0.49\tempheight}} % ...



Top 50 recent answers are included