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.

87 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
2k views

How to produce bibliography hyperlinking journal title with url?

BibTeX exported from scientific journals usually have all the informations you need to cite them; one of them is the url. For saving space i would prefer to hyperlink the name of the journal rather ...
4
votes
0answers
2k views

URL with Chinese Characters

I cannot figure out how to include a url with Chinese characters in my tex file. This is the URL: https://zh.wikipedia.org/wiki/中国大陆报纸列表. (Sorry, apparently I need at least 10 reputation points to ...
4
votes
0answers
373 views

Use \url with pipe argument delimiter - in hyperref?

Basically, I have a bibtex field like this, where bibtex concatenation with # is used with a bibtex string variable: @String {mylink = "http://tex.stackexchange.com"} ... note = "At link " # mylink, ...
3
votes
0answers
30 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/...
3
votes
0answers
708 views

Pandoc Latex: Overflow in Longtable

I use pandoc with some custom LaTeX template to generate a PDF Table. Hence, I cannot easily influence how Pandoc generates the table code, but instead I can change the configuration in the Latex ...
3
votes
0answers
179 views

Wrong character width when typesetting url with hyperref and a FakeStretch-ed font

I just found out that hyperref does not really take the FakeStretch feature of fontspec into account : EDIT This is actually a problem with the url package, which is used by hyperref to typeset urls. ...
3
votes
0answers
365 views

\DeclareUrlCommand with optional second argument

