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.
793
questions
1
vote
1
answer
33
views
\clearfield{url} not working anymore after custom citecommand using biblatex
In order to neaten up the footnotes of my references, I used the code provided in this post.
Before, I was just using \footfullcite{} and additionally \AtEveryCitekey{\clearfield{url}}, because I felt ...
1
vote
0
answers
18
views
Missing $ inserted issue bibliography LLNCS template
I'm getting a weird missing $ error in my bibliography
\documentclass[runningheads]{llncs}
\usepackage{hyperref}
\usepackage{cleveref}
\begin{document}
%
\title{adsnvuadsipnvewjl\thanks{Supported by ...
1
vote
2
answers
33
views
Hash in an url inputed to \href inside \cite
I'm using biblatex and hyperref. If I type \href{<url>}{<name>} where the url contains a #, I get the desired result, but if I type \cite[\href{<url>}{<name>}]{<label>} (...
0
votes
0
answers
32
views
trouble with \url and line breaks
Listing picture credits in a book. Many of them are websites, with long addresses.
Here's one:
\figc{II056}: Victoria and Albert Museum.\url{https://collections.vam.ac.uk/item/O70273/model-for-the-...
2
votes
2
answers
52
views
Long url doesn’t break in theorem optional argument (under amsthm, hyperref, xurl)
In most situations, the xurl package (presented here) ensures that long urls break across lines appropriately. However, inside the optional “caption” argument of a theorem, long urls stay unbroken, as ...
0
votes
0
answers
25
views
Suffixing a URL with that domain's favicon (custom external link symbol)
In an existing thread, it is shown how to suffix a hyperref URL with the generic "external URL" symbol. In another thread, the top answer shows how to use FontAwesome for inserting the ...
1
vote
0
answers
42
views
\bibliographystyle{quantum} has problems breaking URLs
I am having trouble breaking a specific URL in a bibliography styled as:
\bibliographystyle{quantum}
Here is a minimal example that highlights the problem:
\documentclass[twocolumn]{article}
\...
0
votes
0
answers
37
views
"Issue with Line Breaks in URLs within lstlisting Environment
The line breaks within lstlisting environments do not function properly for URLs, even though breaklines and breakatwhitespace are both set to true. The URLs are not being broken, and the text exceeds ...
0
votes
0
answers
19
views
Website address exceeds the margin of the article [duplicate]
When I use cas.refs.bib to insert my references with sites (url). The website address goes beyond the margin. How do I correct this?
enter image description here
Look at my code:
@misc{EPE17,
...
0
votes
1
answer
41
views
Manually breaking URL in bibliography adds ASCII characters [duplicate]
I'm trying to break a URL in the bibliography. I used \\, thinking that it would solve the problem but while it broke the URL it also added the ASCII code for \.
\documentclass{report}
\usepackage{...
0
votes
0
answers
110
views
Are hyperlinks broken in Texifier using TexpadTeX as typesetter?
I don't seem to be able to typeset hyperlinks correctly using Texifier (formerly Texpad) with TexpadTeX as Typesetter.
The following MWE reproduces the behaviour:
\documentclass{article}
\usepackage{...
0
votes
1
answer
37
views
How to replace multiple URLs for one bibtex reference with url symbols
I am using multiple url links in my bib source file and at the same time I would like to replace them with link symbol (e.g., \faLink from fontawesome5 in my example).
I insert the character directly ...
3
votes
1
answer
98
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 ...
0
votes
0
answers
42
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 ...
0
votes
1
answer
36
views
obeyspaces for \href
I am trying to link to local files in the pdf using absolute file path which contains spaces (this cannot be avoided since the files are being stored in iCloud whose local file path already contains a ...
0
votes
0
answers
130
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 ...
1
vote
1
answer
63
views
Why are my biblography/references not showing the URLs
I am using overleaf to write my document. Here is my pre-amble:
\documentclass[12pt]{report}
\usepackage[english]{babel}
\usepackage{appendix}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\...
1
vote
0
answers
28
views
\url with \ldots
Using \url from \usepackage{hyperref}.
Trying to do \url{\dots/path/to/somewhere}, pdflatex complains
! Undefined control sequence.
<argument> ...tect \global \let \OT1\textellipsis
...
2
votes
0
answers
109
views
Underlining Command preventing line breaks
Based on a code by Alex Chan and help from Jinwen here, I made a custom underlining command with nice results: as you can see on the pictures (here and in Jinwen's post edited by me), the underline ...
1
vote
0
answers
36
views
Linebreaking an URL without any hyphens - only letters
Does anyone know how I can make a linebreak in my LaTeX output so that the link doesn't go "out of bounds"... There aren't any hyphens so I can't make any of the xurl, url, hyperref work. ...
0
votes
0
answers
55
views
How to use Chinese characters in URLs?
If the URLs contain Chinese characters, the tex will output error.
I used PdfLaTeX. Here is my situation.
\begin{CJK}{UTF8}{gbsn}
\begin{thebibliography}{99}
\bibitem{ref1} \href{https://zh.wikipedia....
1
vote
1
answer
46
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}
% ...
0
votes
0
answers
52
views
hyperref doesn't open URLs
when I use \url{www.apple.com} for instance, the url becomes clickable but if i click it i get a promt saying "Program can not be opened, -50"
This is my code:
\documentclass[11pt,a4paper]{...
3
votes
2
answers
399
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 \...
3
votes
1
answer
39
views
No URL line break in description
there are several ways to make a line break in URLs. But does somebody know how to break the URL in this example? Thanks, Harald
\documentclass[
10pt,
twoside,
toc=listofnumbered,
...
2
votes
1
answer
29
views
Interaction with beamer pause and urlbordercolor of hyperref results in a graphical glitch
I noticed a weird interaction between pdfborderstyle and the pause command of beamer.
How I can get rid of it?
This code will produce a graphical glitch:
\documentclass{beamer}
% suppresses all ...
2
votes
1
answer
136
views
Using a tilde in a .bib file
We have a bibliographic entry which is like this:
@misc{entry,
title={Some Title},
year={2023},
url="https://website.com/~something/something.pdf"
}
The problem is that the ...
2
votes
1
answer
46
views
How to write something in Latex Beamer Ilmenau dark blue top bar
I'm trying to make a latex presentation using beamer and ilmenau. I wanna include an image and have its source in the dark blue bar below the very dark blue bar that shows how far into the ...
0
votes
0
answers
67
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 ...
3
votes
1
answer
87
views
How to break URL links that include long alphanumerical strings?
How to break url links that include long alphanumerical strings?
Here an example:
\documentclass[12pt,a4paper,twoside]{article}
\begin{filecontents}[overwrite]{ref.bib}
@misc{Reuters_2023,
author = ...
1
vote
0
answers
98
views
Prevent an unnecessary empty line between references using apacite
So I had a seemingly typical problem: I wanted to put URLs in my references, which were quite long. Let me provide you an MWE:
% citations.bib
@incollection{levi1973where,
author={Levi, J. N.},
...
2
votes
1
answer
74
views
URL removes Slashed Zero
I am using the fontspec and xurl packages. I have found that the command \url removes the Numbers=SlashedZero OpenType feature. Obviously, I want the Slashed Zero to work, even when typesetting urls.
...
0
votes
0
answers
40
views
Is there a way to print DOI or URL inline with natbib?
I'm writing a paper that summarizes a dataset, and how to access and use it. In the same way that I might like to use \citeauthor or \citeyear, I'd like to have a couple of bibliography entries where ...
-1
votes
1
answer
75
views
Why is it impossible to click on the entire URL?
Its only possible to click on the first piece of the link:
\documentclass[a4paper,
pointlessnumbers,
%draft,
parskip=half,
automark
]{scrartcl}
\setlength{\parindent}{...
-1
votes
1
answer
57
views
Why are the URL's not displayed when I run the pdf?
I can't find the mistake here:
\documentclass[a4paper,
pointlessnumbers,
%draft,
parskip=half,
automark
]{scrartcl}
\setlength{\parindent}{0pt}
\usepackage[a4paper, left=2.2cm, right=2.2cm, ...
0
votes
0
answers
30
views
Underscore Not showing properly in the url of IEEE Conference Overleaf?
I have a below google drive URL containing underscore to be put in IEEE conference format of overleaf.
https://drive.google.com/drive/folders/1uezL0AEfDEGU0px8joBHJHpq2qezCHdv?usp=share_link
I have ...
0
votes
0
answers
21
views
Reference alignment problem with Overleaf [duplicate]
I am using the LNCS template from overleaf for my seminar, and I have an alignment problem with my references. I use a mybibliography.bib file to store my exported references. The references are ...
3
votes
2
answers
231
views
How can I have automatic line-breaking for URL containing Unicode characters?
Some URLs include unicode characters. For example https://en.wikipedia.org/wiki/Durbin–Watson_statistics. All (most?) webbrowsers are able to handle such URLs but some PDF viewers (like Mac's Preview ...
5
votes
2
answers
273
views
Allow line break at @ in email with xurl package LaTeX
I need to allow line breaks in email addresses in LaTeX. I used to do that using the url package, and the adresses broke on the @, which was acceptable.
I recently switched to using xurl for ...
0
votes
0
answers
77
views
Automatic Hyperlinking of Journal Name in Bibtex
I'm trying to solve a problem that I am yet to find a simple elegant solution for in all the posts in this forum. In short, I want the bibliography of a thesis to have clickable hyperlinks on the name ...
0
votes
1
answer
88
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 ...
2
votes
2
answers
88
views
biblatex: citefield + url + href (TeX capacity exceeded, sorry [input stack size=10000].)
Is there a "off-the-shelf" way to use the url of a bibliography entry in the \href{}
command using the \citefield{}{} command, for example \href{\citefield{ctan}{url}}{link}?
The MWE below ...
0
votes
1
answer
25
views
Consistency in obeyspaces option for url package
I'm trying to make the url package use consistent spacing for the \url{} and \path{} commands, both in regular text and in footnotes. For this I use the obeyspaces option provided by the url package. ...
1
vote
0
answers
52
views
My link does not work despite loading URL package
I wanted to insert the following link in my footnote (it works here below but not in my latex-compiled PDF):
https://ec.europa.eu/eurostat/cache/metadata/EN/migr_eil_esqrs_de.htm
Loaded in the ...
0
votes
1
answer
85
views
urldate not working
I need to display the date of access for the websites cited in my dissertation. I've used urldate = {} , but it does not actually display any date. I only get the date printed when I use date = {}.
...
0
votes
0
answers
357
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 ...
1
vote
0
answers
29
views
How to save \url and special characters into a token list?
I'm trying to fix zepinglee/citeproc-lua#30 which can be simplified as follows. The .bbl file generated by citeproc-lua with citations and bibliography in it and it is read by LaTeX at \begin{document}...
2
votes
1
answer
190
views
LaTeX URL package, how can I display German umlaute in beamerclass
I wanna print the following link (https://commons.wikimedia.org/wiki/File:Eidgenössische_Abstimmung_über_die_Verminderung_von_Treibhausgasemissionen_2021.svg) in a latex beamer presentation.
Here is ...
0
votes
1
answer
50
views
How change the date format of url field of biblatex package?
I need to print, for instance, 15 October 2022 and not the 15th October 2022. I found a similar question old_solution where it is reported to use the australian language since it formats the dates ...
5
votes
1
answer
105
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 ...