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.

60 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
366 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
674 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
175 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
356 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
346 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
318 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
116 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
137 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
688 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
353 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
0answers
24 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
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
0answers
191 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
76 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
33 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

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
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 ...
1
vote
0answers
46 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
43 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
61 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
362 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
884 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
188 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
437 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
425 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
400 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
686 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
261 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
107 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
398 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
455 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
478 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
19 views

Latex- url link as a variable

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&...
0
votes
0answers
17 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 ...
0
votes
0answers
40 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 ...
0
votes
1answer
23 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 ...
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{...
0
votes
0answers
30 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[...
0
votes
0answers
55 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 ...
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
23 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....
0
votes
0answers
81 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 ...
0
votes
0answers
76 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 ...