# Questions tagged [urls]

{urls} is about handling URLs in (La)TeX documents, commonly by using the \url macro provided by the {url} or {xurl} and {hyperref} packages.

663 questions
Filter by
Sorted by
Tagged with
31 views

### Using URL with apalike style

I'm writing my PhD thesis at this moment. I'm using apalike style since it does not have problems managing articles with many authors (plainnat and IEEEtranN have) but a big drawback is that it does ...
24 views

### includepdf breaks urls when split over multiple lines

Given the following MWE: \documentclass[10pt, a4paper]{article} \usepackage{pdfpages} \begin{document} \includepdf[pages=-]{url.pdf} \end{document} and the pdf url.pdf: and the resulting pdf ...
31 views

### Different formatting so that the URL and DOI number are also displayed

I am currently working on a scientific paper and would like to display the URL and the requested date, as well as further information and, if available, the DOI number (below are examples of what I ...
14 views

### Typeset a path with Windows environment variables in a footnote [duplicate]

I try to display a path including an evironment with: \documentclass{scrreprt} \usepackage{hyperref} \begin{document} Lorem \path{C:\%HOMEPATH%\Documents\} ipsum\footnote{\path{{C:\%HOMEPATH%\...
32 views

### Upload failed: PDF links (URLs) are not allowed. See EDAS FAQ

I tried to upload my paper which is written by Latex to the IEEE conference organized in "https://edas.info/", but gives me this error. \documentclass[conference]{IEEEtran} \...
45 views

### Is there support for geo uri in latex?

Is geo uri supported in latex? are there any packages that support geo uri? Ideally, I want to be able to do this: {\href{geo:37.786971,-122.399677;u=35}{Home}} When user clicks on the link default ...
19 views

### Multi-line URLs are not properly colored in floating captions

With document class amsart, urls are not properly colored when spanning more than one line in figure captions and table captions. I want them colored. The xurl package is not relevant to the bug, but ...
18 views

### literature.bib problems

I'm using a .bib file for my bibliography. It worked just fine til now. Now I wanted to add the following literature: @MANUAL{MaschinellesLernenByFraunHofer, author = {Döbel, I. and Dr. Leis, M. ...
25 views

### hyperref adds “.pdf” to the end of a specific url

Essentially, the command \href of hyperref adds ".pdf" to the url making the link useless, in addition to marking such link as a citation (I guess, from the green border). This is ...
18 views

### Natbib: make title automatically linked to DOIs, URL or ISBN

I have ~300 bibliography items in my thesis and would like to have each of the title to be linked automatically to the available DOIs, URL or ISBN. Well, I can in principle solve this by manually ...
19 views

### Preventing line break at dot in URL

I am using the url package in an article and am wrapping URLs in \url{ ... }. I have a footnote containing a long sentence of text that has the URL \url{https://github.com/moby/moby/blob/master/README....
25 views

### Why the bibliography url does not show in color?

Here is what I wrote \documentclass[12pt, a4paper]{book} \usepackage[colorlinks=true,breaklinks]{hyperref} \usepackage[hyphenbreaks]{breakurl} \usepackage{xcolor} \definecolor{c1}{rgb}{0,0,1} \...
32 views

Currently, I use below code (from StackExchange) to 'linkify' parts of BibTeX entries: FUNCTION {doilink} { duplicate$empty$ { pop$"" } { doi empty$ { skip$} { "\href{... 0answers 30 views ### Allow arbitrary linebreaks in href macros I'm trying to have arbitrary line breaks in text created by Hyperref's \href macro. Actually, I found a solution for the \url macro here, but I don't know how to extend it to \href. A bit of context. ... 1answer 41 views ### how to cite a website without getting an “underfull hbox” warning? I am trying to cite a website but I am getting this message Underfull \hbox (badness 1939) in paragraph at lines 9--11 my citation is @MISC{K&J, author = {k\&J magnetics}, year ... 1answer 63 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,... 1answer 155 views ### Breaking long URLs on Arxiv.org I have long URLs in my references and I want to submit my paper to arxiv.org. They use TexLive 2016. I tried to follow advice at Line breaks of long URLs in biblatex bibliography? URLs in bibliography:... 1answer 21 views ### link of web.archive.org that redirects to link with % characters I am trying to use a code compile-able by both by biblatex (biber) and bibtex but it contains this link in the bibliography: https://web.archive.org/web/20110412120322/http://www.allheadlinenews.com/... 0answers 23 views ### URL links not working from included PDF title page I included a separate PDF page as my main front page for a large LaTeX document. That PDF page was made with LaTeX using the hyperref package, and contains several linked URL elements (source of ... 2answers 44 views ### How to use \url in \fancyhead I have text like the following in my document: \documentclass[12pt,oneside]{article} \usepackage{fancyhdr} \usepackage{url} \usepackage{systeme} \usepackage{hyperref} \setlength{\overfullrule}{0pt} \... 1answer 29 views ### Unable to get break lines in URLs for bibliography I cannot get the URL address in a reference in my document to break. I looked at this question's chosen answer URLs in bibliography: LaTeX not breaking line as expected and it did not work for me. The ... 1answer 20 views ### Unexpected multiple spaces instead of one in figure caption I am facing an issue with image caption when I tried to add a source to it. I don't want the source to show in \listoffigures. The way I found to achieve it, is by adding command \newcommand*{\... 0answers 39 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{ ... 2answers 380 views ### Store URLs in a macro without replaceing # and % How can I store a URL in a macro if the URL has a # and/or a % in it? The MWE below works fine for the first two, but not the third one. Notes: One solution is to replace the # with \string# and ... 1answer 34 views ### Line breaks in non-clickable URls inside itemize-environment? I want to list som URLs within an itemize-environment. I would like to break long URLs into several lines, either anywhere in the link, or at locations I specify. I've tried using the breaklinks ... 1answer 51 views ### Missing$ inserted. <inserted text>

I am getting the following error in LaTeX: ! Missing $inserted. <inserted text>$ l.172 ..._relations/jan-june97/bridges_2-18.html.} I am using \usepackage{url} so not sure why ...
235 views

### Underscore in Doi in bibtex file

In my bibtex, there are url links for DOIs with underscores which are causing compilation errors. Here is the bibtex: @inproceedings{LVR19, author = {Author}, title = {Title}, doi = {https:...
55 views

### macOS problem with line breaks in citation urls - not reproducible with Overleaf [closed]

I have an issue of URLs running out of bounds on macOS in the bibliography like this: I have tested this with the most recent versions of mactex. I have tested both the GUI-Version Version 4.44 (4.44)...
31 views

### bibitem doesn't assume line-break

I just started using thebibliography environment. It is not big deal so I decided to stay with this functionality, without using any .bib file. I am struggling with the following lines : \begin{...
38 views

### Text stretches when citing URL

I am trying to cite a URL, but for some reason it stretches the author and title in a very weird fashion. This is how I include my bibliography: \bibliographystyle{unsrt} \bibliography{biblio.bib} ...
369 views

### Option clash for package url. \urlstyle

options clash for package url here is my small document \documentclass[oneside,mtp]{iiitg} % To add a bookmark in the pdf you can use \pdfbookmark. You can look up its usage % in the hyperref ...
28 views

### How to remove big spaces in a bibliographic entry

As you can see in the reference, there are big spaces in the author names as well was in the URL part. This is what I used. @misc{griffith_nowakowski, title={Powering Medical Ultrasound Imaging}, ...
33 views

### Can a cite of a URL be a clickable link in the PDF it generates?

I want to cite web pages here and there in a math paper. I use TeXShop in a Mac. What does not work is below. Citation \cite{A} \bibliographystyle{amsplain} \begin{thebibliography}{10} \...
58 views

### length of URL link is too long and went beyond the margin of the paper

I wrote the codes for generating references as shown: @incollection{bordes, title = {Translating Embeddings for Modeling Multi-relational Data}, author = {Bordes, Antoine and Usunier, Nicolas and ...
48 views

### URLs with special symbols don't seem to work with TeXShop

I've been using TeXShop for ages, it is my to-go LaTeX editor. When compiling (LaTeX) URLs with special symbols get screwed up hyperlinks, no matter what I try. Not even definining the url outside ...
50 views

### Changin URL display text in citation

I am using hyperref package which automatically loads url package for me and using them to give citation in a document. The standard use of cite+url is, in my understanding, \cite{cite_key} REFERENCE,...
118 views

### Inconsistent URL encoding between macOS's Preview and Adobe Acrobat

I am adding a footnote: \footnote{\url{http://example.org/\#manual}} The hashtag # escaped and success in compile the document and result in a http://example.org/#manual footnote. However, the link ...
34 views

### Printing list of url - define url to display the url in the document and key-text in the list

Related to the topic makeindex - print links sorted by page who derived from Auto generate List of \url usages within document. Everything works as expected but often, I want to display the url in the ...
31 views

### Command \url{} not showing up in command palette Visual Studio Code

In Visual Studio Code, using the LaTeX Workshop extension, you can surround selected text with a command or environment. A hotkey brings up Command Palette and there you can choose the command. This ...
29 views

### I want to remove links which direct us to our browser from my doc. How can do that?

\documentclass[letterpaper,10pt]{article} \usepackage{latexsym} \usepackage[empty]{fullpage} \usepackage{titlesec} \usepackage{marvosym} \usepackage[usenames,dvipsnames]{color} \usepackage{verbatim} \...
36 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} ...
64 views

### Using Biblatex/biber, how to make each whole bibliography line-item a clickable hyperlink?

I recently asked a very similar question here using bibtex and natbib. I got in touch with the journal's typesetters, who has asked me to use the cas-sc.cls file along with biblatex/biber, and pointed ...
79 views

### Removing URLs from Nature style references

I have inserted my references into my file using Mendeley reference manager and want to use Nature style referencing. However, I can't seem to remove the URLs which appear in the references. When I ...
420 views

### When using elsarticle.cls, how to make each bibliography item a clickable hyperlink?

I intend to submit a manuscript to the Journal of Computational Physics by Elsevier. Although no bibliography formatting requirements have been explicitly specified by the publisher for the initial ...
29 views

### Why do clickable boxes in hyperref urls in footnotes which are split across multiple pages include the intermediate pages?

Consider the following code: \documentclass{article} \usepackage{lipsum} \usepackage{hyperref} \newcommand{\veryn}[1]{\ifnum\numexpr#1 > 0 very/\veryn{#1-1}% \fi } \edef\foo{\noexpand\url{this/...
57 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 ...
20 views

### Undefined control sequence caused by citations when using hyperref [duplicate]

I am relatively new to LaTeX and most of my answers have been solved with some quick googling, but this specific problem has left me scratching my head with its specificity. I am writing a paper and ...
37 views

### Defining a customized command to break long word with some special character

I want to break a long word to the next line in a 2-columns acmart template. The word is Sample_Super.Very.Uber.Long.Word. Below is the sample on Overleaf: \documentclass[sigconf]{acmart} \usepackage[...