Tag Info

Hot answers tagged

8

hyperref supports \numberwithin, but only if it awares of it. Therefore, \numberwithin should be used after package hyperref. Further remarks: Option allcolors simplifies the setting of the colors to one color with option colorlinks. Package hyperref detects driver pdftex automatically, it does not need to be set explicitly. KOMAScript option ...


5

pdftex is warning you in the log that the destination anchors are not unique l.43 \caption{Tab two} pdfTeX warning (ext4): destination with the same identifier (name{table.1}) has been already used, duplicate ignored <to be read again> As Heiko wrote in this case the easiest is to move the \numberwithin ...


4

As Egreg mentions, you can use cleverref, if you do not want to you can use something similar to this.We use the fact that \ref* (aka non-link ref) in hyperref is the macro \@refstar. Thus inside the new \eqref we make the link via \hyperref[target]{text} and make sure that text itself, does not contain any hyperrefs (as nested hyperlinks does not really ...


4

As mentioned by egreg, it's easy using cleveref (which must be loaded after hyperref). Simply define \crefformat{equation}{#2equation~#1#3} \Crefformat{equation}{#2Equation~#1#3} The arguments #2 and #3 are used to mark the beginning and end of the part of the cross-reference that forms the hyperlink when the hyperref package is used. Then simply use ...


3

beamer already loads hyperref internally, so you attempt produces a clash. You can pass the options to the class using the hyperref key (there are also pgf, color and xcolor keys to pass options to the corresponding packages): \documentclass[ xcolor={svgnames}, hyperref={colorlinks,citecolor=DeepPink4,linkcolor=DarkRed,urlcolor=DarkBlue} ]{beamer} ...


3

The class does \AtBeginDocument{\@ifpackageloaded{hyperref} {\def\@linkcolor{blue} \def\@anchorcolor{blue} \def\@citecolor{blue} \def\@filecolor{blue} \def\@urlcolor{blue} \def\@menucolor{blue} \def\@pagecolor{blue} \begingroup \@makeother\`% \@makeother\=% \edef\x{% \edef\noexpand\x{% \endgroup \noexpand\toks@{% ...


3

I cannot explain the error. Do not give me the bounty. (see next section) Assuming your MWE, \scalebox works. Let me know if you intend to achieve something more complicated. By the way, whatever your goal is, the logic is that external is superior to \IfFileExists. \documentclass{article} \usepackage[usenames,dvipsnames]{xcolor} ...


3

The problem is not directly related to hyperref; the root cause is that you are trying to skip the picture while it is being generated. This results in a 0-size pdf, and that is deleted right-away by pdftex. This is what happens: the main program is typeset, and this is where your "if image exists" logic should apply. It does not since the graphics does ...


2

Once you load the xcolor package, you have access to all the color specifications this package allows; in particular, you can use the hundredths of predefined colors it provides, to the ! modifier for mixing colors, to the - for complements, etc.; using \definecolor{<name>}{<model>}{<specification>} you can build your own colors in the ...


2

This is a classic '\edef (or similar) applied to fragile user input' issue: there's an \xdef in \svn@pushfilestack which fails if you have an 'unsafe' token inside any of the parts it's trying to apply that to. As with any LaTeX2e user input, the correct approach is to use the LaTeX kernel \protected@... equivalent \documentclass[a4paper]{memoir} ...


1

If you look at the aux file you will see that \@input{chap2.aux} occurs before \@writefile{toc}{\contentsline {part}{\numberline {II}TOC Part}{7}{part.2}} and there is nothing one can do about it. I even tried modifying \@docinclude to not use \immediate\write\@mainaux{\string\@input{#1.aux}}. Anyway, the main key is to use \input instead of \include. The ...



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