# Tag Info

0

I finally found an alternative to do what I want. It consist of the use of commands \normalfont before the \tiny command: \stackrel{\mathclap{\normalfont\mbox{\tiny formule~\ref{e2}}}}{=} and it works like a charm!

2

For some reasons, \maketitle gets redefined twice, and the second time \HyOrg@maketitle (what hyperref uses to store the old meaning of \maketitle) points to itself, thus creating a loop. This seems to happen when the Hebrew language is loaded. The following trick should help. However, it seems a problem with ucthesis, because the issue doesn't appear with ...

1

To automate the use of the \small font size directive for all instances of \ref, you could issue the following commands in your document's preamble: \usepackage{etoolbox} \pretocmd{\ref}{\bgroup\small}{}{} \apptocmd{\ref}{\egroup}{}{} The commands \bgroup and \egroup serve to form an explicit TeX "group", so that the scope of the command \small ends after ...

3

Making color specials in vertical mode not affect the position of text would be a good thing, but is very hard to do in TeX. If at all possible it is best to keep them in horizontal mode (so for example \textcolor rather than \color) or here you can force the paragraph to start with \leavevmode or as you have \hspace{0pt} which is slightly less efficient but ...

0

I solved the problem using the following three packages: \usepackage[hyperpageref]{backref} \usepackage{hyperref} \usepackage{hypdvips} If you have \bibliography with BibTeX and you do not want a link page to go back from references, compile once with \latex+dvips+ps2pdf including: \usepackage[hyperpageref]{backref} \usepackage{hyperref} and then ...

0

Since you're using the ruled style, the caption is always placed on the top. As such, we can patch the start of the algorithm environment and insert the aid provided by Equivalent to hypcap for [ruled]{algorithm2e}?. The following patch is provided by xpatch, since the definition of algorithm takes an optional argument: \documentclass{scrbook}% ...

2

