Questions tagged [href]
The href tag has no usage guidance.
84
questions
0
votes
0
answers
29
views
pdf latex auto open url or hyperlink
This example is latex, a line code using automatic. Did not find any related answers about this
\href{https://google.com} {autopen}
How to open auto hyperlink via pdf latex. Like opening the pdf, the ...
1
vote
1
answer
48
views
Hyperlink references to google scholar profiles do not work, using \href?
Hyperlink references to google scholar profiles do not work, using \href
\href{https://scholar.google.com/citations?user=qc6CJjYAAAAJ&hl}{Albert Einstein}
Produces:
hl## Albert Einstein
Not a ...
0
votes
0
answers
24
views
How to prevent extra space around period in url when using \nolinkurl with package hyperref
When using the hyperref package for web links, I have defined this command:
\newcommand{\hrefbjgen}[2]{\href{#1}{\nolinkurl{#2}}}
which works well enough providing appropriate line breaks on long ...
0
votes
0
answers
16
views
\href links do not work when the pdf is imported into another latex document
I am creating a cover_letter.pdf file using Latex. In the cover letter, I need to create a hyperlink to a website.
\href{https://www.some-website.com}{\textbf{My text}}
the above command works fine ...
0
votes
1
answer
61
views
`\nolinkurl` broken when there are accents in it's argument in recent versions of LaTeX or hyperref (+ugly display with T1 encoding)
It is common on French URLs to have accents (because French words have accents). The probably most known site that uses these possibility to not restrict URL to ASCII characters is Wikipedia, but also ...
3
votes
2
answers
88
views
Why do some links break “href{…}{…}” in Beamer documentclass?
Consider the following MWE (borrowed from this question):
\documentclass{beamer}
\begin{document}
\begin{frame}
\href{http://tex.stackexchange.com/q/20800/5701}{Link}
\end{frame}
\end{document}
...
0
votes
0
answers
34
views
Link to local html file
I am trying to link to a local html file but nothing has worked.
I have tried:
\href{file:path_to_file}{File} or \href{run:path_to_file}{File}: does not open since preview/adobe does not recognize ...
5
votes
1
answer
81
views
ConTeXt: Macro within URLs
Background
URLs are translated from Markdown into document variables that are meant to be typeset as clickable hyperlinks.
Problem
ConTeXt uses url() to typeset the URL verbatim. Since the URL is a ...
0
votes
1
answer
88
views
define a command which does not parse the input
I would like to define a command which takes two arguments and generates a link to a webpage:
\newcommand{\urltocode}[2]{...}
The problem is, however, when I use \urltocode{foo}{bar}, if foo contains ...
1
vote
0
answers
181
views
Personal knowledge base and LaTex
I have two personal knowledge bases (PKB). One is latex which I used to mainly take lecture notes such as linear algebra or algorithms. Another is logseq which I used to take notes of research papers, ...
0
votes
0
answers
26
views
How can I use hyperref with particular color urls in one section?
I want to change the color of my URLs only for a particular section in my report. I assume this may need a \newcommand to modify or override \href?
I found a similar question here -> How can I ...
2
votes
1
answer
53
views
\verb in \href with $ and | symbol
I have a pattern as follows
\href{https://tex.stackexchange.com/}{\verb|stackexchange.com $1|}
\verb|stackexchange.com $1|
the generated pdf is:
what I want is stackexchange.com $1. So what can I ...
1
vote
1
answer
34
views
\href in printable version
I'm ultimating my thesis and I need two different version: one printable and one digital. The thesis contains some \hrefs that of course are lost when I print the document. I would like to know if ...
2
votes
0
answers
27
views
Two consecutive hash caracters in URL/href in LaTeX produce incomplete link adress [duplicate]
I'm trying to put a link to a public channel on matrix.org into my LaTeX beamer presentation. The link has the form https://matrix.org/#/#mychannel:matrix.org.
However I observe a strange behavior ...
0
votes
1
answer
31
views
Is there a way to cleanly write urls in the argument of \href?
I have a quite long url that I want to include in-text in a document of mine and would like to avoid having it in the middle of my writing. Is there a way to make this into a simple reference to the ...
0
votes
0
answers
21
views
how to make a description box on click on ay word ( pop up window or box ) and that should disappear on click it again in latex not in beamer class?
\documentclass[twoside]{article} % Note: uses twoside option
\usepackage[a4paper, marginparwidth=75pt, total={10cm, 10cm}]{geometry} % To create a small page
\usepackage{hyperref} % To use the \url ...
0
votes
1
answer
37
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 ...
3
votes
2
answers
97
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[...
2
votes
1
answer
325
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}...
0
votes
1
answer
68
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 ...
0
votes
1
answer
88
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 ...
0
votes
1
answer
60
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]
\...
0
votes
1
answer
83
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....
1
vote
0
answers
280
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/...
1
vote
1
answer
48
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 ...
0
votes
0
answers
15
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 ...
0
votes
0
answers
33
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 ...
2
votes
1
answer
154
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 ...
0
votes
1
answer
86
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 ...
1
vote
1
answer
100
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 ...
5
votes
3
answers
235
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 ...
2
votes
1
answer
76
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 ...
2
votes
1
answer
112
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 ...
0
votes
1
answer
275
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 ...
1
vote
1
answer
364
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={...
0
votes
0
answers
164
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}&...
0
votes
1
answer
48
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,%
...
0
votes
1
answer
385
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..
1
vote
1
answer
77
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 ...
1
vote
1
answer
418
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 ...
0
votes
1
answer
64
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 ...
1
vote
0
answers
97
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 ...
2
votes
2
answers
205
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 ...
2
votes
0
answers
62
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,...
1
vote
1
answer
143
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 ...
1
vote
1
answer
277
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}{\...
1
vote
1
answer
153
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,...
0
votes
1
answer
98
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 ...
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-...
1
vote
0
answers
116
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{
...