Tag Info

New answers tagged

2

It seems that loading longtable after hyperref circumvents the problem. This has something to do with the scrbook class, though, as if I use book instead, the problem doesn't show up.


3

The first step is to replace \phantomsection with \refstepcounter{chapter} or \refstepcounter{section}. Then you will have actual chapter and section numbers to link to instead of chapter*.1 etc. \documentclass{book} \usepackage[utf8]{inputenc} \usepackage{tocloft} \usepackage{hyperref} \begin{document} \tableofcontents %======== USING REGULAR ENTRIES ...


2

\documentclass{book} \usepackage[utf8]{inputenc} \usepackage{tocloft} \usepackage{hyperref} \begin{document} \tableofcontents %======== USING REGULAR ENTRIES ======== \chapter{Chapter 1} % properly linked of course {\LARGE This is chapter 1} \section{Section 1-1} % well linked as well {\LARGE This is chapter 1 section 1} \clearpage %======== USING ...


1

The command \cref only wants a single argument, not two. \newcommand{\mref}[2][red]{% \hypersetup{linkcolor=#1}% \cref{#2}% \hypersetup{linkcolor=blue}% } This will solve the problem. \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[usenames,dvipsnames]{xcolor} ...


0

Use \usepackage[hyperfootnotes=false]{hyperref} to remove the clickable link from the superscript to the footnote citation at the bottom of the page. Use \AtEveryCitekey{\iffootnote{\clearfield{url}}{}} to remove the URL field from the footnote citation at the bottom of the page.


1

Evidently using \ttabbox put the target back where it belongs. \documentclass{article} \usepackage[style=Plaintop]{floatrow} %\usepackage{threeparttable} \usepackage[referable]{threeparttablex} \usepackage{caption} \usepackage[raiselinks=true]{hyperref} \begin{document} \listoftables \ref{Example} \begin{table}[t] \ttabbox% % Link DOES jump ...


2

It seems, you have the wrong category code of @. Then TeX will not see the token \@doctitle but the tokens \@, d, o, t, i, t, t, l, e. The first token \@ is filtered out (the command sets the space factor) and the string doctitle remains. In the class file, the category of @ is usually "letter", thus that @ can be used in command names. Maybe you have ...


1

You can remove the link by adding the following \AtEveryCitekey{\iffootnote{\clearfield{url}}{}}


1

I placed the redefinition of \contentsline after \begin{document} since hyperref puts what appears to be a redefinition in the aux file. But on closer examination it seems this code doesn't actually do anything. \documentclass{scrreprt} \usepackage{hyperref} \makeatletter \let\hyperchapter\chapter \def\chapter{\@ifstar\starchapter\mychapter} ...


6

Option pdfencoding=auto or unicode enables bookmarks in Unicode with more symbols. Option psdextra defines lots of math symbols, however it misses \varepsilon. Then \pdfstringdefDisableCommands can be used to define a bookmark replacement string for commands. Full example: \documentclass{article} \usepackage[pdfencoding=auto, psdextra]{hyperref} ...


1

moderncv stores its symbols in a bunch of makros that you can redefine: \renewcommand*{\addresssymbol}{} \renewcommand*{\mobilephonesymbol}{} \renewcommand*{\fixedphonesymbol}{} \renewcommand*{\faxphonesymbol}{} \renewcommand*{\emailsymbol}{} \renewcommand*{\homepagesymbol}{} \renewcommand*{\linkedinsocialsymbol}{} \renewcommand*{\twittersocialsymbol}{} ...


3

Just add these lines to your preamble (logodblp.png is the name of the logo graphic file): \usepackage{etoolbox} \pretocmd{\makecvtitle}{\leavevmode\vskip-40pt{\includegraphics[scale = 0.33]{logodblp}}\vskip20pt}{}{} If you want to add the dblp logo to the additional information item, say, just add these lines to the preamble: \usepackage{etoolbox} ...


2

Load cleveref: you'll have less typing and the spacing will be fine. Demo: \documentclass{report} \usepackage[utf8]{inputenc} \usepackage{mathtools} \usepackage{chngcntr} \counterwithin{equation}{chapter} \usepackage[colorlinks, linkcolor=blue]{hyperref} \usepackage{cleveref} \begin{document} \setcounter{chapter}{1} \begin{equation} \label{eq-1st} J ...


3

Move \hypersetup with pdfauthor and friends before \begin{document}. The title is overwritten by \title, but you can use \texorpdfstring there: \title{\texorpdfstring{Hypersetup (with PDFLaTeX) and Beamer}{% The Meaning of Everything}} Or option usepdftitle can be set to false, then beamer does not use the title of \title for the PDF title: ...


0

Oh, never mind. I found the answer browsing though revtex4-1.cls: \makeatletter \def\pdfstartlink@attr{} \makeatother In the preamble, after selecting the documentclass, helps.


0

Here is a very short solution that does not require any changes to the preamble, provided you are loading hyperref: \section*{Acknowledgements}% The * makes this section unnumbered. \addcontentsline{toc}{section}{Acknowledgements}% This command makes the unnumbered section also appear in the pdf bookmarks. Note: you do not need to call a table of ...


0

Not an answer this, more of a bug report but it doesn't fit in a comment, sorry... In my document, I used \setacronymstyle in the text multiple times, so I can change the acronym first use output from long-short to short-long. Note that there is a very subtle bug when using @Nicola Talbot's answer in this context, and that is: Once you use ...


1

Try using \eqref{fig:label} from amsmath. (Taked from here: https://groups.google.com/forum/#!topic/latexusersgroup/e1CHoBfj8pQ)


0

This is really more a response to @HeikoOberdiek's knowledgeable answer, but it is unsuited for a comment. First, I tried two of your proposed workarounds, the "more automatic solution" and the redefinition of \@combinedblfloats. The former did not work for me (I got a couple of * Additional boxing messages, but the error still happened), but the latter ...


5

The following example defines macro \myref, which writes into the .aux file the command \LabelKnown with two arguments, the referenced label name and a unique identification number for this instance of \myref (the same label can be referenced more than once). When the .aux file is read in the next LaTeX run at \begin{document}, then \LabelKnown if the label ...


1

You can use biblatex like this: \documentclass{egpubl} \usepackage[utf8]{inputenc} \usepackage{filecontents} \let\bibhang\arealyundefinedcommand \usepackage{biblatex} \WsSubmission \makeatletter \renewcommand{\electronic@Version}{% \usepackage[pdftex, %pagebackref=true, colorlinks,linkcolor=blue,citecolor=blue,urlcolor=blue, ...


5

The MWE is a good starting point. From there I could simplify it further. frontmatter sets the title in the optional argument of \twocolumn. Thus \twocolumn[] is sufficient. The text can be replaced by vertical spaces. The class can be replaced by the standard article class. MWE: \documentclass{article} \usepackage{hyperref} \begin{document} \twocolumn[] ...


1

The doubling of the \addcontentsline is useless and they are at the wrong position, as Heiko Oberdiek already noted in his comment. I my opinion, the \numberline is wrongly used and there should be \clearpage after the sections. The entries of toc etc. to the ToC itself can be optained with tocbibind package out of the box. ...


1

With hypertexnames=false also correct index links are disabled, use the default value true instead. Option breaklinks does not magically add support for breaking links across lines, if the driver does not support this. Then the text is broken across lines, but the link areas are quite wrong. The data for the PDF information keys should be set after package ...


1

I can confirm that it does not work in XeLaTex It will work in a p column. See MWE below. Likewise in your MWE Curiously it is not simply a case of too little space in l column - even if column is forced easily wide enough. \documentclass[a4paper,8pt]{article} \usepackage[legalpaper,left=4pt,right=14pt,top=13pt,bottom=14pt]{geometry} ...


1

Quoting the OP: PROBLEM FIXED The problem was found within the custom class I was using, {Latex/Classes/PhDthesisPSnPDF} as I was using the CUEDThesisPSnPDF template for my thesis. Within the class I searched for pagebackref in the hyperref package and just added "= false", so it now reads pagebackref = false,


4

\texorpdfstring has two arguments, the first is the normal TeX code, the second is a string, which can be used as replacement for the arbitrary TeX in the bookmarks. If option unicode (or pdfencoding=auto) is enabled, then the subscript 2 is available as \texttwoinferior: \documentclass{report} \usepackage[pdfencoding=auto]{hyperref} \usepackage{bookmark}% ...


4

One way: Explicit \hypertarget and \hypertarget commands. \hypertarget{labelhere}{\hyperlink{labelthere}{some text}} and exchanging for the other target: \hypertarget{labelthere}{\hyperlink{labelhere}{some other text}} \documentclass[a4paper]{report} \usepackage{hyperref} \begin{document} \hypertarget{wordA}{\hyperlink{wordB}{Word A}} \newpage ...


2

The width of the section number box can be changed with the tocloft package and \cftsecnumwidth length (I added 1.5em here, change to more appropiate values at will) The bookmarksnumbered=true feature will use the faked section number A01 and Z in the bookmarks, wheres as \numberline is responsible for the toc entry \documentclass{article} ...


3

\parbox is not supported for bookmarks, which only consist of single lines. The following example defines the markup macro \abbrnum, which is redefined for the bookmarks. \documentclass{article} \usepackage{hyperref} \usepackage{bookmark}% faster updated bookmarks \DeclareRobustCommand*{\abbrnum}[1]{% \parbox{3em}{#1}% } ...


2

Here I introduce \preplabel{}, which places the label in a \ttfamily right-aligned field, so that all labels take the same width on the contents page. If left-alignment is preferred, that change is trivial... just redefine \preplabelhelp to the following: \def\preplabelhelp#1#2#3{\ttfamily#1#2#3\ifx#3\relax~\fi\ifx#2\relax~\fi~~~\rmfamily} Of course, ...


2

This does work, but I would strongly not recommend that. No one expects to jump to page one when clicking on the section number. % arara: pdflatex \documentclass{article} \usepackage{titlesec} \titleformat{\section} {\normalfont\Large\bfseries}{\hyperlink{page.1}{\thesection}}{1em}{} \usepackage{blindtext} \usepackage{hyperref} \begin{document} ...


1

The trick is to fake a contentsline with empty page numbers. \addcontentsline will cause the page number to be inserted, by using intermediate .aux file step. \addtocontents{toc}{\protect\contentsline{part}{\appendixname}{}{}} will first add the line \@writefile{toc}{\contentsline {part}{Appendix}{}{}} to the .aux file, the \@writefile command will ...



Top 50 recent answers are included