Tag Info

0

In my case it was sufficient to remove draft option from list of document class options. The following command in document preamble \documentclass[twoside,openright,titlepage,numbers=noenddot,headinclude, footinclude=true,cleardoublepage=empty,draft,abstractoff, BCOR=5mm,paper=a4,fontsize=11pt, ngerman,american,slovak% ...

0

I am also facing a problem with the beamer class file. I am using the following code: \documentclass[slidestop,mathsrif]{beamer} \usetheme{CambridgeUS} \usecolortheme{lily} \beamertemplateballitem \usepackage{graphicx} \usepackage{xcolor} %\usepackage{ragged2e} %\usepackage{hyperref} \title[Many-body Physics with Stationary Light]{\color{red!50!green}{\bf ...

5

This should work: Temporarily disable the loading of hyperref and load it after verse. verse (unnecessarily?) defines \theHpoemline counter format, in my point of view. \documentclass[nohyper]{tufte-book} \usepackage{verse} \usepackage{hyperref} \begin{document} \begin{verse} A sprig, with its flower, I break. \end{verse} \end{document} A dirty ...

3

The problem is unconnected to longtable the problem is that tabu X columns like the original tabularx X columns are set multiple times in trial runs to obtain the correct column widths. To avoid writing labels and other things multiple times the code disables \write and some other commands while making trial runs, so you can detect that and not make a ...

4

The PDF format also knows link annotations with named actions, which calls functions of the PDF viewer. The official list of these named actions in the PDF specification for version 1.7 (ISO standard version) is quite short: NextPage, PrevPage FirstPage, LastPage However, the list supported by AcrobatReader is much longer. Section "5 Acrobat-specific ...

2

This should work for normal cases \documentclass{book} \usepackage{biblatex} \addbibresource{biblio.bib} % Is on 'every' TeX system %\usepackage[nottoc]{tocbibind} \usepackage{blindtext} \usepackage[linktocpage]{hyperref} \begin{document} \tableofcontents \chapter{First} \cite{Lam94} \blindtext[5] \chapter{Second} \blindtext[10] \cleardoublepage ...

2

The standard setup of hyperref is to use the content titles in the ToC as link, however, the option linktocpage=true to hyperref or in \hypersetup will use the page number. \documentclass{article} \usepackage{blindtext} \usepackage[linktocpage]{hyperref} \begin{document} \tableofcontents \section{First} \blindtext[5] \section{Second} \blindtext[10] ...

2

Broken installation \Hy@VersionCheck is defined in hyperref.sty of version 2010-10-19 v6.81s and later. The driver file of your error message log has version 2012/11/06 v6.83m. The versions of the package file hyperref.sty and its driver files *.def must match. Check your .log file, where your hyperref.sty comes from and which version is has. If the file ...

1

After some time of debug, I finally found what was wrong or actually the package responsible for that malfunction. I was using BibLaTeX, and as the following minimal working examples prove it, we have to declare the line \PassOptionsToPackage{hyphens}{url} before BibLaTeX is declared. Working example, links packages are declared before : ...

4

Each not too bad PDF viewer should have a "back" feature for jumping to the previous location. Thus there is no need to have such a go back link. Nevertheless there are some options: backref Package biblatex provides a backref feature, which prints a list of pages, where the bibliography entry is cited. Of course the user would have to remember the page. ...

2

The reason why the behavior differs when LuaTeX or XeTeX is used, is explained here. The XeTeX uses xdvipdfmx and this converter sets the UTF8 to UCS2 conversion automatically. On the other hand, when we are using direct pdfTeX primitives (like in LuaTeX) then the UTF8 to UCS2 conversion must be done at macro level. And the hyperref package does this when ...

3

1

There are beamer themes that already have such buttons on the bottom. One of them is "Warsaw", the theme of the usual beamer template. Maybe you can find in the sources of "Warsaw" how to modify it to your needs. If that doesn't work for you, you may have some other issue with beamer versions or your pdf-viewer.

2

After studying the cleveref package documentation further, I stumbled across a warning in section 14.1 Non-bugs. Even though I did not use \label in an optional argument to another command (as the third bullet suggests), it seems that it should be enclosed with curly braces in order to work properly. Correcting \label[opC]{line:1} into {\label[opC]{line:1}} ...

4

Package hypdoc loads hyperref and adds some "hyper" support for the document class ltxdoc with its package doc. The index entries are then linked: \documentclass{ltxdoc} \usepackage{hypdoc} \CodelineIndex \EnableCrossrefs \begin{document} ... Mind that you need to run the document through LaTeX and makeindex at least twice to get correct links within the ...

2

This does most, but not quite all, of what you want. I hesitate to hack KOMA Script's code for the table of contents. Hence, this does not remove the page number from the ToC entry of parts. As far as I've understood them, it implements all the other desiderata stated in the question. Insofar as is possible, I've used KOMA's facilities to implement your ...

2

Use the option hyperindex=false to prevent the 'wrong' behaviour of hyperref for this. \documentclass{ltxdoc} \CodelineIndex \EnableCrossrefs \usepackage[hyperindex=false]{hyperref} \begin{document} \DescribeMacro{\macro} A description of \cs{macro} \begin{macrocode} \macro % \end{macrocode} \PrintIndex \end{document}

0

This is the code I tried from Tarun's answer: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % LyX 2.1.0 created this file. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[twoside,ngerman,fontsize=10pt]{scrreprt} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage[a4paper]{geometry} \geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2.5cm} ...

1

changes defines the \definechangesauthor command which has some options, e.g. color for choosing the text color and as mandatory argument a author name, say foo. However this command defines counters which names are created from the author name, such as Changes@AddCountfoo etc. which are automatically incremented. In changes.sty the command ...

1

9

Regarding pdfTeX: It's a limitation of TikZ. Transformations are done using raw commands, not the pdfTeX primitive \pdftransformmatrix. The latter does not include translations, because it can be achieved by moving boxes. However, Tikz' basic system layer command needs the whole matrix including translations, thus a fix would mean a redesign at least at the ...

0


7

0

As far as I know, the most closer you can get to what you want is: \documentclass[a4paper,10pt]{article} \usepackage{hyperref} \hypersetup{colorlinks=false,pdfborderstyle={/S/U/W 1},pdfborder=0 0 1} \begin{document} \url{http://www.atmel.com/Images/Atmel-11121-32-bit-Cortex-A5-Microcontroller\_SAMA5D3\_Datasheet.pdf} text text text text text text text ...

2

Rather than hack the \autoref macro, I would recommend you load the cleveref package with the option nameinlink. That way, all call-outs generated by \cref and \Cref -- the former for lowercase names, the latter for upper case names -- will appear like the call-outs generated by \autoref. In your editing software, do a global change of \autoref to \cref and ...

0

Thank You very much for your idea Jiri Srubar but fortunately I don't need to try because a few minutes ago I managed to solve this problem in the following way: I reinstalled MiKTeX again but before installing any of the necessary packages I used the packagemanager's 'Synchronize' option from the 'Repository' menu. After this, I downloaded the packages the ...

4

I wanted to try an answer with \tcolorbox just as an exercise, but Bernard gave a good reason, thmbox can't break across pages and tcbtheorems can. So, in case someone is interested, here you have a starting point. A tcbthmbox looks similar to thmbox, tcbSthmbox like [S]-thmbox and tcbLthmbox like [L]-thmbox. \documentclass{article} \usepackage{lipsum} ...

0

I had similar problem. I usually use the "latex > dvips > ps2pdf" workflow, and for ps2pdf I'm using GPL GhostScript batch. And it seems that GhostScript is the culprit. When I downgraded GhostScript back to version 9.02 (from 9.15), PDF bookmarks are generated correctly again. (Upgrading to 9.16 didn't help.) (W7, MikTeX 2.9, TexStudio 2.9.4)

2

You can do some thing like this \documentclass{article} \usepackage{hyperref} %% put these before \hypersetup \title{This is my Sample} \author{John J. Tan} \date{} \makeatletter \let\mytitle\@title \let\myauthor\@author \makeatother \hypersetup{% pdfauthor={\myauthor}, pdftitle={\mytitle}, } \begin{document} \maketitle \end{document} Or even simply ...

0

The \nolinkurl command can be used to format a URL without creating a link. This can be combined with \href to get the desired effect: \href{http://google.com}{\nolinkurl{google.com}} This duplicate issue shows the specific case when only the "http://" has been omitted (thanks @Werner for finding this).

1

It seems that this is a bug in the hyperref package. When hyperref isn't loaded then the paragraph-part before display is ended by a space (after the comma at the end of the line in your excellent example) and then the does \refstepcounter {equation} and then it expands to  which starts the display mode. The start of display mode executes ...

3

You're being unlucky, but also hyperref should do better. \documentclass[12pt,a4paper,fleqn]{article} \usepackage{amsmath} \usepackage{etoolbox} \usepackage{hyperref} \BeforeBeginEnvironment{equation}{% \ifhmode\unskip\fi } \textwidth = 16cm \setlength{\parskip}{1.5ex plus0.5ex minus0.5ex} \setlength{\parindent}{0em} \begin{document} Suppose $\vec{T}$ ...

7

edit adds a patch to another, pure amsmath, problem; see bottom of answer Not an easy one. First of all indeed hyperref should always be loaded after amsmath because it does things depending on whether amsmath is loaded, but does not delay this to At Begin Document. The problem of a unary minus is already taken care of by hyperref's redefinition of ...

6

Force the unary minus to be of type \mathord either via \mathord{-}, or {-}: \documentclass{article} \usepackage{amsmath,hyperref} \begin{document} $${-}1 = -1 % output: -1 = -1$$ \end{document} Most likely this stems from hyperref's insertion of content at the start of the horizontal list for (hyper-) referencing. As such ...

0

Try to use eqnarray instead of equation! It solves your problem. :) \begin{eqnarray} -1 = -1 % output: -1 = -1 \end{eqnarray}

0

Sometimes, the links are created by the bibliography, from items with URL fields. A solution that helps in this case and preserves clickable links is to make sure that each \bibitem is typeset without column or page breaks: \let\oldbibitem\bibitem \def\bibitem{\vfill\oldbibitem} A \vfill rubber length is inserted before each \bibitem. This produces ugly ...

3

\autoref knows only a basic set of names; just teach it what it should substitute for thm: \documentclass{article} \usepackage{hyperref} \usepackage{cleveref} \pdfstringdefDisableCommands{\let\Cref\autoref} \newtheorem{thm}{Theorem} \newcommand{\thmautorefname}{Theorem} \newtheorem{theorem}{Theorem} \begin{document} \section{Section 1} ...

1

The \Cref command cannot be used in \section when bookmarks are being produced; however, \autoref works (it's less powerful, though). For a simple application like this you can do as follows: \documentclass{article} \usepackage{hyperref} \usepackage{cleveref} \pdfstringdefDisableCommands{\let\Cref\autoref} \newtheorem{theorem}{Theorem} \begin{document} ...

5

You can do this with thmbox package \documentclass{article} \usepackage{thmbox} \newtheorem[L]{thm}{Theorem}[section] \newtheorem{lem}[thm]{Lemma} \newtheorem[S]{cor}[thm]{Corollary} \begin{document} \begin{lem}{First resualt} Here a lemma \end{lem} \begin{thm}{Important} Great theorem \end{thm} \begin{cor}{Final} Here the corollary \end{cor} ...

6

I'm afraid there is no solution for this, apart from using the command \texorpdfstring, that is you have to specify what has to go in the text and what has to go in the bookmarks. Hence, substitute \section{Proof to \Cref{some label}} with \section{Proof to \texorpdfstring{\Cref{some_label}}{Theorem \ref{some_label}}} Note that it isn't a good idea to ...

2

Eliminating footnote links requires setting two options: the hyperref=false option for biblatex, and the hyperfootnotes=false option for hyperref. This example should make clear that the citation at the beginning has no link, but the equation at the end does. \documentclass{article} \usepackage{filecontents} \begin{filecontents}{mwe.bib} @book{salam, ...

5

classicthesis already loads hyperref, so you have to use \hypersetup to set the metadata (Hint: do not use pdftex): \documentclass{article} \usepackage{lipsum} \usepackage{url} \usepackage[nochapters]{classicthesis} \usepackage{graphicx} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{mathtools} \usepackage{tabularx} \usepackage{booktabs} ...

17

The indigestion is avoided by passing the unicode option to hyperref: \documentclass{scrartcl} \usepackage{polyglossia} \setmainlanguage{turkish} \makeatletter \usepackage[hidelinks,unicode]{hyperref} \AtBeginDocument{% \hypersetup{% pdftitle = {\@title} } }{} \makeatother \title{RAB'BİN GÜNÜ} \begin{document} Title in document properties ...

3

You can use option bookmarksdepth. \documentclass{article} \usepackage[bookmarksdepth=paragraph]{hyperref} \begin{document} \paragraph{Here is a paragraph} It isn't very long. \paragraph{And here is another one} Not long either. \end{document}

1

Possible, thogh not recomended. \documentclass{article} \usepackage{etoolbox} \usepackage[numbers,sort&compress,square,comma]{natbib} \usepackage[colorlinks,citecolor=blue]{hyperref} \makeatletter \pretocmd{\NAT@open}{\begingroup\color{\@citecolor}}{}{} \apptocmd{\NAT@close}{\endgroup}{}{} \makeatother \begin{document} \cite{aristotle:physics}\par ...

Top 50 recent answers are included