Questions tagged [hypertarget]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
23 views

Unwanted horizontal space with \hypertarget and the enumerate environment

The environment enumerate and its starred counterpart enumerate* behave slightly differently with \hypertarget. The latter, enumerate*, adds unwanted horizontal spacing. The following descriptive MWE \...
Linear Christmas's user avatar
0 votes
1 answer
26 views

Wrong anchor of algorithm2e with caption on top

I have the following MWE, where I use the package algorithm2e to print algorithms. However, I like the captions of the algorithms to be placed on the top (how to do this was already answered in this ...
KennyH's user avatar
  • 15
0 votes
0 answers
53 views

Beamer: hypertarget pointing with custom TOC

I'm trying to make a toc (named list of todos), list senteces, highlighted with custom command \todo, before series of frames created via allowframebreaks. Hope the MWE tell it better: \makeatletter%%!...
Alexander Beerhoff's user avatar
0 votes
1 answer
52 views

Is there a simple fix to using "\hypertarget" inside thmtools's "restatable"?

Is it possible to use \hypertarget inside restatable? The command \hypertarget is from package hyperref, and restatable is from packagethmtools. The issue is that if the restatable is called, it seems ...
Linear Christmas's user avatar
0 votes
3 answers
56 views

Cell table link to TOC

I need to link a particular cell of a table to the toc. For example, \addcontentsline{toc}{subsection}{Pablo} or \addcontentsline{toc}{subsection}{prudencia}. My code: \documentclass{...
Antonio Ortiz's user avatar
0 votes
1 answer
30 views

Build hyperlink between Author name and footer

In the following code, I try to build a hyperlink between the Author name and left hand footer. That is to say, when I click the text Author name(made by \author), the page view will jump to left hand ...
lyl's user avatar
  • 2,677
0 votes
1 answer
430 views

Pandoc Conversion and \hypertarget

I converted a long text from Markdown to LaTeX and am trying to clean it up. I found this code and don't know what it does: Specifically: \hypertarget \texorpdfstring \label I have no idea what the ...
user26732's user avatar
  • 1,715
3 votes
1 answer
142 views

Is it possible to open an embedded file on a specific page?

is it possible to create a hyperlink so that it opens a PDF document attached to a specific page? I have discover that the navigator package allowed it via the following syntax: \openfilelink{file ...
B Legrand's user avatar
  • 435
0 votes
0 answers
28 views

Hyperlink problem [duplicate]

I want to refer to the Theorem and corollary at different places with the same number. But it's not working, any idea of an alternative to this issue. Thanking you in advance! \documentclass[a4paper]{...
user268851's user avatar
0 votes
1 answer
104 views

how do I create a macro for two-way links?

I'm trying to extend a previous href command (that works) to create a pair of new commands that wrap \hyperlink{}{} and \hypertarget{}{}. The commands would work together to create hypertargets for ...
RichWalt's user avatar
  • 171
1 vote
1 answer
323 views

Cross references inside a figure caption. EDIT: What to do when the caption includes a ]?

I am writing my dissertation in overleaf, and I am borrowing a series of figures from different publications. In each relevant figure caption, I have the citation followed by the text "...
WnGatRC456's user avatar
1 vote
0 answers
37 views

Beamer: Hyperref moves to wrong position in target frame. Where is the "error"? [duplicate]

I want to navigate to specific frames in my document, using hyperlink and labels. In the attached code, when viewing the PDF (with okular or evince) in a small viewer window that fits exactly one page,...
MNatiello's user avatar
0 votes
1 answer
34 views

How can I get \hyperlink to display the section number of the \hypertarget?

I am working with a document class which provides an environment called sheet, together with a \sheetlink command to provide a hyperlink to a specific sheet. A much reduced example demonstrating the ...
user162311's user avatar
0 votes
1 answer
68 views

Two-way link, marginnote to item wanted

In the following MWE, I am trying to link a \marginnote with an \item in the appendix. While the link does show in red, it is not active. If that is solved, my next step would be to create a return ...
hsmyers's user avatar
  • 1,493
1 vote
1 answer
41 views

How to make these custom hyperlinks jump to the start of the page instead of the exact hyper target?

I'm making a little pen and paper game with an index of items at its back. During the game, the player encounters items with instructions on where to find the item's details at the back of the ...
hipsterstomper69's user avatar
2 votes
1 answer
205 views

Why does this custom "mytarget/mylink" definition pair NOT work properly?

The goal is to get a pair of commands, \mytarget(*) and \mylink/\Mylink. Specifically, I am interested why "my" solution does NOT work, and how to fix it (if possible). Syntax \mytarget{&...
Linear Christmas's user avatar
1 vote
1 answer
64 views

How to get figure captions linking to entry in list of figures with a custom function

I am trying to implement the following, I have a conditionally defined new command that works with the caption command so that I can give it a short and long caption, or just a long caption, achieved ...
TaukDe's user avatar
  • 15
2 votes
1 answer
401 views

hyperlinks to a separate PDF document

I am trying to figure out a way to create hyperlinks between PDF documents. Here's an MWE: \documentclass[10pt]{article} \usepackage[a6paper]{geometry} \usepackage{hyperref} \begin{document} \section{...
T F's user avatar
  • 241
2 votes
0 answers
66 views

`\href`, `\hyperlink` and `\hyperref` [duplicate]

As per Mico's suggestion (and my indomitable curiosity), here is the question: What are the differences among \href, \hyperlink and \hyperref? \documentclass{article} \usepackage[hyphens,spaces,...
hola's user avatar
  • 3,976
0 votes
1 answer
189 views

List all bookmarks added with \hypertarget for named destinations

I add bookmarks to all sections in my project in the following way: \section{Introduction} \hypertarget{intro}{} Some text. I use these bookmarks later in URL links https://example.com/my-document....
f-hollow's user avatar
  • 189
4 votes
1 answer
447 views

Hyperlink/Hypertarget Jumping to line below desired location

I have a custom commands for setting up two-way hyperlink/hypertargets: \documentclass[a4paper]{report} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage[hidelinks]{hyperref} \...
Renegade243's user avatar
0 votes
0 answers
89 views

Change scope of hypertarget in citation call-out [duplicate]

The issue is that when I load the hyperref package in my LaTeX document, not the entire citation call-out is colored; specifically, only the publication year is colored, while the authors' names and ...
Rubén Pérez Sanz's user avatar
3 votes
1 answer
251 views

Deactivate Hyperref conditionally if no Hypertarget exists

Is there a reasonably easy/effective way to deactivate a hyperlink conditionally using the hyperref package, ie the hyper-target doesn't exist in the LaTeX output ie, display no hyperlink for this ...
user avatar
1 vote
1 answer
92 views

hypertarget and hyperlink first try

I am trying to link a word ("Πιστοποιητικό") to a pdf file or a jpg file but I haven't understand where I have to put the file so when someone clicks the hyperlink the file will be revealed. \...
Petros Mourouzis's user avatar
1 vote
1 answer
469 views

How to check if hypertarget label exists

While \ref{labelname} raises a warning when \label{labelname} has not been declared, the same does not happen with \hyperlink{labelname}{text} when \hypertarget{labelname}{reference text} is absent. ...
AndreasT's user avatar
  • 708
1 vote
1 answer
77 views

How to link from a browser to a specific section of document using hyperref?

Hyperref automatically generates bookmarks for document divisions (part, chapter, section) in the PDF output. When opening a document with a browser we can use anchor syntax to link to a specific page ...
Julien Dutant's user avatar
0 votes
1 answer
231 views

Correcting the hyperlink anchors of (sub)equations with custom tags

In this example: \documentclass{article} \usepackage{amsmath} \usepackage{hyperref} % https://tex.stackexchange.com/a/412381: \makeatletter \newcommand{\linkdest}[1]{\Hy@raisedlink{\hypertarget{#1}{...
Peter's user avatar
  • 998
0 votes
2 answers
377 views

Passing an in input argument to hyperlink

I have a text with many abbreviations and I want to have a simple command which takes the reader to the original definition of each abbreviation. I can do this in a standard way as follows: \...
Peter Hristov's user avatar
1 vote
1 answer
43 views

How to assign page number of label to hyperlink [duplicate]

I'm quite new with Overleaf and I have following problem: I want to make clickable table of contents to my thesis. It turned out that package hyperref works only with numbered chapters and sections. I ...
T. Holmström's user avatar
5 votes
1 answer
257 views

A more precise hyperref

I'm currently using hyperref and makeidx to make a hyperlinked index, and it's working great. But right now, the hyperlinks always take me to the top of the page; ideally, I'd like the links to be ...
Draconis's user avatar
  • 910
1 vote
0 answers
1k views

Hyperlink at Beamer for external files

I need to do hypperlink to external file to hyppertarget in it . is it possible to do this ? I read about href and url ,but I didn`t find info about this . Tex file with hyppertarget will be placed in ...
re1nex's user avatar
  • 101
2 votes
1 answer
1k views

anchorcolor in hyperref not working?

I am trying to use the hyperref package to color internal links coming from \label as green, while those coming from anchored text via \hypertarget as red. However, in both cases, the relevant text ...
Patrick.B's user avatar
  • 145
2 votes
0 answers
180 views

Dynamically Highlight Active Hypertarget

Is it possible to [dynamically] highlight the active hypertarget in a pdf document? I am using LaTeX (with the bookmark package) to create a pdf document (via dvips and ps2pdf) with many pages of ...
Andrei's user avatar
  • 21
7 votes
2 answers
4k views

How can I configure two way hypertarget/hyperlink pairs?

Here is some latex which sets up a hyperlink/hypertarget pair so that I can quickly navigate a large document: \documentclass{article} \usepackage{hyperref} \begin{document} \section{I am a ...
CiaranWelsh's user avatar
2 votes
1 answer
848 views

Images with url

I want to show the Linkedin image and address on my CV with url to my Linkedin profile. The output is required to be work as follows I have tried with the flowing MWE but url is not working. I am ...
Dr Renjth V Ravi's user avatar
0 votes
1 answer
391 views

My \hyperlink from the hyperref package directs me to the wrong line

When I click a link to a word created with the hyperref package, I am directed to the line in the text below the link if the word is in the middle of the line. If I create link to a word which is the ...
Rasmus's user avatar
  • 141
1 vote
2 answers
2k views

Encoding of umlaute and special characters in \href links [duplicate]

I have a rather big project where I need multiple packages at the same time. I have problems in using "german umlaute" (äöü) and other special characters in \href links. Here is what I have: \...
Maxi's user avatar
  • 11
5 votes
1 answer
2k views

How to fix hypertargets directing links to the line after the target? It looks like a bug

If the hypertarget is in a text-mode location, links to it work normally (they show the target line at the top of the page). However, if the hypertarget is in math mode (of any kind: in-line or in ...
James Ray's user avatar
  • 261
2 votes
1 answer
670 views

Line breaks in \hyperlink text

I'm writing a document with lots of \hypertarget and \hyperlink in them using pdflatex. I'm trying to get the text of \hyperlink{label}{very long text that should line break} to line break. ...
Daniel's user avatar
  • 159
1 vote
1 answer
1k views

Can't embed hyperlink references in a tooltip

I'm having troubles trying to embed text references in a tooltip. I'm using the tooltip script which can be found here: Tooltip that works with all pdf readers. I'm also using the hyperref package. ...
Beafantles's user avatar
0 votes
1 answer
119 views

Automating the process of passing overlay numbers to \hypertarget in beamer, part 3

In this thread @Mike wrote some very elegant code that allows me to automate the the process of passing overlay numbers to \hypertarget. It works perfectly. However, I would also like to have the ...
Leo Simon's user avatar
  • 2,169
30 votes
3 answers
5k views

hypertarget seems to aim a line too low

I made a small example: \documentclass[a4paper,12pt]{article} \usepackage[pdfstartview=FitH]{hyperref} \usepackage{bookmark} \begin{document} we want to go\hypertarget{t1}{} here.\\ instead we go ...
peter's user avatar
  • 2,775