Creating a hyperlinked DOI is possible: \documentclass{article} \usepackage{hyperref} \DeclareUrlCommand\adoi{\def\UrlLeft##1\UrlRight{\href{http://dx.doi.org/##1}{DOI:##1}}}% \begin{document} \adoi{...
3
votes
0answers
352 views

Make hyperlinks clickable in a DVI converted to PDF

I have a legacy system that "generates" documentation for one of our systems. The resulting DVI file is then converted to PDF using dvipdfm. The DVI contains URLs, but those aren't clickable in the ...
3
votes
0answers
319 views

Using UTF8 inside \path from the url package

Whereas there are certain rules for how a URL is to be formed (where non ascii letters are not really allowed). How about \path? I happend to try \path{æøå}, saved in latin1 this gives the expected ...
3
votes
0answers
118 views

Space is sometimes gobbled with microtype and url

I experimented with condensing URLs slightly and thought everything worked fine, until I noted a problem in the final proofreading. The first "this" in the following minimal example seems to have no ...
2
votes
0answers
46 views

How to redefine path for replacing its content (e.g. sensitive data) with a placeholder in different contexts?

The solution using xparse with the following redefinition (see redefine path with trailing backslash) \RenewDocumentCommand\path{v}{hidden for privacy} does not seem to work in all contexts. For ...
2
votes
0answers
35 views

Send filled out PDF Form to Uploadlink

I've created a PDF form for a survey. Because of anonymity I need a Submit-Button which sends the filled out pdf (or fdf) to an uploadlink and automatically "puts it in there". Here is an ...
2
votes
0answers
147 views

URL - linebreak and page break

I'm using luatatex 1.0.4 and I already found some solutions for breaking urls. Nevertheless I have special cases for which I didn't find a solution. My sample code looks like: \documentclass[a4paper,...
2
votes
0answers
735 views

LyX: Url not showing in references using natbib and url packages

I know there are many questions posted about this topic and that my question might be a duplicate (I'm a beginner in LyX, so apologizing in advance). However, I preformed a search before posting but I ...
2
votes
0answers
361 views

More than one URL per Mendeley reference

Mendeley can handle multiple URLs for each reference. When exporting to Bibtex it separates the URLs with spaces. This causes a %20 and broken links in the output. I import references into Sharelatex ...
1
vote
1answer
31 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:...
1
vote
0answers
30 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 \...
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 ...
1
vote
0answers
20 views

url hyperlink in gantt chart

I would like to embed an online url such as www.google.com in a gantt chart with \href{}{}. Unfortunately, this does not work for me. The links never become clickable. Reproducible example can be ...
1
vote
0answers
36 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
0answers
241 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} \...
1
vote
0answers
82 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
36 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
79 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,...
1
vote
0answers
35 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 ...
1
vote
0answers
48 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{ ...
1
vote
0answers
49 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} ...
1
vote
0answers
78 views

Line break for URL clash with hyperref

I want to put a line break for the urls as it exceeds the page margin. I've refereed couple of posts on StackExhange but still it's not successful. The error for the following code says !LaTeX Error: ...
1
vote
0answers
108 views

Pasting URL in @misc entry for bib

I have written the following entry for a URL in ieeetr bib style: @misc{Microsoft18, title={Introducing the Office (2007) Open XML File Formats}, url={https://docs.microsoft.com/en-us/previous-...
1
vote
0answers
62 views

Add a special character in a latex url

I want to incorporate a link as a footnote to my latex text that contains a special character. That link is the following one: http://www.robots.ox.ac.uk/~vgg/research/cross-modal-emotions/ And ...
1
vote
0answers
370 views

set tolerance within a span command only

URLs (and similar, e.g., long class names or folder names) can be annoying to typeset well. This gets even worse when the document is automatically generated, and you cannot "just" insert manual ...
1
vote
0answers
947 views

Cannot display tilde (~) in references latex / BibLatex

I have a link to a URL looking like this http://www.abc.de/~doo/bar/foobar.htm As you can see, it contains a ~. I tried changing the link to http://www.abc.de/\~doo/bar/foobar.htm However, the ~ ...
1
vote
0answers
204 views

URL in list of figures

My usual image snippet looks like this: \begin{figure}[h] \begin{center} \includegraphics[width=0.35\textwidth]{images/image_name} \caption[Capture in list of figures]{Capture ...
1
vote
0answers
450 views

Put an offline link in Beamer presentation

I have a html page save in my computer and I would like to know if its possible put the link for the html page in the Beamer presentation and when the click on the html page in the Beamer, This will ...
1
vote
0answers
432 views

Remove unwanted spaces in Bibliography

I'm referencing a URL in the following way: \bibitem{r10} PC Magazine \emph{https://www.pcmag.com/encyclopedia/term/37919/application-program}, 2011 The output is something like this: I tried to ...
1
vote
0answers
401 views

Trying to separate text in columns

I am trying to get this URL to drop off nicely as it looks off. I have tried seperating the columns further with \column sep but it doesnt work \documentclass[oneside,12pt]{article} \usepackage{...
1
vote
0answers
695 views

Percent sign in URL without hyperref

Suppose you want to create a URL that has embedded % signs. One option is to just use \%, but you don't get the benefit of nice line breaks. Another option is to use the hyperref package and its \...
1
vote
0answers
1k views

Apacite: Supress URL % DOI except for Web Pages

I am using apacite with natbib and have all my literature in Mendeley. I just found how to supress the URL in the bibliography when DOI is present (Linebreak in url). However, I`d like to supress ...
1
vote
0answers
264 views

Hyperref: Danish ø in `\url` or `\href` doesn't work (appears as \T1\)

Refer to this question and answer. When I compile the file below (encoded in utf-8) with pdflatex, only the middle option produces a working link as opposed to all three in the linked question. In ...
1
vote
0answers
108 views

Underline Hyperlinks Omitting the Descenders

I want to underline links (\url and \vref, \href, ...) omitting descenders in the manner shown in this answer while still supporting wrapping of long URIs (via \UrlBreaks or otherwise). Ideally, I can ...
1
vote
0answers
402 views

Spaces are not formatted correctly in url paths when using sphinx package and reStructuredText

I have a problem similar to the one in: Obey spaces with URL package (path command). The obeyspaces option is not working within the pgfplots table column. However, my problem is slightly different ...
1
vote
0answers
2k views

How to include urldate on bibliography withou using the "note" option?

I'm using the natbib package and the plainnat style. Also I'm using the url package. \usepackage[authoryear,round]{natbib} \usepackage{url} \bibliographystyle{plainnat} My problem is the ...
1
vote
0answers
463 views

\url command worked fine before using \urldef

Is there any way that \urldef can be overwritten by \url? A link with a % sign or ~ sign used to work just fine with \url before I used \urldef. After \urldef, my % signs in the cited link serves as a ...
1
vote
0answers
3k views

How can I use natbib and make my reference list resemble apalike?

My question is related to here and here, but I could not yet find a satisfying answer. I will use the same example from this post. I like the apalike reference style but I have trouble with breaking ...
1
vote
2answers
508 views

Break URL in Bibtex reference without losing the link, with hyperref package and LaTeX compiler

I am trying to properly break some of the url in my references. When using \usepackage[breaklinks]{hyperref}, the url breaks but the link disappear (not clickable) even though the blue color is still ...
0
votes
0answers
20 views

How to always display the url in bibliography

I am currently working on a small paper, in which I need to include the sources via BibTeX. For every source, when applicable, I need to include the url of the website. However, when I try this, the ...
0
votes
1answer
31 views

Make \url{} entry visible in bibliography

I'm using a bibliography management software (Zotero) that exports weblinks in this format: @misc{spielmandaniel-DiscrepancyTheoryRandomized-2021, title = {But what is the Fourier Transform? A ...
0
votes
0answers
55 views

Break url in bibliography citation

I found similar issues around, but none of them fitting to my situation. I would like to be able to decide WHERE to break an url in my bibliography. In the examples below, the automatic breaking is ...
0
votes
0answers
52 views

How can I add request headers such as "referer" to a link embedded in a document so the servers know the document info ( doi or something )?

I'm working with some ways to track the actions that come from documents I or others may write. Sometimes you see journals have things like "impact factor" and online advertising has a lot ...
0
votes
0answers
21 views

URL breaks due to hyphen

I am attaching url in references section, but the url breaks and goes to second line if theres a hyphen. How do i get the entire url in one line?