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.

Filter by
Sorted by
Tagged with
1
vote
1answer
26 views

Special characters in DOI leading to invalid URLs

This is related to this question Special character in url link but is specific to DOIs and does not involve unicode characters. I have to use strange DOIs like this 10.1175/1520-0485(1986)016<1929:...
3
votes
1answer
33 views

longTable, enumerate and URL

I am trying to generate a complicated table, this table contains some links and I use also the enumerate environment within the tabular environment, I don't know if this is allowed. My code produced ...
1
vote
1answer
31 views

How can I pass a URL containing # to a macro without throwing an error?

I have frequent need to use URLs with # characters in them, and the hashtag causes compilation errors of course. To date, I have used two ways to get around this. One is to manually escape them (...
0
votes
0answers
26 views

Latex- url link as a variable [closed]

I am trying to insert a link like this: https://www.bing.com/search?q=latex%20&qs=n&form=QBRE&=Search%20%7B0%7D%20for%20%7B1%7D&=Search%20work%20for%20%7B0%7D&msbsrank=6_9_File_2&...
4
votes
1answer
18 views

Problem when inserting an url inside lstlisting and compiling with make4ht

The following examples shows an error when an URL is inserted inside a lstlisting caption. \documentclass{article} \usepackage{listings} \usepackage{hyperref} \begin{document} \begin{lstlisting}[...
1
vote
0answers
28 views

Ideal BibTeX style for urls and case sensitivity

I have several websites that I want to cite as well as wanting dois/arXiv addresses be clickable. I also want to retain the case sensitivity that I enter into my BibTeX entries. I've tried using \...
2
votes
1answer
81 views

How does an Elsevier article have all-hyperlink references?

I am going to submit a paper in an Elsevier journal. However, I notice that some of the references in a published paper have hyperlinks. Is it put by the journal or should I put it manually? If I ...
2
votes
1answer
77 views

Hyperlink with # in it

I'm trying to insert a link which contains #, but i'm getting an error due to it. I've used \url and \href, but it does not work. \usepackage{hyperref} \section{Introduction} En la tabla aparecen ...
0
votes
1answer
39 views

How to type & and # inside ///texttt{}?

I am citing manually in TexStudio and trying to add a link to the patent I cited in my thesis. I get by adding this line: \\\texttt{https://depatisnet.dpma.de/DepatisNet/depatisnet?action=bibdat{\&...
1
vote
1answer
36 views

How to make a href link open multiple pages

I've already found a solution to open "only" two links, see How to make a link open multiple pages when clicked Is there a possibilty to open 3 and more hyperlinks e.g. https://example1.com, ...
0
votes
0answers
15 views

How to add display text for a URL? [duplicate]

In markdown, one can [Well-maintained BibTeX Databases](https://tex.stackexchange.com/q/131917/129388) to get Well-maintained BibTeX Databases . Is there something similar in Latex? I don't want it ...
0
votes
0answers
23 views

URL links in itemize environment

I am adding some url directions in an itemize environment, but the result is not the expected, and there are several issues with the text width. I don´t know how to fix it (if it is possible). Here ...
1
vote
1answer
33 views

Why the biblography is not formatted?

I have a problem with the bibliography. First position, I don't know why is goes off the page, and I have a right margin of 2 centimeters set. In the second position, under the title 'What is a botnet ...
0
votes
1answer
38 views

How to insert a vertically centered tilde into a URL?

I need to insert a vertically centered tilde into a URL in text mode (not inside the \url or \href commands). I've tried the solution proposed here but I can't get it to work. Any ideas? Here is my ...
1
vote
1answer
68 views

How to cite a youtube video (with URL when there are percentage signs)?

I would like to cite this youtube video https://www.youtube.com/watch?v=zo46TEp6FB8&ab_channel=InstitutdesHautes%C3%89tudesScientifiques%28IH%C3%89S%29 in an overleaf file. I'm not sure how this ...
0
votes
0answers
41 views

\section{\large \protect{\footnote{\url{}}}} => ! File ended while scanning use of \@@BOOKMARK.<inserted text>\par \begin{document}

When I run the code for the first time(or after cleaning generated files), it works. But after that, when I run it again, with the same exact code, it spews out the error message saying: ! File ended ...
2
votes
1answer
60 views

Lining figures in math mode, but oldstyle figures in URLs

Basically, I want to achieve the same as for instance in this question: Changing the math-mode figures to “old style”. But not in general math, only for URLs, which are set in math mode (in the manual,...
1
vote
1answer
39 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 ...
0
votes
1answer
28 views

lstlisting url broken by line wrapping

I have a URL which get's broken by the line break. Ideally I'd like it to be possible to copy the whole wget command and paste it into a terminal. Unfortunately I am ending with an overflowing box and ...
3
votes
2answers
99 views

How can I use \csname and \endcsname in the argument of \urldef?

Donald Arsenau's url package provides the macro \urldef, which is very handy when one needs to typeset a URL string in a footnote or endnote. For instance, \documentclass{article} \usepackage{url} ...
0
votes
0answers
16 views

Change style of lettering of URL in Bibliography

how can change the style of lettering of the URL in the bibliography to the style I have in my document? Here my MWE. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{...
1
vote
1answer
126 views

How to adjust URLs in the reference while using two column format?

I have written an article in two columns format and used bibtex to make the list of references. I needed to use the Harvard style. The URLs got all messed up. How can I fix this? I saw some posts ...
0
votes
0answers
32 views

URLs on main page in article class

I want to include URLs on my main page in the article class. I am using the following packages \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \PassOptionsToPackage{hyphens}{url} \usepackage[...
1
vote
1answer
52 views

'%' symbols in a URL string interpreted as comment characters

I want to add an online link in the bibliography section. @online{xx, author = {xy}, title={yz}, url={https://en.wikipedia.org/wiki/Convolution#:~:text=In%20mathematics%20(in%20particular%2C%...
2
votes
1answer
25 views

How do I use the following reference without it outcommenting the link?

I am quite new to overleaf/latex and have run into a problem. I want to cite a link which containt % and this outcomments the link is there anyway to get around this? code: @book{web:...
2
votes
2answers
51 views

Forbid BibLaTeX to break URLs at hyphens

By default, BibLaTeX will happily break lines at hyphens in URLs: \documentclass{article} \begin{filecontents}{main.bib} @online{entry, title = {Title}, subtitle = {Subtitle}, author = {Doe, ...
1
vote
0answers
20 views

Footnote URL linking entire page

I'm using \footcite{example} citations in my paper. When the citations produces a URL that starts on one PDF page and then finishes in the following page, it highlights all words on the in-between ...
0
votes
0answers
22 views

Displaying cyrillic letters in url inside bibliography [duplicate]

I want to cite a url that contains cyrillic letters: wikipedia.org/wiki/Апории_Зенона However it is displayed as Is there any way to display it as https://ru.wikipedia.org/wiki/Апории_Зенона? I am ...
0
votes
0answers
56 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 ...
1
vote
0answers
33 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 ...
1
vote
1answer
60 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 ...
1
vote
0answers
18 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%\...
1
vote
0answers
218 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} \...
0
votes
1answer
50 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 ...
2
votes
1answer
21 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 ...
1
vote
1answer
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. ...
2
votes
1answer
28 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 ...
0
votes
0answers
23 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 ...
0
votes
0answers
24 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....
1
vote
1answer
53 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} \...
1
vote
0answers
77 views

BibTeX code to create hyperlinks from either DOI or URL

Currently, I use below code (from StackExchange) to 'linkify' parts of BibTeX entries: FUNCTION {doilink} { duplicate$ empty$ { pop$ "" } { doi empty$ { skip$ } { "\href{...
1
vote
0answers
35 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. ...
1
vote
1answer
71 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 ...
1
vote
1answer
76 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,...
4
votes
1answer
369 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:...
0
votes
1answer
49 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/...
1
vote
0answers
31 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 ...
0
votes
2answers
48 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} \...
1
vote
1answer
34 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 ...
1
vote
1answer
21 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*{\...

1
2 3 4 5
14