Skip to main content

Questions tagged [href]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
38 views

Link produced by href taking a command as first argument is not working "as I want"

I am trying to define a command that takes a bib key, gets its title, author, and DOI, and makes a hyperlink in which the link is the DOI address and the text shown is the paper title. I need this to ...
mikiman's user avatar
  • 23
1 vote
0 answers
16 views

\href inside bib xref causes "TeX capacity exceeded, sorry"

I am using amsrefs with hyperref to create a bibliography. I want to typeset a link using \href. This works fine in most situations, but it causes an error if \href is used in a \bib* entry that is ...
Dale's user avatar
  • 299
1 vote
1 answer
35 views

show text link side-by-side with the figure

I want to show the link text (e.g., googlescholar/user.com) as a hyperlink, side-by-side with an icon (figure). I used the below method, but it only show a figure or a text. Can i amend this approach ...
user31690's user avatar
0 votes
0 answers
39 views

How to have clickable text that opens a pdf with href

This is the latex document I have: \documentclass{article} \usepackage{graphicx} \usepackage{titlesec} \usepackage{hyperref} \begin{document} \href{run:./G.pdf}{Clickable link 1} \href{run:./G}{...
IV-301's user avatar
  • 43
0 votes
1 answer
49 views

Link to sections/labels from independent PDF file

I have a LaTeX document with sections/labels, and I want to create links to these from a SVG image. This SVG file is created in Inkscape and exported to PDF, and I'm not satisfied with the export ...
telephone's user avatar
  • 127
0 votes
1 answer
40 views

href creates footnote instead of clickable link

I am using the hyperref package in my document. I would like to make a link to a webpage. However, this always creates a footnote. This is probably due to a package conflict, but cannot manage to find ...
Nick Sauerwein's user avatar
1 vote
3 answers
86 views

Hyperref only one box around text with line break and not two boxes in twentysecondcv

I use the hyperref package and the corresponding \href{}{} command and would like to adjust the box which is drawn around the text. In more detail, in the picture below you can see a link for address, ...
m0byn's user avatar
  • 27
1 vote
1 answer
54 views

Access specific sections of link [closed]

I want to access this site say, https://en.wikipedia.org/wiki/Cricket#History Now I want the specific section 'History' to be shown as soon as I open the link In overleaf I did this, \href{https://en....
Manas 's user avatar
  • 11
0 votes
0 answers
92 views

How to open linked pdf file in full screen in beamer?

The following is the code \documentclass{beamer} \mode<presentation> {\usetheme{Madrid}} \begin{document} \begin{frame} \frametitle{Test} \href[pdfnewwindow]{sample.pdf}{try} \end{frame} \end{...
user61681's user avatar
  • 1,769
0 votes
0 answers
20 views

Cite a reference with the possibility of opening an internal pdf file at the right page number

I want to cite a reference in my document with the possibility of opening this reference, which is stored as a pdf file in my directory, on the right page. It should look something like this: [1, ...
ANT Learner's user avatar
0 votes
0 answers
125 views

\textcolor not changing the href text color

I have set the href color for the whole document to blue, href text color of top part of document has indeed changed but I have added two minipage in the document, and href text color is not taking ...
A. Vats's user avatar
  • 101
3 votes
1 answer
190 views

using xurl package with \href and a long \url within the longtable package

I am having trouble getting the href's to automatically wrap at the appropriate spot within my \longtable. I tried using the \ltablex package, but that made no difference. Any guidance is much ...
Steven's user avatar
  • 337
0 votes
0 answers
45 views

Wrapping long url hyperlinks that contain no spaces within a table [duplicate]

For some reason, I have been unable to wrap an href within a table using the solutions presented here: Wrapping long lines that contain no spaces And, here: Forcing linebreaks in \url Any suggestions ...
Steven's user avatar
  • 337
1 vote
1 answer
83 views

Open an external PDF at the specific section in a new tab

I want to hyperlink to an external pdf file at the specific section. I have a solution to open the file on a specific page but not at the specific section. Next problem Im facing is that every time ...
Žan's user avatar
  • 23
0 votes
0 answers
61 views

Tikz button CLICK color and CLICK shape in Adobe Reader

I would like to control the click color and click shape of the following tikz button with rounded corners that I created. When I download the PDF (generated by pdflatex) into Adobe Reader and click on ...
Steven's user avatar
  • 337
1 vote
0 answers
61 views

Matching Shape of Invisible/Ghost Hyperlink/Href to ANY Tikz Shape

I am new to LateX. I am trying to use an example found here: Making TikZ nodes hyperlinkable to create a button with a hyperlink. I am wondering if anyone could tell me how to allow for rounded ...
Steven's user avatar
  • 337
0 votes
0 answers
357 views

Modify the \url to open links in new tabs

I am in LaTeX, and I just wrote this line: \renewcommand*{\url}[1]{\href{#1}{\nolinkurl{#1}}}. But, it does not modify the behavior's of all my \url usages across the document, why? How can I make all ...
Alix Blaine's user avatar
0 votes
0 answers
84 views

Backup slides with `beammerappendixnote` and `\pause` breaks hyperlinks

I'm using \pause-steps, and beamerappendixnote to provide links to appendix slides. The appendix slide gets linked after the first \pause: \documentclass[20pt]{beamer} \usepackage{beamerappendixnote} \...
sheß's user avatar
  • 3,692
0 votes
0 answers
59 views

How to hyper link paper name, vol, issue, year in biblatex as shown in image below?

@article{PhysRevLett.13.138, title = {Evidence for the $2\ensuremath{\pi}$ Decay of the $K_{2}^{0}$ Meson}, author = {Christenson, J. H. and Cronin, J. W. and Fitch, V. L. and Turlay, R.}, ...
Twinklestar's user avatar
1 vote
1 answer
73 views

\href urlbordercolor not visible in pdf

I am trying to put a colored border around links but have not been successful so far. Here is a minimal example: \documentclass[ 12pt, titlepage]{article} \usepackage{xcolor} \usepackage{hyperref} % ...
EconCat's user avatar
  • 15
3 votes
2 answers
1k views

How do I insert this url in a footnote

https://www.bcb.gov.br/acessoinformacao/legado?url=https:%2F%2Fwww4.bcb.gov.br%2Fglossario.asp%3FDefinicao%3D1676%26idioma%3DP%26idpai%3DGLOSSARIO I've tried href, hyperref, URL, or none at all, just \...
Alexander's user avatar
0 votes
0 answers
73 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 ...
martin's user avatar
  • 9
1 vote
1 answer
623 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 ...
Martin David Grunnill's user avatar
1 vote
2 answers
143 views

How can I get `\texttt` in `\href` to work with Springer Nature's sn-jnl class?

Using version 2019/11/18 of Springer's sn-jnl.cls template (archived as a gist here), I get the following: \documentclass{sn-jnl} \usepackage{xparse} \NewDocumentCommand{\githublink}{m m o}{\href{}{\...
Jason Gross's user avatar
  • 2,169
0 votes
1 answer
120 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 ...
quark67's user avatar
  • 4,231
3 votes
2 answers
158 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} ...
EoDmnFOr3q's user avatar
  • 2,343
0 votes
0 answers
552 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 ...
cccfran's user avatar
  • 35
5 votes
1 answer
123 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 ...
Dave Jarvis's user avatar
0 votes
1 answer
189 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 ...
Jason Hu's user avatar
  • 199
1 vote
0 answers
694 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, ...
dragon_and_dracula's user avatar
0 votes
0 answers
31 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 ...
Mad's user avatar
  • 143
3 votes
1 answer
159 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 ...
Qingwei Li's user avatar
1 vote
1 answer
52 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 ...
L.A.'s user avatar
  • 113
2 votes
0 answers
29 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 ...
OLF's user avatar
  • 21
0 votes
1 answer
35 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 ...
H. Pecoraro 's user avatar
0 votes
0 answers
31 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 ...
ram's user avatar
  • 1
0 votes
1 answer
259 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 ...
Stamatis Tzanos's user avatar
3 votes
2 answers
120 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[...
Jake's user avatar
  • 33
2 votes
1 answer
810 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}...
sesodesa's user avatar
  • 783
0 votes
1 answer
104 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 ...
LJKS's user avatar
  • 133
0 votes
1 answer
188 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 ...
Giuseppe's user avatar
  • 164
0 votes
1 answer
76 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] \...
user32882's user avatar
  • 1,594
0 votes
1 answer
227 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....
robmiller505's user avatar
1 vote
0 answers
619 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/...
Zack's user avatar
  • 111
1 vote
1 answer
60 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 ...
Evan Gertis's user avatar
0 votes
0 answers
45 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 ...
Doug Ransom's user avatar
0 votes
0 answers
76 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 ...
s6hebern's user avatar
  • 317
2 votes
1 answer
389 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 ...
Steven DeVerteuil's user avatar
0 votes
1 answer
122 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 ...
Mykaelle 's user avatar
1 vote
1 answer
145 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 ...
ralphS16's user avatar