Questions tagged [href]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

\href command of package hyperref does not work as it should

I am unaware of what could make \href fail so I will place here my code together with all packages used. I've seen in the past packages intercept one another. I am trying to produce a link to a paper ...
user avatar
3 votes
2 answers
77 views

Manual hyphenation in text part of \href

How can I use manual hyphenation commands (see https://de.wikibooks.org/wiki/LaTeX-W%C3%B6rterbuch:_Silbentrennung) inside the text part of \href? \documentclass[a5paper]{article} \RequirePackage[...
user avatar
  • 33
2 votes
1 answer
61 views

URL not working because of #

I cannot seem to create a hyperlink to a specific line of a file on GitHub with the \url or \href commands. The following returns a 404 page: \documentclass{article} \usepackage{url} \begin{document}...
user avatar
  • 653
0 votes
1 answer
35 views

href links with multiple ## are not successfully escaped using backslah escape

Using LaTeX I'm trying to create a hyperlink using href, where the url contains multiple # symbols. I am fully aware special characters have to be escaped, e.g. with % this is even rather typical in ...
user avatar
  • 133
0 votes
1 answer
33 views

Beamer frametitle always uppercase for text but not for href or url

I have a \citebutton command that I often use in the frametitle to link to some sources. Furthermore, I want to force the frametitle to be always in uppercase. Unfortunately, I am not happy with my ...
user avatar
  • 165
0 votes
1 answer
46 views

Getting a simple bibliography to work in ConTeXt

I'm trying to get a simple bibliography to work with ConTeXt. Here's what I have so far: test.tex \usebtxdataset[bibliography.bib] \starttext \startbodymatter See \cite[proofwiki] \...
user avatar
  • 1,382
0 votes
1 answer
38 views

automatic hyperref label

I want to have automatic labels when using \href{}{} in the text, instead of writing them myself. e.g.: \href{www.example.com}{example 1}, \href{www.something.com}{example 2} to \href{www.different....
user avatar
1 vote
0 answers
55 views

Add relative href web link to pdf document

How do I add a relative href web link to a .pdf document? I want to post sets of question/answer pairs to my web site. For example, http://foo.com/W22/Tests/Q1.pdf and http://foo.com/W22/Tests/...
user avatar
  • 111
1 vote
1 answer
45 views

href not allowing me to click on urls

I am writing a research paper. The goal of this project is to simply add a link to the project. I've added \usepackage{hyperref} The paragraph that I am working on is written like so: We developed ...
user avatar
0 votes
0 answers
13 views

Changing hyperlink styles in a footer or other document part

Is there a way to change the hyperlink styles from package hyperref in different parts of the document? I might want a different style in footers, or in the text of subsubsections, than the rest of ...
user avatar
0 votes
0 answers
25 views

Normal text formatting does not work in custom href

I created my own \href definition because it had to meet some specific style requirements in my document. Now I found that the optional display text cannot be formatted like a usual text anymore. For ...
user avatar
  • 277
2 votes
1 answer
93 views

Using \href is not rendering on pdf

I am attempting to use the href package in LaTex to make a link to my GitHub clickable in a resume. I believe that I am using it correctly, but the label remains unclickable. For background, I am ...
user avatar
0 votes
1 answer
53 views

texmaker doesn't recognize \href

I need to put the DOI in the references but Texmaker doesn't recognize or work the "\href" command. I've already installed the "hyperref" package. I don't know what to do. Could ...
user avatar
0 votes
0 answers
34 views

Inserting image to tex document from url

I need to render latex files with images. But images are situated in the wikipedia (http://commons.wikimedia.org/wiki/File:Pachydyptes_ponderosus.jpg). My latex code is: \documentclass{article} \...
user avatar
1 vote
1 answer
52 views

How to fix hyperlink spilling in tufte footnote when word wrapping?

I am using the tufte-book class and I noticed a weird behavior of the footnotes. Here is the setting, there is a line of text with a footnote on it and the last word wraps to the next line, then: If ...
user avatar
0 votes
0 answers
46 views

XeLaTeX Awesome CV - conditionally add hyperlink to title text

I'm using font-awesome package for icons in my resume I want to add hyperlinks to few titles, examaple Link to Job Experience Certificate will be included in text if the URL is provided What I tried ...
user avatar
5 votes
3 answers
220 views

Add hyphens to mobile number

I want to add my mobile number in a pdf line being generated using LaTeX how I want it to render: (+91) 7887-61x-xxx usage: \mobile{91}{788761xxxx} % Usage: \mobile{<countrycode><mobile ...
user avatar
2 votes
1 answer
36 views

How can I use section symbols '§' in urls with the url-package?

How do you create a url which includes a section symbol '§'? I'm trying to create a link to this following url using the url-package: https://lovdata.no/lov/1997-02-28-19/§20-20 Notice the section ...
user avatar
1 vote
1 answer
43 views

\href not breaking description

I am trying to use \href to display www.site.com but (without an http://) but include http:// in the actual link the output directs to when clicked. Long descriptions are running past the end of the ...
user avatar
  • 1,053
0 votes
1 answer
133 views

Hide symbol for external link if the link is empty

I am creating a Resume and I am using a Latex template for it.There is a specific command defined for projects which has two parameters: name of the project and url of the project. It then prints the ...
user avatar
  • 177
1 vote
1 answer
179 views

Can't get local file link in citation to work

Directory tree . ├── bibliography.bib ├── Makefile ├── reference │   └── test_reference.tex └── test.tex File Contents bibliography.bib @misc{ reference, title={Reference title}, author={...
user avatar
  • 1,382
0 votes
0 answers
97 views

File ended while scanning use of \href

I am really new to LaTeX. I am using elsarticle document class, TeXstudio and BiBdesk to prepare my manuscript. I keep getting "File ended while scanning use of \href. ...FILE PATH/P001-bibtex}&...
user avatar
  • 1
0 votes
1 answer
36 views

Using output from a substring (xstring) conditional within a url (href)

Unable to pass output from a substring conditional into a URL: MWE: \documentclass{memoir} \usepackage{xstring} \usepackage{hyperref} \newcommand{\substring}{% \IfSubStr{% Physics,% Chemistry,% ...
user avatar
0 votes
1 answer
181 views

How to add href{} to caption in figure environment

Can anyone tell me how to add href{} to \caption{} in figure environment? I keep getting TEX capacity exceeded error. My link in href{} contains underscore characters, escaping them doesn't help..
user avatar
1 vote
1 answer
67 views

xelatex, polyglossia, hyperref

Using the following code with the packages hyperref and polyglossia to insert a link into a xelatex document, the link is not clickable, while in other applications as for example the email program it ...
user avatar
1 vote
1 answer
221 views

Link to telephone number "tel:" doesn't work outside of LaTeX editor

I'm making my CV with Overleaf (as an article) and I'm trying to make the telephone number clickable using the tel: protocol. If I click on it in the pdf view inside of Overleaf, then Google Chrome ...
user avatar
  • 105
0 votes
1 answer
36 views

Footer does not show up when including pdfs to document

I am trying to include a footer on each page that would link to the table of contents but this footer ("Contents") does not show up on pages where pdf is inserted. It shows up on pages with ...
user avatar
  • 413
1 vote
0 answers
58 views

Beamer \href not working [closed]

I am having troubles getting the \href to work. Below is the MWE where I am trying to include in the caption of the table on one slide the hyperref to another slide. It looks clickable in the pdf ...
user avatar
  • 309
2 votes
2 answers
145 views

Using \DTLfetch inside a \href

I'm trying to create a new command in LaTeX that creates a Google Map URL pointing to the coordinates associated with the place specified as a parameter in the called command (a sort of "table ...
user avatar
1 vote
0 answers
54 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,...
user avatar
  • 3,816
1 vote
1 answer
106 views

Need not replaced Latex code in href url

In my document for making url to math search website I need to produce urls like this: https://website.xyz/search/?q=%24\frac{\pi r^2}{2}%24 I'm using pylatex and I see that it generates tex code as ...
user avatar
  • 13
1 vote
1 answer
205 views

Accents in file path

I'm trying to link to a file in a folder named Códigos. My minimal code looks like this. \documentclass{article} \usepackage{hyperref} \begin{document} \href{run:./Códigos/test.c}{\...
user avatar
  • 123
1 vote
1 answer
108 views

Fixing hbox overflow by breaking \href?

Similar to the URL problem: Forcing linebreaks in \url and URL latex linebreak My links do cause an hbox overflow. However, I have an \href with a local link. Can I force line breaks at any char there,...
user avatar
  • 920
0 votes
1 answer
72 views

Modifying apalike3 to print DOI with \href

I am trying to modify apalike3.bst (see here) so that instead of printing the DOI number as a URL with hyperlink, it prints the actual DOI number but retains the hyperlink. The original DOI function ...
user avatar
7 votes
3 answers
2k views

\href: broken links due to URL-encoding hash sign (# => %23)

I am trying to use an \href linking to a web URL including an HTML anchor pointer. Hence I am using a hash sign (#) in the URL. For example to link the page https://github.com/latex3/hyperref#bug-...
user avatar
  • 333
1 vote
0 answers
65 views

How to automatically link title and URL in BibTeX?

I am trying to figure out a way to automatically link a title and URL in BibTeX such that the title becomes a hyperlink to the webpage. Currently, my bibliography entries look like this: @article{ ...
user avatar
1 vote
2 answers
183 views

XeLaTeX href fails if accents in the link

This piece of code should create a document with a link to https://fr.wikipedia.org/wiki/Alignement_en_mémoire Instead of that the link goes to https://fr.wikipedia.org/wiki/Alignement_en_mémoire ...
user avatar
1 vote
1 answer
73 views

Beamer hyperref problem

I am using the hyperref package, and here is my code: \documentclass[12pt]{beamer} \usetheme{Boadilla} \usepackage{float} \usepackage{amsmath} \usepackage{pgfpages} \pgfpagesuselayout{resize to}[...
user avatar
  • 1,437
0 votes
1 answer
250 views

! Missing insert. <inserted text> $ .... with \href{...}{...}

I have this in a document: \href{https://en.wikipedia.org/wiki/Something_(something)}{https://en.wikipedia.org/wiki/Something_\(something)} I get multiple errors like this: ! Missing $ inserted." ...
user avatar
  • 163
1 vote
0 answers
1k views

Warning in Package hyperref: /PageLabels entry

I am getting this warning Package hyperref Warning: Rerun to get /PageLabels entry, when I use \href in res.cls. How can I eliminate the warning? Here is an example: \documentclass[line,margin,11pt]...
user avatar
  • 31
1 vote
1 answer
175 views

Hyperlink each reference entry to its corresponding DOI with natbib

I am writting my Bachelor Thesis using Overleaf and I want to hyperlink each references to its corresponding DOI. I am using natibib package with the following commands. \documentclass[12pt]{report} ...
user avatar
1 vote
1 answer
116 views

Link with multiple # does not work properly

In a document I want to do a reference to a specific section of an online documentation. Here is the link: \documentclass{report} \usepackage{hyperref} \begin{document} \href{https://raytracing-...
user avatar
  • 608
1 vote
2 answers
90 views

text display on hyperref package

I have following code in overleaf.com latex project %document class \usepackage[unicode]{hyperref} \begin{document} \href{http://www.cs.unc.edu/~tracker/media/pdf/SIGGRAPH2001_CoursePack_08.pdf} ...
user avatar
2 votes
1 answer
1k views

Difference between \href{xxx.pdf}{} and \href{run:xxx.pdf}{}

What are the differences between these two types of links? \href{xxx.pdf}{My PDF} \href{run:xxx.pdf}{run:My PDF} Both open the same file in Acrobat (but at different zoom levels?). However, in ...
user avatar
0 votes
1 answer
73 views

break an URL in \href command

I would like to break an URL in my source file, using the \href command as follows: \href{http://www.nature.com/authors/policies/ data/data-availability-statements-data-citations.pdf} {data ...
user avatar
  • 512
2 votes
0 answers
58 views

Why do hashtags in \href not work? [duplicate]

\documentclass{article} \usepackage{hyperref} \begin{document} \url{http://mirror.ctan.org/info/latex2e-help-texinfo/latex2e.html#toc-Overview-of-LaTeX-1} \end{document} This code produces a ...
user avatar
3 votes
1 answer
99 views

How to use \href command with \StrSubstitute?

I am facing difficulty to get the outputs First i want to replace a character "_" in the email id called ab_c@email.com for which i used \StrSubstitute{#1}{_}{\textunderscore} and second to get ...
user avatar
  • 3,225
2 votes
1 answer
103 views

Using \href with with argument from a list

I would like to define a command that takes an input, passes through a list to generate another variable and then is fed to \href to give a link. As in the following example: \documentclass[11pt, ...
user avatar
0 votes
0 answers
187 views

\href{url}{text} doesn't open the url in new browser

I have tried to create an url with a text, such that when you click the text, a new browser loads that url. The solution that was offered on this site was the following \href{www.urllink.com}{some ...
user avatar
2 votes
0 answers
442 views

make href in Latex change color when hover above text

Does anyone know how to make a link change color when hover above it in Latex? For example, I have welcome to \href{https://www.google.com}{Google} I want it to appear like normal text (does not have ...
user avatar