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

learn more… | top users | synonyms

1
vote
1answer
45 views

Seperate URLs for each bibliographic entry which refers to the same source, but to different page(s); + 1 URL for the source in the \printbibliography

When one wishes to cite a reference (and more specifically: a certain page 123 of a source) in a footnote, one can e.g. use \footfullcite[p.~123]{Bestbook}, in case the reference would be labeled ...
2
votes
2answers
3k views

Problems with Natbib: strange URL format and urldate not shown

I have a strange problem with natbib. This code @misc{CornellUniversity., author = {{Cornell University}}, title = {Benedict R. O'G. Anderson}, url = ...
0
votes
0answers
24 views

How to make a two lines URL clickable

I am using url package, and I have a two lines URL like: \url{this_is_my.com/ website} I generated PDF file, and when I click to the URL, it will lead to this_is_my.com, but not ...
23
votes
3answers
19k views

How to break long url in an item

I have an enumerate. In an item I have a long url. I use the package breakurl and it works fine outside the enumerate but not in the item. \usepackage[margin=3cm]{geometry} \usepackage{hyperref} ...
4
votes
1answer
97 views

E-mail address for Anti-spam

I want to prepare my CV. But when the mouse on e-mail, It will see ANTI-SPAM. On click e-mail then It works \href{mailto:name@name.com}{e-mail}. Is it possible? related web site : ...
3
votes
1answer
42 views

Prevent linebreak in URL in biblatex bibliography

Unlike most people, I'm trying to prevent breaking the URL in my bibliography. In the case below, the URL in the first item should stay the way it is, since it is not broken across the lines. The URL ...
2
votes
1answer
47 views

add URL to citation apa biblatex

I need to add the URL in the citations in footnotes for every source that has a URL. It should look like the footnotes a and b in the MWE output. I found this: Add URL field to footcites using ...
1
vote
1answer
38 views

URL of web page in bibliography not output

First time trying to write my thesis in Lyx which has been great up until this point, and getting rather close to submission time I have noticed that webpage references are not outputting with the URL ...
1
vote
1answer
14 views

in the textit{}, I have error with the statement telling me to use $ $

\bibitem{Shiva2014} Shiva.A, Sethi.M.(2014).Understanding Dynamic Relationship among Gold Price, Exchange Rate and Stock Markets.\textit{gbr.sagepub.com/content/16/5_suppl/93S.refs}. I don't want ...
20
votes
7answers
16k views

Missing $ inserted issue

Trying to get my dissertaion sorted (due in a few hours) and I keep getting this error: ! Missing $ inserted. <inserted text> $ l.190 ... pp. 225--236, ...
0
votes
1answer
23 views

makebst but show url only if there is no doi

I am using makebst to create my own bib style. I would like the DOI to show up in the citation (as a hyperlink), whenever the DOI is present. I have successfully done that. When the DOI is present, I ...
3
votes
2answers
259 views

API JSON in Latex

I want to know if it's possible to get data from a website using api json in a document .tex I want to do this without luatex because the idea is compile online with the sharelatex website, that ...
1
vote
0answers
100 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
1answer
28 views

How can I define a command for urls using hyperref

I know I can use the package hyperref for urls, but I want is to create a definition that uses this and assigns a color, for example \c{url}{Something} would write Something in crimson color linked ...
1
vote
0answers
31 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
1answer
45 views

How to stop LaTeX stretching my footnote

I've ran into a problem I can't seem to fix. So I've been working on a document, everything is as it's supposed to be, apart from one small detail. I referenced certain parts of my text with ...
12
votes
5answers
16k views

How to allow line break in a long hyperlink in a PDF compiled by latex-dvips-ps2pdf?

I am using latex-dvips-ps2pdf steps with -Ppdf option passed to dvips. The following code snippet \documentclass{article} \usepackage[colorlinks]{hyperref} \usepackage{breakurl} ...
2
votes
1answer
33 views

How to solve conflict between `biblatex`, `url` and `enumitem`?

First of all I would like to know why does this packages collide when working together. If I don't use biblatex there won't be any problem, but if I use it then the packages won't work any more. MWE: ...
28
votes
11answers
23k views

Disabling URLs in bibliography

I use Mendeley for article management and export the related items to a bib file for referencing in LaTeX documents. I use IEEEtran style and see that the bibliography items include URLs which I don't ...
0
votes
1answer
31 views

Automatic line breaks in path{} command?

i use the \path{} command to print out a path to a directory in my *.tex File. I searched a lot around the internet to solve the problem to automatically linebreak the path-url. I found some hints ...
3
votes
1answer
40 views

TeX \@for loop within a section title

I am creating a macro for turning a list of files into a comma-separated list of monospaced file names, and using it as a heading. I have written a short script for doing so: MWE: ...
10
votes
4answers
12k views

Tool for generating a website's BibTex using the URL?

Is there an existing tool for generating BibTeX of a website using its URL? What I'm thinking is something like a web tool or a Python script that does this.
3
votes
1answer
37 views

How to use the result of a macro and not the macro itself?

I would like to use the result of a macro (that delete accentuated characters of a string variable called \name), saved in a variable called \nameSA, in a url. I thought that I could use the \nameSA ...
0
votes
1answer
38 views

URL causes Missing $ inserted error

I'm trying to add this to my bibliography: \bibitem{nasa}Alliance, N.P.A.R.C. Computational fluid dynamics (CFD) verification and validation web site: ...
4
votes
0answers
26 views

Defining a command where the argument could contain percent signs [duplicate]

This minimal example won't compile: \documentclass{article} \usepackage{url} \newcommand{\mycommand}[1]{#1} \begin{document} \mycommand{\url{http://www.example.org/index.php?a=Hello%20World.}} ...
3
votes
1answer
67 views

Stretched character spacing with url citation

When printing a citation with a long URL lacking good break points, in a wide text block, the character spacing gets stretched out. \documentclass{article} ...
0
votes
0answers
12 views

Make cross references and table of contents linked, clickable objects [duplicate]

I'd like to ensure my PDF is easy to navigate so is there a way to have the TOC allowed to be clicked to get to various chapters and sections, similarly with the cross references to allow jumping ...
0
votes
1answer
36 views

how to let the long web-link automatically break line?

I use the \tt in the latex, however, it can not break line automatically. Then, I add \\ in the link, e.g. \tt{http://tex.stackexchange.com/ \\\\ questions/ask}. Then, in the generated pdf file, it ...
3
votes
1answer
38 views

\cventry with \url with %

I'm using an \url command within \cventry. Unfortunately, my url contains a %. This sign seems to cause this error: Paragraph ended before \\cventry was complete. [] What can I do about it? Here ...
0
votes
0answers
63 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 ...
0
votes
0answers
77 views

Can not compile my latex file with \urldef

I have the following line in my latex file: \documentclass[runningheads,a4paper]{llncs} \usepackage{amssymb} \setcounter{tocdepth}{3} \usepackage{graphicx} \usepackage{amsmath} \usepackage{url} ...
1
vote
1answer
29 views

How to type French accent in URL in Latex

I want to add this URL: https://fr.wikipedia.org/wiki/Projet:%C3%89valuation to my Latex I tried \usepackage[french]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
1
vote
0answers
10 views

Combine multi-line cell and \url [duplicate]

I have a bigger table in my document, including several urls. I made them active with the \url{...}-command, and now I wanted to make them multi-line-cells by using the \specialcell{..\\..}-command, ...
3
votes
2answers
3k views

Inserting a clickable URL into moderncv not working anymore

I tried inserting a clickable URL into ModernCV but somehow the output doesn't feature a clickable URL. This has worked in the past(on Ubuntu 12.04; with few changes such as including hyperref. Not ...
5
votes
1answer
75 views

Clickable URLs: no click possible after the line break

I use \url to make an URL clickable. When the line breaks, the part of the URL after the line break is not clickable. Why, and how to fix it? Demo: \documentclass[11pt,letterpaper]{article} ...
2
votes
2answers
260 views

Inserting URLs without the hyperlink

I know already that \usepackage{url} and then using the \url{} command will allow me to insert URLs without the hyperlink, but, I do not even use this package and used the \url{} command and it gives ...
0
votes
0answers
40 views

Long references not breaking across lines [duplicate]

In the reference section of my paper, some of the references are very long and therefore look rather out of place. Is there a way to fix this?
12
votes
2answers
5k views

URL linebreak in footnote

I use a footnote with a too long url, so that I'd like to see a linebreak. The url package does linebreaks automatically as far as i know, but in the footnote it won't do it. Anyone have a solution to ...
4
votes
2answers
1k views

How to typeset a backslash and get line breaks in URLs?

I have a lot of Windows file/folder paths and register paths in my document. And I'm having 2 problems: The \ is seen as and escape character which obviously doesn't compile. \\ Starts a new line ...
0
votes
1answer
29 views

Show tilde in footnote, with correct text formatting [duplicate]

I need to show a unix url in a footnote of my article document. Some of the posts such as How to show ~(tilde) in footnote? have been very helpful, but I still have some questions. I am using URL ...
3
votes
0answers
37 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} ...
157
votes
6answers
246k views

How to add a URL to a LaTeX bibtex file?

I'm using bibtex for my bibliography in LaTeX. I have some URL's I need to cite in the paper. How do I add URLs into the .bib file? A typical section in my .bib file looks like this: ...
1
vote
1answer
337 views

Package breakurl Warning: You are using breakurl while processing via pdflatex

I am trying to use breakurl package to break long url, so it wraps around, since it is messing the alignment of my table. The problem is that I keep getting the message Package breakurl Warning: You ...
4
votes
1answer
99 views

List of figures with reference URL

I want to have a List of Figures, which also contains a reference URL (or the article which I refer to \cite{}) for each figure entry. (and if possible the URL should appear in the next line with a ...
6
votes
2answers
2k views

unwanted pagebreak in footnote

I'm trying to reference a long URL in a footnote. I'm usig hyperref-package (which loads automatically the url-package). \usepackage[unicode=true, ...
0
votes
1answer
42 views

How to cite a URL in Latex if I do not write explicitly the URL?

I want to cite a URL with name IIT Kharagpur but when I click on the hyperlink it should open the link www.iitkgp.ac.in in my browser.
1
vote
0answers
26 views

How to include the symbol $ within a url? [duplicate]

I need to write a url including a character which seems a command , $ the entire command is : \item URL - this is set as "\nolinkurl{http://localhost:9200/\$*/pcap/}"; but this produce: URL ...
3
votes
1answer
31 views

Correct hyphenation of “http://” in bibliography

I encounter a problem with an online source in my bibliography and can't find a solution. Whereas all other sources and URLs show "perfect" hyphenation, the first line of the entry of one specific ...
4
votes
3answers
183 views

How do I include this URL?

I need to include the following URL in my text: http://people.mech.kuleuven.be/~bruyninc/tmp/HermanBruyninckx-robotics.pdf It's a two-column document to it must break into two lines and also the ...
1
vote
1answer
171 views

URL hyphenation

I need to hyphenate an URL —I'm the using \url{ } command)—. I've found that one solution is to add the hyphen option to the url package. I've added it but the compilation doesn't work. I get the ...