The standard way is probably to set borderwidth to zero so no border is added. (Leaving bordercolor the empty string doesn't seem to be a supported value as far as I can see, even though it may not give an error message) \documentclass[12pt]{article} \usepackage{hyperref} \usepackage{xcolor} \begin{document} \begin{Form} ...

1

The solution is to leave the value empty and use bordercolor=. Here is the example: \documentclass[12pt]{article} \usepackage{hyperref} \usepackage{xcolor} \begin{document} \begin{Form} \TextField[name=formname,bordercolor=,width=6cm] {\mbox{}} \end{Form} \end{document}

0

I think you need www. before google.com. The following example caused the same problem in Adobe Reader 9 (linux), though it worked ok for some other viewers. After inserting www. it worked for all the viewers I tried. \documentclass[11pt]{article} \usepackage{hyperref} \begin{document} \href{http://google.com}{Google} % Insert www. before google! ...

3

Sections S3, S4 and S5 have the same number as the corresponding sections S0, S1 and S2 (because the chapter number remains 0 after unnumbered chapters). Hyperref builds the destination names from these numbers. Thus you get a warning about duplicate destination names and only the first ones are active. (The same happens with pages, because you start the ...

0

@Herbert thank you for your reply. I also tried with \usepackage{breakurl} but it did not work. Very long titles are not well linked as short titles. \documentclass[a5paper,dvips]{article} \usepackage{geometry} \usepackage[breaklinks]{hyperref} \usepackage{breakurl} \begin{document} \tableofcontents \section{An extraordinary long title to show that titles ...

2

\documentclass[a5paper,dvips]{article} \usepackage{geometry} \usepackage[breaklinks,colorlinks]{hyperref} \usepackage{breakurl} \begin{document} \tableofcontents \section{An extraordinary long title to show that titles are which are linked in the toc are broken across lines} foo \qquad ...

1

You can use the cooltooltips package for this. Here is a basic example essentially from the manual: \documentclass{article} \usepackage{cooltooltips} \begin{document} Packages may be found on \cooltooltip{CTAN}{A link to CTAN}{http://www.ctan.org/}{Visit CTAN on the web}{CTAN}. \end{document}

4

pdfpages can be used to embed PDFs in a document and to add entries to the ToC. Assuming you have a file kant.pdf, which you want to embed in your main file, you could do so by calling includepdf with the following parameters: \includepdf[% pages=-, addtotoc={% You can add more than one entry to the toc 1, % page ...

2

I don't know actually, but I conducted small research, and think that you can't hide it, you can do nothing with it, at all (without a little trick, of course) First of all, I create a simple example and open it in Adobe Acrobat. I see, that a field and a label independent. And there is no any TextField properties that can change the label. Textfield it's ...

5

Below an possible answer adapted to your usecase. For this solution I redefined \footnote and \href and used to if-statements. To really check if one is in a certain environment see this question. \documentclass{article} \usepackage{hyperref} \newif\ifprinted \printedtrue % for printet version % \printedfalse % for screen version \newif\iffoot \footfalse ...

3

The default \label-\ref system stores/retrieves two things associated with a label. The first is a counter, and the second is a page number. Technically, the label is created using (from latex.ltx): \def\label#1{\@bsphack \protected@write\@auxout{}% {\string\newlabel{#1}{{\@currentlabel}{\thepage}}}% \@esphack} You'll see only \@currentlabel ...

0

Yes. Load the minitoc package before hyperref. Immediately after loading minitoc save the definition of \contentsline, the macro that prints the entries, in another macro. Via the command \beforeminitoc, restore the definition of \contentsline from the stored value. The small catch is that in the meantime, hyperref has changed the number of arguments ...

8

Yes: Use \ref* instead of \ref to create a cross-reference that's not also a hyperlink. A simple example: \documentclass{article} \usepackage[colorlinks=true]{hyperref} \begin{document} \section{First section}\label{sec:1} abc \section{Next section}\label{sec:2} def \section{Final section}\label{sec:3} A hyperlinked cross-reference to Section ...

3

This solution consists in providing a \hyperbypass macro that patches the hyperref driver locally (if you don't want to replace the relevant \refs with \ref*s) and a \hyperrestore macro to restore the previous settings: \documentclass{article} \usepackage{hyperref} \makeatletter %Store the hyperref driver setup \let\HR@hyper@@anchor\hyper@@anchor ...

1

A slight improvement on Heiko's answer is to customise \labelformat' instead of\crefformat. Then you don't need to redefine all of\crefformat,\crefmultiformat,\crefrangeformatand\labelcrefformatto avoid breakingcleveref`'s multi-reference features: \documentclass[12pt,a4paper]{article} \usepackage{lipsum} \usepackage{hyperref} \hypersetup{ ...

2

Even simpler, just put \crefname{equation}{}{} in your preamble. Then all the formats get defined for you automatically. (No need to redefine all of \crefformat, \crefmultiformat, \crefrangeformat, \labelcrefformat!) These days, cleveref is...clever enough to omit the usual non-breaking space after the cross-reference name if you define an empty name.

3

Instead of redefining each and every field format you might like this more general approach to redefine the \fullcite command. \DeclareCiteCommand{\fullcite} {\usebibmacro{prenote}} {\iffieldundef{doi} {\iffieldundef{url} {\usedriver {\DeclareNameAlias{sortname}{default}} {\thefield{entrytype}}} {\href{\thefield{url}} ...

1

You can exploit the fact that you're going to write your Introducción in Spanish, so inside an environment. \documentclass{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish,english]{babel} \usepackage{hyperref,bookmark} \begin{document} \tableofcontents \begin{otherlanguage}{spanish} ...

2

This works in the same way as for other floats: put \capstart at the beginning of the float. \documentclass{article} \usepackage{algorithm2e} \usepackage{hyperref} \usepackage{hypcap} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{algorithm}[H] \capstart \SetAlgoLined \KwData{this text} \KwResult{how to write algorithm with \LaTeX2e } ...

2

Unfortunately, beamer doesn't really support numbered/unnumbered sections. It can however be patched to provide some attempt at this functionality. Here, I create a new counter called realsection that only gets incremented on non-starred sections, not for starred sections (as you have noticed, section gets incremented for both in beamer). Using a new ...

0

Based on the comment of @karlkoeller, I was wondering if the following placement of \addtocounter{section}{-1} might give the desired results \documentclass{beamer} \hypersetup{ bookmarksnumbered=true } \setcounter{tocdepth}{4} % get numbering in section bookmarks \usepackage{etoolbox} \usepackage{bookmark} \makeatletter \patchcmd{\beamer@section}% ...

1

I found an intermediate solution: adding the hyperref package and replacing above declarations with \DeclareFieldFormat[article]{volume}{\href{http://dx.doi.org/\thefield{doi}}{#1}} \DeclareFieldFormat{date}{\href{http://dx.doi.org/\thefield{doi}}{#1}} \DeclareFieldFormat{journaltitle}{\mkbibemph{\href{http://dx.doi.org/\thefield{doi}}{#1}}} ...

2

Try using the bookmark package to see whether this fixes your problems. bookmark implements bookmarks in documents in a more modern (less restrictive) way, and only requires a single compile. hyperref requires at least two compiles (assuming something changes in the ToC), since it uses auxiliary files during compiles to assemble the bookmarks. If you're ...

1

For reference, this issue seems to have been fixed in recent versions of cleveref (at least since 0.18.10; not yet in CTAN but available from my web site). The redefinitions in the other answers are no longer be necessary. I haven't tracked down precisely which version of cleveref fixed this bug.

2

You are using hyperref. This package provides the option backref with is explained as: In addition, the hyperindex option (see below) attempts to make items in the index by hyperlinked back to the text, and the option backref inserts extra ‘back’ links into the bibliography for each entry. So you can use: \hypersetup{backref=true}

2

To expand on what others said: This back functionality has nothing to do with TeX because you wouldn't encode the back link (from the link destination back to the link source) in the PDF document itself. Rather, the functionality is built into the PDF viewer; when you click a link, taking you to a different page in the PDF document, the PDF viewer remembers ...

1

I recommend you upgrade to the latest version of glossaries (v4.01 at time of writing) and try the following: \documentclass{report} \usepackage[colorlinks]{hyperref} \usepackage[acronym,nowarn,hyperfirst=false]{glossaries} % Switch off hyperlinks for all uses of \gls etc. % Hyperlinks will be inserted manually in the custom display style ...

3

The first letter upper case commands, such as \Gls, use \makefirstuc which requires its argument to either be just text or in the form \\command{text} (e.g. \makefirstuc{\emph{text}} is equivalent to \emph{\MakeUppercase{t}ext}). What your code is attempting to do is \makefirstuc{\gls{RangeExpansion}} which becomes \gls{\MakeUppercase{R}angeExpansion} and ...

4

I am not sure I understood well your problem but here is what I got: You want to get hyperlinks from the number of the items pointing to some given destination elsewhere in the presentation (set via \hypertarget{label}{text}). You want the numbers to be automatically displayed for the items. (I have added this feature but I don't know if you are interested ...

4

You can load natbib (of which bibentry is a subpackage) and change abbrv to abbrvnat: \begin{filecontents*}{\jobname.bib} @book{Goossens1994LaTeX, author = {Michel Goossens and Frank Mittelbach and Alexander Samarin}, title = {The \LaTeX{} Companion, $2^{nd}$ Edition}, publisher = {Addison-Wesley}, year = {1994{.}} } \end{filecontents*} ...

2

UPDATE 2: Peter Breitenlohner said: The solution is probably a modified definition of 'potentially hyphenatable part' in tex.web ([40] Pre-hyphenation). \hyphenation{first-word next-word last-word} \showhyphens{start firstword nextword nextword lastword end} \bye This does not seem to be bidi's problem but etex's problem. Try this (without ...

2

As discussed in the cleveref manual (page 12), use (don't redefine) the \crefname and \Crefname macros: \addto\captionsngerman{ % Second argument is singular, third is plural \crefname{figure}{abb.}{abb.} \Crefname{figure}{Abb.}{Abb.} }

2

You can quickly fix the problem by defining your section heading style to include a hyperref anchor \phantomsection: \setsecheadstyle{\phantomsection\Large\scshape\MakeLowercase}

Top 50 recent answers are included